两个步骤,首先要知道这个软件在哪个包。然后去下载。
1。使用 which ls 可知该文件的文件名为 /bin/ls
到 ubuntu package search ( http://packages.ubuntu.com/)这个页面中 search the contents of package,输入 ls 进行 search 可以知道,该软件在 coreutils 包中。
2。然后使用 apt-get source coreutils 下载该包的源代码。
1。使用 which ls 可知该文件的文件名为 /bin/ls
到 ubuntu package search ( http://packages.ubuntu.com/)这个页面中 search the contents of package,输入 ls 进行 search 可以知道,该软件在 coreutils 包中。
2。然后使用 apt-get source coreutils 下载该包的源代码。

本文介绍了一种在Ubuntu系统中查找特定软件所在包的方法,并提供了下载指定软件包源代码的步骤。通过使用`which`命令定位软件路径,再利用在线搜索确定软件所属包名,最后借助`apt-get source`命令完成源代码下载。
6210

被折叠的 条评论
为什么被折叠?



