Unable to install packages from YUM repository ( RHEL5 )
Friends,
In my office, there are 2 systems, on System 1 I did the following: 1.Copied all the 5 CDs of RHEL 5 in to /var/ftp/pub/Server and created repository with createrepo command "createrepo /var/ftp/pub/Server" 2.Started vsftpd service 2.In system 2 i did the following: vi /etc/yum.repos.d/RHELrepo.repo => [RHELrepo] name=RHELrepo baseurl=ftp://system1:/pub/Server gpgcheck=0 ---------------------------------- now from the same system (system 2) i did the follg: yum clean all yum list all It gives the error messg almost like this: ftp:10.0.0.4:pub/Server/repodata/repomd.xml [Error no 4] IO Error < urlopen error)-2,Name or service not known) Trying other mirror. Cannot open/read read repomd.xml file for repository:RHELrepo Please let me know what should I do to correct this...? |
Quote:
|
What Distro is on your 2nd system? and if its RHEL5 then do you think its possible to use YUM package manager with RHEL5? because as far as I know(might be wrong) RHEL5 only uses "up2date" which is operational for paid users only...
Cheers!! |
sagar there are 2 things here u have to concerned about
1.configure yum in RHEL5 correctly 2.configuring ftp server correctly so that accessed by other system for details look here http://freeshells.ch/~source/yumconfig_pg1.php |
Baig
RHEL5 dropped up2date in favor of yum. saagar You may just want to use the Centos repos instead of the RHEL repos. Centos is RHEL with the logos removed. It is free to download/update and is binary compatible with RHEL. |
Thanks friends for all of your replies. Divyasree, that site you referred to me was really useful. I just took the part I wanted. I dont know why there is no such useful basic information available in the net even after searching for more than an hour. Thanks a lot. Now, my yum is working only because of the tip given in that site.
This is the correct method: Copy all the 5 CDs of RHEL 5 in to /var/ftp/pub/Server. Delete the /var/ftp/pub/Server/repodata directory except keeping a file called comps-rhel5-server-core.xml inside that directory to a safe place (ie./var/ftp/pub/Server/repodata/comps-rhel5-server-core.xml). Now copy that file to /var/ftp/pub/Server. Now create the repository with createrepo. Now let /var/ftp/pub/Server be your present working directory. Now issue the command createrepo -g comps-rhel5-server-core.xml /var/ftp/pub/Server (createrepo is in the 4th CD of RHEL5) 2.Started vsftpd service 2.In system 2 i did the following: vi /etc/yum.repos.d/RHELrepo.repo => [RHELrepo] name=RHELrepo baseurl=ftp://system1:/pub/Server gpgcheck=0 enabled=1 Now yum clean all yum list all Yum is done..! |
Quote:
|
ok.thnx.
|
All times are GMT -5. The time now is 11:47 PM. |