centos 命令源码下载解压
1. 查找源码包
[root@kfzhao ~]# which w
/usr/bin/w
[root@kfzhao ~]# rpm -qf /usr/bin/w
procps-ng-3.3.10-17.el7.x86_64
2. 下载源码包
[root@kfzhao ~]# yumdownloader --source procps-ng
3. 解压源码包
[root@kfzhao sourcecode]# rpm2cpio procps-ng-3.3.10-26.el7_7.1.src.rpm | cpio -div