Redhat use Yum to install and update the rpm package

Source: Internet
Author: User

Very simple: including
1. Uninstall the original yum tool of Redhat:

Rpm-aq | grep yum | xargs rpm-e -- nodeps2. Install the yum tool in the CentOS release:

Wget http://mirrors.163.com/centos/5/ OS /x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
Wget http://mirrors.163.com/centos/5/ OS /x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
Wget http://mirrors.163.com/centos/5/ OS /x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
Wget http://mirrors.163.com/centos/5/ OS /x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm

Rpm-ivh python-iniparse-0.2.3-4.el5.noarch.rpm
Rpm-ivh yum-* 3. Update library files:

Wget http://sudone.com/download/CentOS-Base.repo-O/etc/yum. repos. d/CentOS-Base.repo attachment CentOS-Base.repo File Download: CentOS-Base
4. Use

Yum install httpd5. Expand official CentOS rpm Resources
A. Added support for rpmforge:

Wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm

Rpm-ivh rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm by extending rpmforge, we use yum to install rpm packages officially unavailable to CentOS such as rrdtool.

B. epel support:

Wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

Rpm-ivh epel-release-5-4.noarch.rpm by extending epel, we can use yum to install puppet tools.

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.