Installation and configuration of Yum under Linux

Source: Internet
Author: User

    • 1
    • 2
    • 3
    • 4
Step through Reading

The company is using Linux to build servers, Linux installation software can use Yum to install a dependency package is a very simple and happy thing, so here is a brief introduction to Linux installation Yum source process and operation.

Tools/Materials
    • Computer
    • Linux Basic Operational knowledge
Method/Step
  1. 1

    View, uninstall the installed Yum Pack

    View installed Yum Packages

    #rpm –qa|grep Yum

    Uninstalling packages

    #rpm –e–nodeps Yum

  2. 2

    Download install dependency package Python python-iniparse

    http://centos.ustc.edu.cn/ centos/6.5/os/x86_64/packages/

    http://mirrors.163.com/centos/6/os/x86_64/Packages/

    Find the corresponding package such as: python-2.6.6-51.el6.x86_64.rpm python-iniparse-0.3.1-2.1.el6.noarch.rpm

    Source address can be found on the Internet some faster, Self-test These two addresses are also at a good speed. The name of the package may be different from the above, mainly the version and operating system number of different, it is recommended not to search all on the page, such as the first package only search Python, the second package search Python-iniparse.

  3. 3

    Installation

    #rpm –IVH python-2.6.6-51.el6.x86_64.rpm python-iniparse-0.3.1-2.1.el6.noarch.rpm

    Download Install Yum Pack

    http://centos.ustc.edu.cn/centos/6.5/os/x86_64/Packages/

    http://mirrors.163.com/centos/6/os/x86_64/Packages/

    Find the corresponding package such as: http://centos.ustc.edu.cn/centos/6.5/os/x86_64/packages/yum- plugin-fastestmirror-1.1.30-14.el6.noarch.rpm yum-metadata-parser-1.1.2-16.el6.x86_64.rpm

    yum-3.2.29-40.el6.centos.noarch.rpm

    #rpm-IVH yum-*

    If the installation fails, you can re-enter this command and add the parameter--nodeps–force

    Find the package in the same way as in step two, do not repeat here.

  4. 4

    Change Yum Source

    Download configuration file

    Http://mirrors.163.com/.help/CentOS6-Base-163.repo

    Replace this configuration file with the file with the same name/ETC/YUM.REPOS.D

    Editing a configuration file

    #cd/ETC/YUM.REPOS.D

    #vi Centos-base.repo

  5. 5

    Change the file $releasever to the corresponding version (6/6.5)

    Change source mirrorlist.centos.org to used Yum source

    centos.ustc.edu.cn

    Mirrors.163.com

    Save the configuration file to

  6. 6

    Clean up Yum Cache

    #yum Clean All

    Cache Server package information locally to improve search installation efficiency

    #yum Makecache

    If the above two commands have an error, generally the configuration file changes are not complete, depending on the error information to find the configuration file in the change error

    Test

    #yum Install Vim

    Complete

Installation and configuration of Yum under Linux

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.