How to get Linux command source installation package [Turn]__linux

Source: Internet
Author: User

Another: To achieve some Linux with the same function of the command, (for example: to achieve in Linux query CPU occupancy rate, Linux command is top), you can refer to the command (top) of the Linux source code,

Transferred from http://hi.baidu.com/yanjinbin/blog/item/3d25ebdd29756fea76c6381f.html

# which reboot <---the which directive will look for eligible files in the directory where the environment variable $path is set
/sbin/reboot <--Find the file as follows
# rpm-qf/sbin/reboot--to find the installation package from the file
SysVinit-2.85.34 <--RPM Package Name
# Rpm-qi SysVinit-2.85.34 <---View installation package information, view the source installation package

Then go to the Internet to find this source installation package, download the source code after the installation package, using Rpm2cpio to extract files:
Redhat Download URL: http://redhat.download.fedoraproject.org/pub/fedora/linux/core/3/SRPMS/

RPM Package Download Address: http://ftp.freshrpms.net/pub/freshrpms/redhat/9/

$ Rpm2cpio sysvinit-2.85.34.src.rpm | Cpio-idv
$ tar xvfz sysvinit-2.85.34.tar.gz

After you can see the source directory: SysVinit-2.85.34

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.