Configure yum in Linux 6.3 Server

Source: Internet
Author: User

First, check the number of operating digits of the system.

Uname-

 

How to Use CentOS6 yum source for 32-bit Linux 6.3 Server

1. Uninstall yum

# Rpm-aq | grep yum | xargs rpm-e -- nodeps

Download the centos package:

Wget http://mirrors.163.com/centos/6/ OS /i386/Packages/python-iniparse-0.3.1-2.1.el6.noarch.rpm

Wget http://mirrors.163.com/centos/6/ OS /i386/Packages/yum-metadata-parser-1.1.2-14.1.el6.i686.rpm

Wget http://mirrors.163.com/centos/6/ OS /i386/Packages/yum-3.2.27-14.el6.centos.noarch.rpm

Wget http://mirrors.163.com/centos/6/ OS /i386/Packages/yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm

2. Install the downloaded package

Rpm-ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm

Rpm-ivh yum-metadata-parser-1.1.2-14.1.el6.i686.rpm

Rpm-ivh yum-3.2.27-14.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.26-11.el6.noarch.rpm

The last two packages are installed simultaneously.

When downloading this yum-metadata-parser-1.1.2-14.1.el6.i686.rpm package, pay attention to the number of digits of your operating system, This Is A 32-bit package,

This is a 64-bit: wget http://mirrors.163.com/centos/6/ OS /i386/Packages/yum-metadata-parser-1.1.2-14.1.el6.x86_64

If the 64-bit package is installed on a 32-bit system, the following error occurs:

There will be a lot of dependency packages, even if the installation is successful, there will be more dependencies, I made such a low-level error, it is very important to be careful.

Download the CentOS-Base.repo for the yum configuration file

Address: http://mirrors.163.com/.help/CentOS6-Base-163.repo

# Vi CentOS6-Base-163.repo

Edit the file and replace all $ releasever in the file with the version number.

Replace command in vi: % s/$ releasever/6/g

Finally, put the file under/etcyum. repos. d /.

5. Clear yum Cache

# Yum clean all

# Yum makecache # create a cache

# Yum install vim # test and install vim

# Yum update # upgrade the system.

So far, yum configuration is complete.

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.