nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

yum isnt working with local repo (RHEL5)- help?

This is a discussion on yum isnt working with local repo (RHEL5)- help? within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hi, I have created local repo for yum to work on RHEL5 (Red Hat Enterprise Linux Server release 5.2 (Tikanga). ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 29-10-2009, 08:48 PM
Junior Member
User
 
Join Date: Sep 2008
OS: RHEL
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
samengr is on a distinguished road
Default yum isnt working with local repo (RHEL5)- help?

Hi,

I have created local repo for yum to work on RHEL5 (Red Hat Enterprise Linux Server release 5.2 (Tikanga).

I have done this many times and never faced such issue
Steps I followed

1. mkdir /rhel5
2. moved all RHEL DVD files to this Directory /rhel5
3. installed createrepo RPM
4. executed this command
# cd /rhel5/Server/
# createrepo -v .

5. # vi /etc/yum.repos.d/myownrepo
[localinfo]
name=MyOwnRepo
baseurl=file:///rhel5/Server/
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

6. yum clean all

*****

Here are the few outputs

]# yum list | more
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
Deployment_Guide-en-US.noarch 5.2-9 installed
GConf2.i386 2.14.0-9.el5 installed
GConf2-devel.i386 2.14.0-9.el5 installed
MAKEDEV.i386 3.23-1.2 installed
MySQL-python.i386 1.2.1-1 installed
NetworkManager.i386 1:0.6.4-8.el5 installed
NetworkManager-glib.i386 1:0.6.4-8.el5 installed
NetworkManager-gnome.i386 1:0.6.4-8.el5 installed
ORBit2.i386 2.14.3-4.el5 installed

----------
---------- (output truncated)

**********

# yum info squid
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Installed Packages
Name : squid
Arch : i386
Epoch : 7
Version: 2.6.STABLE6
Release: 3.el5
Size : 3.3 M
Repo : installed
Summary: The Squid proxy caching server.
Description:
Squid is a high-performance proxy caching server for Web clients,
supporting FTP, gopher, and HTTP data objects. Unlike traditional
caching software, Squid handles all requests in a single,
non-blocking, I/O-driven process. Squid keeps meta data and especially
hot objects cached in RAM, caches DNS lookups, supports non-blocking
DNS lookups, and implements negative caching of failed requests.

Squid consists of a main server program squid, a Domain Name System
lookup program (dnsserver), a program for retrieving FTP data
(ftpget), and some management and client tools.

*******

# yum remove squid
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package squid.i386 7:2.6.STABLE6-3.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Removing:
squid i386 7:2.6.STABLE6-3.el5 installed 3.3 M

Transaction Summary
================================================== ===========================
Install 0 Package(s)
Update 0 Package(s)
Remove 1 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : squid ######################### [1/1]

Removed: squid.i386 7:2.6.STABLE6-3.el5
Complete!

*****

Now the issue is when I try to install something with yum it say no package find

# rpm -qa | grep squid

# yum install squid
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
No package squid available.
Nothing to do



Can any body suggest what is wrong with this?

Any comments/suggestions will be highly appreciated.

Many thanks.

Sam.
Reply With Quote
  #2 (permalink)  
Old 30-10-2009, 07:24 AM
kumarat9pm's Avatar
Senior Member
User
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL,UBUNTU..
Posts: 442
Thanks: 20
Thanked 20 Times in 18 Posts
Rep Power: 5
kumarat9pm has a spectacular aura about kumarat9pm has a spectacular aura about kumarat9pm has a spectacular aura about
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default

can you remove enable=1 from your repo file and try to install squid?
__________________
Thanks,
Surendra Kumar Anne
Ubuntu: Simple, Stylish and Striking..!
Linux: Fast, friendly, flexible and .... free!
Support Open source.
Reply With Quote
  #3 (permalink)  
Old 30-10-2009, 02:31 PM
Junior Member
User
 
Join Date: Sep 2008
OS: RHEL
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
samengr is on a distinguished road
Default Solved - yum isnt working with local repo (RHEL5)- help?

Guys, I have done this many times. Local repo means yum should look to the local directory not RHN...
Anyway I have fixed this issue.... The problem was the name of the repo "/etc/yum.repos.d/myownrepo". just renamed it myownrepo to myown.repo it is working now. Actually yum looks /etc/youm.repos.d/*.repo and look which repo is enabled.
Have a look below

# yum install squid
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
localinfo 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 729 kB 00:00
localinfo : ################################################## 2115/2115
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package squid.i386 7:2.6.STABLE6-3.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Installing:
squid i386 7:2.6.STABLE6-3.el5 localinfo 1.2 M
Transaction Summary
================================================== ===========================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: squid ######################### [1/1]
Installed: squid.i386 7:2.6.STABLE6-3.el5
Complete!

Cheers
Reply With Quote
  #4 (permalink)  
Old 01-12-2009, 04:56 PM
Junior Member
User
 
Join Date: Nov 2009
OS: Debian
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kotipallivamsi is on a distinguished road
Default cheers dude this is working....thanks for the info

cheers dude this is working....thanks for the info

Quote:
Originally Posted by samengr View Post
Guys, I have done this many times. Local repo means yum should look to the local directory not RHN...
Anyway I have fixed this issue.... The problem was the name of the repo "/etc/yum.repos.d/myownrepo". just renamed it myownrepo to myown.repo it is working now. Actually yum looks /etc/youm.repos.d/*.repo and look which repo is enabled.
Have a look below

# yum install squid
Loading "rhnplugin" plugin
Loading "security" plugin
This system is not registered with RHN.
RHN support will be disabled.
localinfo 100% |=========================| 951 B 00:00
primary.xml.gz 100% |=========================| 729 kB 00:00
localinfo : ################################################## 2115/2115
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package squid.i386 7:2.6.STABLE6-3.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================== ===========================
Package Arch Version Repository Size
================================================== ===========================
Installing:
squid i386 7:2.6.STABLE6-3.el5 localinfo 1.2 M
Transaction Summary
================================================== ===========================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.2 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: squid ######################### [1/1]
Installed: squid.i386 7:2.6.STABLE6-3.el5
Complete!

Cheers
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Mailing from my Local Linux system ricc Linux software 8 21-02-2010 10:53 PM
samba local and roaming profile skumar704 File Servers 2 22-10-2009 12:36 PM
Repo for PSPP satimis Ubuntu / Debian 2 29-04-2009 08:58 PM
Ldap and non-local users bdptcob Linux software 1 15-02-2008 01:34 AM
How to share local machine folder to outside network rajuk Linux software 1 25-03-2005 10:57 AM


All times are GMT +5.5. The time now is 02:14 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38