Centos Yum Source

Source: Internet
Author: User

Introduction: This is a detailed page of centos Yum source. It introduces PHP, related knowledge, skills, experience, and some PHP source code.

Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 327017 'rolling = 'no'>

================================ View the centos version Method
You can view the following commands:

# Lsb_release-
LSB version: core-3.1-ia32: core-3.1-noarch: graphics-3.1-ia32: graphics-3.1-noarch
Distributor ID: centos
Description: centos release 5.4 (final)
Release: 5.4
Codename: Final

This command applies to all Linux releases, including RedHat, Suse, and Debian.

Root @ mymail ~ # Uname
Linux
Root @ mymail ~ # Uname-R
2.6.18-164. EL5

The following two methods apply to RedHat and centos:

Root @ mymail ~ # Cat/etc/RedHat-release
Centos release 5.4 (final)

Log on to Linux and run rpm-Q RedHat-release.

# Rpm-Q RedHat-release
Or centos

Root @ mymail ~ # Rpm-Q centos-release
Centos-release-5-4.el5.centos.1

CAT/proc/version

Uname-R
Uname-
Yum-V

The CentOS-Base.repo records the address and path information of the yum source on the network.

The CentOS-Media.repo records the media and paths that can be used locally as the yum Source

Http://centos.ustc.edu.cn/Recommendation

----------------------------------- After installation, please follow the steps below to modify the CenOS-Base.repo, you can easily use Yum to install the software.

CD/etc/yum. Repos. d

MV CentOS-Base.repo CentOS-Base.repo.save
Wget http://centos.ustc.edu.cn/CentOS-Base.repo

After modifying the above files, if you need to install GCC, run Yum install GCC directly.

Add the yum source of Netease 163 and Sohu to centos5

CD/etc/yum. Repos. d/
Wget http://mirrors.163.com/.help/CentOS-Base-163.repo
Wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo
Yum makecache
Yum update

To update an existing package, run the following command:
Yum update

---------------------------???????????
Http://centos.ustc.edu.cn/centos/5/addons/ I #/repodata/repomd.xml: [errno 4] ioerror: <urlopen error (101, 'network is unreachable ')>
Trying other mirror.
Error: cannot retrieve repository metadata (repomd. XML) for repository: Addons. Please verify its path and try again

More articles about "centos Yum source"

Love J2EE follow Java Michael Jackson video station JSON online tools

Http://biancheng.dnbcw.info/php/327017.html pageno: 12.

Related Article

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.