linux下如何使用aptitude获取源码包?
我可以使用 apt-get source 获取源包,但是有没有办法使用 aptitude 来做到这一点? 我还使用 aptitude 下载了 python2.6 的 .deb 包,然后使用 ar 解压缩。
aptitude download python2.6
ar xv python2.6_2.6.5-1ubuntu6_i386.deb
我还使用 apt-get 下载了 python 源码
sudo apt-get source python2.6
两次下载的内容不同。为什么 ?
I can get source packages using apt-get source , but there a way to do this using aptitude ?
Also I downloaded the .deb package for python2.6 using aptitude and then unzipped it using ar.
aptitude download python2.6
ar xv python2.6_2.6.5-1ubuntu6_i386.deb
I also downloaded the python source using apt-get
sudo apt-get source python2.6
The contents of both the downloads are different. Why ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
aptitude download python2.6
检索python2.6
的二进制包。apt-get source python2.6
检索生成二进制包python2.6
的 source 包。源下载将包括原始源 tarball、debian diff 和签名的证书文件。
aptitude download python2.6
retrieves the binary package forpython2.6
.apt-get source python2.6
retrieves the source package that generates the binary packagepython2.6
.Source downloads will include the original source tarball, the debian diff and the signed certificate file.
apt-get source packagename
apt-get source 不与软件包系统交互,因此在这种情况下混合 apt-get 和 aptitude 就可以了。
您也不必成为 root 即可使用 apt-get source。
apt-get source packagename
apt-get source does not interact with the package system so mixing apt-get and aptitude is fine in this case.
You also do not have to be root to use apt-get source.
.deb
包是binary包,即源码包编译的结果。如果您执行aptitude install
,就会安装它。aptitude似乎不能下载源码包。
The
.deb
package is the binary package, that is, the results of compiling the source package. It is the thing that would be installed if you didaptitude install <package>
.It does not appear that aptitude can download source packages.
您好,您可以轻松地从中找到它们,它已从大多数地方(包括 ubuntu 档案)中删除
下载 Python 2.6_2.6XXX
Hi you may easily find them from ,Its removed from most of the places including ubuntu archives
Download Python 2.6_2.6XXX