How to update a redhat 5.x when yum is not installed
Sometime, It’s hard to discover that someone failed to install properly a server with the right tools. Today, it was a Redhat Enterprise Server 5.4 “BareMetal” not updated since a while … So first, I uploaded the ISO from 5.11 on the server, Second, created a local directory Third, mounted the ISO on it At the end, I finished by creating the local.repo file to allow yum to find what it needs. But, “YUM” was not installed on the server ! Right, it’s time to install it with RPM. First, go to the local repository directory and then in the directory “Server”, and copy paste this line:
1 |
rpm -Uvh yum-3.2.22-40.el5.noarch.rpm python-elementtree-1.2.6-5.i386.rpm python-iniparse-0.2.3-6.el5.noarch.rpm python-sqlite-1.1.7-1.2.1.i386.rpm rpm-python-4.4.2.3-34.el5.i386.rpm yum-metadata-parser-1.1.2-4.el5.i386.rpm rpm-libs-4.4.2.3-34.el5.i386.rpm popt-1.10.2.3-34.el5.i386.rpm python-urlgrabber-3.1.0-6.el5.noarch.rpm m2crypto-0.16-9.el5.i386.rpm rpm-4.4.2.3-34.el5.i386.rpm |
You should have something similar:
1 2 3 4 5 6 7 8 9 10 11 12 |
Preparing... ########################################### [100%] 1:popt ########################################### [ 9%] 2:m2crypto ########################################### [ 18%] 3:yum-metadata-parser ########################################### [ 27%] 4:python-sqlite ########################################### [ 36%] 5:python-elementtree ########################################### [ 45%] 6:python-urlgrabber ########################################### [ 55%] 7:python-iniparse ########################################### [ 64%] 8:rpm-libs ########################################### [ 73%] 9:rpm ########################################### [ 82%] 10:rpm-python ########################################### [ 91%] 11:yum ########################################### [100%] |
And now, you can update the server via a simple yum update -y.