Sachchi wrote:
Dear all,
recently I upgraded my system from RHEL4 to RHEL5. What I need is
working yum.conf file or the repository file for RHEL5.
Thanks for the help in advance.
Thanks
Sachchi
If you mean you need to access to a "LAN" repositoty instead of using
RHN, then here is what I did for my test systems:
- copy the RHEL5 DVD to a server:
# mkdir -p /var/www/html/5.1/32
# cp -a /mnt/cdrom/. /var/www/html/5.1/32
- use createrepo:
# createrepo -g repodata/comps-rhel5-server-core.xml
/var/www/html/redhatmedia/5.1/32/Server
- in your server that needs to access to the LAN repo, create a file
local.repo in /etc/yum.repos.d with its content as
[local]
name=Red Hat Enterprise Linux $releasever - $basearch - Local
baseurl=http://192.168.249.231/redhatmedia/5.1/32/Server
enabled=1
192.168.249.231 is the ip address of the server that you run createrepo.
Vu
_______________________________________________
rhelv5-list mailing list
rhelv5-list@redhat.com
https://www.redhat.com/mailman/listinfo/rhelv5-list