Install Yum on Redhat Server 5.4 "Use NetEase free yum Source, configure and update Yum"

Source: Internet
Author: User

Today, I ran into a machine equipped with Linux, so I thought we could solve the problem with the previous experience, but the magic found that a bunch of packages were not installed on the machine,
The most deadly thing is that even the Package manager is not installed, this thought is FreeBSD, looked up only to discover is Redhat Linux Server 5.4,
So began to install Yum, Google Search, found that seemingly similar situation is not many, but this is not the first time I met Redhat no yum,
Because the last time I met someone to help to see, can not solve and not pay attention to, but this maintenance is necessary, so tried for a long time,
This is probably my most uncomfortable experience, and redhat a lot of resources are not many, so the basic RPM package is the use of CentOS 5, so the redhat full of resentment.

1. First, you need to determine the system architecture
Confirm is x86_64, in NetEase's mirrors download the required RPM package: (if it is i386, you need to http://mirrors.163.com/centos/5/os/i386/CentOS/to find the corresponding package)

wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/m2crypto-0.16-8.el5.x86_64.rpm

wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.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/python-sqlite-1.1.7-1.2.1.x86_64.rpm

wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm

wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-3.2.22-37.el5.centos.noarch.rpm

wget http://mirrors.163.com/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-16.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

2. Then install (upgrade) the package and import the certificate

#rpm-UVH *
#rpm-import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-5

3. Let yum use the source of NetEase:

#cd/etc/yum.repos.d/
#wget Http://mirrors.163.com/.help/CentOS-Base-163.repo

4. Use

#vi Centos-base-163.repo


Add # in front of all mirrorlist, replace all $releasever with 5, save

5. Clean up and regenerate the Yum cache

#yum Clean Metadata
#yum Makecache

6. Yum then works, then updates it at once, OK.

#yum-y Upgrade


Excerpt from: http://blog.smdcn.net/article/1012.html

Description: The above article from the others blog, fixed a little, Redhat 5.4 is not installed Yum, in fact already installed Yum, but by default, yum source is the use of Redhat official website Resources, If you do not purchase the service, installing the software using Yum will fail, prompting you to register first. The above operation is to use NetEase free yum Source, configure and update the Yum source.


Install Yum on Redhat Server 5.4 "Use NetEase free yum Source, configure and update Yum"

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.