Obtain the source code of the Centos command.

Source: Internet
Author: User
Installation tool # yuminstallyum-utils setting Source: [base-src] nameCentOS-5.4-Basesrc-baseurlhttp: // vault.centos.org/5.4/ OS /srpms/?#listhttp://{list.centos.org /? Release5.4 & amp installation tool
 
# Yum install yum-utils
 
 
 
Set Source:
 
[Base-src]
 
CentOS-5.4-Base src-
 
Base url = http://vault.centos.org/5.4/ OS /SRPMS/
 
# Items list = http://mirrorlist.centos.org /? Release = 5.4 & arch = SRPMS & repo = OS
 
Gpgcheck = 1
 
Gpgkey = http://vault.centos.org/RPM-GPG-KEY-CentOS-5
 
 
 
[Updates-src]
 
Name = CentOS-5.4-Updates src-centos
 
Base url = http://vault.centos.org/5.4/updates/SRPMS/
 
# Items list = http://mirrorlist.centos.org /? Release = 5.4 & arch = SRPMS & repo = updates
 
Gpgcheck = 1
 
Gpgkey = http://vault.centos.org/RPM-GPG-KEY-CentOS-5
 
 
 
# Packages used/produced in the build but not released
 
[Addons-src]
 
Name = CentOS-5.4-Addons src-
 
Base url = http://vault.centos.org/5.4/addons/SRPMS/
 
# Items list = http://mirrorlist.centos.org /? Release = 5.4 & arch = SRPMS & repo = addons
 
Gpgcheck = 1
 
Gpgkey = http://vault.centos.org/RPM-GPG-KEY-CentOS-5
 
 
 
# Additional packages that may be useful
 
[Extras-src]
 
CentOS-5.4-Extras src-centos
 
Base url = http://vault.centos.org/5.4/extras/SRPMS/
 
# Items list = http://mirrorlist.centos.org /? Release = 5.4 & arch = SRPMS & repo = extras
 
Gpgcheck = 1
 
Gpgkey = http://vault.centos.org/RPM-GPG-KEY-CentOS-5
 
 
 
# Additional packages that extend functionality of existing packages
 
[Centosplus-src]
 
CentOS-5.4-Plus src-centos
 
Base url = http://vault.centos.org/5.4/centosplus/SRPMS/
 
# Items list = http://mirrorlist.centos.org /? Release = 5.4 & arch = SRPMS & repo = centosplus
 
Gpgcheck = 1
 
Enabled = 0
 
Gpgkey = http://vault.centos.org/RPM-GPG-KEY-CentOS-5
 
 
 
# Contrib-packages by Centos Users
 
[Contrib-src]
 
CentOS-5.4-Contrib src-centos
 
Base url = http://vault.centos.org/5.4/contrib/SRPMS/
 
# Items list = http://mirrorlist.centos.org /? Release = 5.4 & arch = SRPMS & repo = contrib
 
Gpgcheck = 1
 
Enabled = 0
 
Gpgkey = http://vault.centos.org/RPM-GPG-KEY-CentOS-5
 
 
 
Download the source code corresponding to the command:
 
# Rpm-qf 'which mkdir'
 
Coreutils-5.97-23.el5
 
# Yumdownloader -- source coreutils
 
# Rpm2cpio coreutils-5.97-23.el5_4.2.src.rpm | cpio-id
 
In this case, the source code package coreutils-5.97.tar.bz2 is obtained.
 
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.