If you have used ubuntu or debian, you will surely know that the apt-get command is useful. In redhat, apt is not used by default. Instead, yum is used. Yum is also installed in rhel5 (as5) by default, but the yum must be authorized to use it. It is unknown where to find the authorization. Therefore, yum of centos is used here.
If you have used ubuntu or debian, you will surely know that apt-getCommandIs easy to use. In rEdBy default, apt is not available under hat, and yum is replaced. Yum is also installed in rhel5 (as5) by default, but the yum must be authorized for use, so here we use the yum of centos, the twin brother of rhel, to replace the native yum. Although it seems not so formal, it is actually completely correct. If there is a problem, report to the Ministry of Information Industry.
First, delete the built-in yum:
Rpm-aq |GrepYum | xargs rpm-e -- nodeps
Download and install the three files:
Wget http://mirrors.163.com/centos/5/ OS /i386/CentOS/yum-3.2.19-18.el5.centos.noarch.rpm
Wget http://mirrors.163.com/centos/5/ OS /i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm
Wget http://mirrors.163.com/centos/5/ OS /i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
Rpm-ivh python-iniparse-0.2.3-4.el5.noarch.rpm yum-metadata-parser-1.1.2-2.el5.i386.rpm yum-3.2.19-18.el5.centos.noarch.rpm
Download Configuration:
Wget http ://SuDone.com/download/CentOS-Base.repo-O/etc/yum. repos. d/CentOS-Base.repo
Update:
Yum upDate
Download may be slow. There is a solution, that is, wait... or you can find a faster source, but it will consume more time .. After the execution, you will be asked yes/no. That is to ask if you want to update the entire system. So far, I have not selected yes.
How can I install an ImageMagick test? :
Yum install ImageMagick
Try searching:
Yum search kernel
Basic success