How to install and configure yum in rhel5

Source: Internet
Author: User
Tags imagemagick
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.