找到想看源码的命令属于哪个包:
下载源码:
-
$ dpkg -S `which cp`
- coreutils: /bin/cp
下载源码:
-
$ apt-get -d
source "coreutils"
-
Reading package lists... Done
-
Building dependency tree
-
Reading state information... Done
-
Need to get 12.6
MB of source archives.
-
Get:1 http://archive.ubuntu.com/ubuntu/ quantal-updates/main
coreutils 8.13-3.2ubuntu2.1 (dsc) [2,067
B]
-
Get:2 http://archive.ubuntu.com/ubuntu/ quantal-updates/main
coreutils 8.13-3.2ubuntu2.1 (tar) [11.7
MB]
-
Get:3 http://archive.ubuntu.com/ubuntu/ quantal-updates/main
coreutils 8.13-3.2ubuntu2.1 (tar) [11.7
MB]
- Get:4 http://archive.ubuntu.com/ubuntu/ quantal-updates/main coreutils 8.13-3.2ubuntu2.1 (tar) [11.7 MB]