If you are looking for YUM server in RHEL5(Redhat Enterprise Linux version 5) you can click here other wise just read on..
Recently I came across a strange requirement.. i.e. implementing YUM(Yellow dog Updater and Modifier) server in RHEL4 :(. By the time of RHEL4 release there is no YUM server implementation..
so I did some research and collected some documentation on net and implemented YUM server in RHEL4
configuring YUM server in RHEL4 as follows..
Stpe 1:Download following packages(these days the below packages are not present on net, so please download bleow RPM packages for Yum installation in RHEL4 )
yum-utils-0.3.1-1.fc4.noarch.rpm ( we need for repository)
Stpe 2: Install the above mention packages in the same sequence once you download them.
rpm -Uvh sqlite-2.8.16-1.2.el4.rf.i386.rpm
rpm -Uvh python-sqlite-0.5.0-1.2.elr4.rf.i386.rpm
rpm -Uvh python-urlgrabber-2.9.6-1.2.el4.rf.noaarch.rpm
rpm -Uvh pytyhon-elementtree-1.26-1.2.el4.rf.noarch.rpm
rpm -Uvh python-celementtree-1.0.2-1.2.el4.rf.i386.rpm
rpm -Uvh yum-2.4.2-1.noarch.rpm
rpm -Uvh yum-utils-0.3.1-1.fc4.noarch.rpm
rpm -Uvh createrepo-0.3.1-1.noarch.rpm
Step 3: Now dump your rpms from your RHEL4 cds/dvd
cp -ar * /var/ftp/pub/Server/
Step 4: Create repository
#createrepo -v /var/ftp/pub/Server/
Here yum server will create a repository and metadata. After creating metadata we can configure yum client on the same machine.. as follows
Step 5:Creating a repo file and updating with the repository details
name= Redhat repository
save the file and exit and start using yum to install packages in RHEL4.
Latest posts by Surendra Anne (see all)
- FREE: JOIN OUR DEVOPS TELEGRAM GROUPS - August 2, 2019
- Review: Whizlabs Practice Tests for AWS Certified Solutions Architect Professional (CSAP) - August 27, 2018
- How to use ohai/chef-shell to get node attributes - July 19, 2018
- wget download a file to a directory in Linux/Unix - June 4, 2018
- GIT: How to compare two GIT branches? - June 3, 2018