Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get source package with aptitude on linux?

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 ?

like image 962
Ankur Agarwal Avatar asked Feb 18 '11 02:02

Ankur Agarwal


2 Answers

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

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

Source downloads will include the original source tarball, the debian diff and the signed certificate file.

like image 70
Matt Joiner Avatar answered Sep 19 '22 07:09

Matt Joiner


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.

like image 26
Joshua Avatar answered Sep 20 '22 07:09

Joshua