madsumo
asked on
Problem creating local yum repository on stand-alone RHEL5 server
I have a totally isolated server running RHEL5 i.e. no internet connection.
I have downloaded from RHN all the latest upgraded rpm's and put them in a directory on the server e.g /data/patches/20100915/rpm -packages
I then used :
createrepo --database /data/patches/20100915/rpm -packages
This then created a subdirectory called repodata with all the metadata files in it.
I then created a new repository file in /etc/yum.repos.d as follows :
When I run yum update it comes back with an error saying that it cannot find
/data/patches/20100915/rpm -packages/ repodata/r epomd.xml
yet when I check the location the file exists.
I am fairly new to linux and RHEL5 so any help with setting up a local repository would be gratefully appreciated.
I have downloaded from RHN all the latest upgraded rpm's and put them in a directory on the server e.g /data/patches/20100915/rpm
I then used :
createrepo --database /data/patches/20100915/rpm
This then created a subdirectory called repodata with all the metadata files in it.
I then created a new repository file in /etc/yum.repos.d as follows :
[rhel-Updates]
name=Red Hat Enterprise Linux 5 - i386
baseurl=file://data/patche s/20100915 /rpm-packa ges/
enabled=1
gpgcheck=0
gpgkey=
name=Red Hat Enterprise Linux 5 - i386
baseurl=file://data/patche
enabled=1
gpgcheck=0
gpgkey=
When I run yum update it comes back with an error saying that it cannot find
/data/patches/20100915/rpm
yet when I check the location the file exists.
I am fairly new to linux and RHEL5 so any help with setting up a local repository would be gratefully appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
yum --localinstall update /path/to/files/packages
yum update --localinstall pacakge.rpm package2.rpm etc.