Linux systems use Yum to install other software or services

Source: Internet
Author: User

1, download yum configuration source (preferably with NetEase 163 source, can also make other sources)

wget http://docs.linuxtone.org/soft/lemp/CentOS-Base.repo download to/etc/yum.repos.d/directory
Or
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo download to/etc/yum.repos.d/directory

2. edit Centos6-base-163.repo Replace all $releasever in the file with 6
vi /etc/yumrepos.d/centos6-base-163. Repo
And then execute

:1, $s/$releasever/6/g

2, if the domain name is not able to parse, you can add the following content in/etc/resolv.conf (the previous content can be commented out or emptied):
Search Localdomain
NameServer 218.2.135.1

4. Run Yum Makecache to generate the cache
5. After the configuration is complete, you can install the required software with Yum.
Yum install ...

Linux systems use Yum to install other software or services

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.