I am wondering whether there is a command line tool that one can use to download a package from a source (standard Ubuntu or PPA sources)?
I know that packages I just installed are found in /var/cache/apt/archives and I thus can check out the package from there.
However, if I installed the package a long time ago, I don't want to reinstall it, just check a few things in the source package, how can I get easily a hold of it without having to search for it on the Internet?
If you know the package name you can use
apt
to either get the source or the binary:Will download the binary to the current directory.
Will download the source code of
packageName
to the current directory.You can use
apt-get install --print-uris package
since this also will give you how to download all the dependencies:The
-d
option ofapt-get
only downloads a package.So you can call
apt-get -d install <package>
.