How to get the source package from aptitude on linux?

I can get the source packages using apt-get source, but is there a way to do this with aptitude? I also downloaded the .deb package for python2.6 using aptitude and then unpacked 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 downloads are different. Why?

+7
source share
4 answers

aptitude download python2.6 retrieves the binary package for python2.6 .

apt-get source python2.6 retrieves the source package, which generates the python2.6 binary package.

Downloading source files will include source tarball, debian diff, and a signed certificate file.

+6
source

The .deb package is a binary package, that is, the results of compiling the source package. This is what would be installed if you did aptitude install <package> .

It doesn't seem like aptitude can download source packages.

+2
source

apt-get source packagename

apt-get source does not interact with the package system, so mixing apt-get and aptitude in this case is great.

You also do not need to be root to use apt-get source.

+2
source

Hi, you can easily find them, It was removed from most places, including ubuntu archives Download Python 2.6_2.6XXX

0
source

All Articles