linux的命令源码,linux下的命令的源码

(1)使用如下命令:rpm -qif `which cat`

(2)随即会出来这样的信息

Name : coreutils

Version : 8.12

Release : 7.fc16

Architecture: i686

Install Date: Tue 24 Apr 2012 06:24:51 AM CST

Group : System Environment/Base

Size : 14082799

License : GPLv3+

Signature : RSA/SHA256, Thu 29 Mar 2012 04:43:13 AM CST, Key ID 067f00b6a82ba4b7

Source RPM : coreutils-8.12-7.fc16.src.rpm

Build Date : Mon 26 Mar 2012 06:35:37 PM CST

Build Host : x86-04.phx2.fedoraproject.org

Relocations : (not relocatable)

Packager : Fedora Project

Vendor : Fedora Project

URL : http://www.gnu.org/software/coreutils/

Summary : A set of basic GNU tools commonly used in shell scripts

Description :

These are the GNU core utilities. This package is the combination of

the old GNU fileutils, sh-utils, and textutils packages.

可以看到我用黄色所着重标记的一个URL,打开此URL,就可以更据网页上的大意来看是要下载

coreutils包,在 http://ftp.gnu.org/gnu/coreutils/下有一系列的不同版本的源码包可供下载。

(1)使用如下命令:rpm -qif `which cat` (2)随即会出来这样的信息 Name : coreutils Version : 8.12 Release : 7.fc16 Architecture: i686 Install Date: Tue 24 Apr 2012 06:24:51 AM CST Group : System Environment/Base Size : 14082799 License : GPLv3+ Signature : RSA/SHA256, Thu 29 Mar 2012 04:43:13 AM CST, Key ID 067f00b6a82ba4b7 Source RPM : coreutils-8.12-7.fc16.src.rpm Build Date : Mon 26 Mar 2012 06:35:37 PM CST Build Host : x86-04.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : http://www.gnu.org/software/coreutils/ Summary : A set of basic GNU tools commonly used in shell scripts Description : These are the GNU core utilities. This package is the combination of the old GNU fileutils, sh-utils, and textutils packages. 可以看到我用黄色所着重标记的一个URL,打开此URL,就可以更据网页上的大意来看是要下载 coreutils包,在 http://ftp.gnu.org/gnu/coreutils/下有一系列的不同版本的源码包可供下载。
经验分享 程序员 微信小程序 职场和发展