1, download yum
Online download or manually download
wget http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz
2, unzip the file
tar zxvf yum-3.4.3.tar.gz
3, create a configuration file (must be), if you do not create yum.conf then run the following words will ./yummain.py install yum error
touch /etc/yum.conf
4, and the switching installation directory
cd yum-3.4.3
./yummain.py install yum
5, success
base | 3.7 kB 00:00
base/primary_db | 4.5 MB 00:07
extras | 3.5 kB 00:00
extras/primary_db | 23 kB 00:03
Appears above tips will prove yum been installed successfully.
6, check the version
rpm -qa | grep yum
7. Update
yum check-update
yum -y update
yum clean all
8, update instructions! ! ! :
There are two Linux update command is yum upgrade and yum update, the two commands are different: the
code is as follows:
yum -Y Update
upgrade all packets while software upgrades and system kernel (caution)
Code is as follows:
yum -y upgrade
only upgrade all packages, and the kernel does not upgrade the software
experiment and were tested yum -y upgrade yum -y update