LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-29-2009, 10:14 AM   #1
samengr
Member
 
Registered: Jan 2008
Posts: 58

Rep: Reputation: 15
yum isn't working with local reposatory - 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.
 
Old 10-29-2009, 03:22 PM   #2
John VV
Guru
 
Registered: Aug 2005
Location: Ann Arbor Mi.
Distribution: OpenSUSE 11.4 & Scientfic Linux 6.1
Posts: 7,272

Rep: Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706Reputation: 706
this by chance ??
Quote:
This system is not registered with RHN.
RHN support will be disabled.
you did not pay Red Hat for updates .
 
Old 10-30-2009, 01:42 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.2, Centos 5.8
Posts: 11,696

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
What John VV said, although its certainly possible that your company paid for a subscription, but this system has not been registered yet.
Try

rhn_register

from the cmd line as root.
 
Old 10-30-2009, 04:00 AM   #4
samengr
Member
 
Registered: Jan 2008
Posts: 58

Original Poster
Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum local repo dlee12 Linux - Newbie 1 03-01-2009 12:26 PM
yum local repository rames2075 Linux - Enterprise 2 10-25-2008 08:16 AM
local yum repository tombolio Linux - Newbie 4 09-11-2008 07:28 PM
Local YUM Repo lord loh. Linux - Software 2 05-28-2007 12:41 AM
how can i add a local Folder on local Hard Disk as Yum Repository ?? vahid_p Fedora 4 02-22-2007 10:43 AM


All times are GMT -5. The time now is 11:50 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration