Re: How to fetch a binary package given the package name
On 2010-07-25 19:43 +0200, Malte Forkel wrote:
> I can use
> apt-get source <pkg-name>[=version]
> to fetch and extract a source package, given its name (and optionally,
> its version).
>
> But is there any equivalent for binary packages? I.e., is there a tool
> that downloads a binary package, given the package's name (and
> optionally its version)?
Yes, aptitude can do that. Here's an example fetching the experimental
version of xserver-xorg-core:
,----
| % LANG=C aptitude download xserver-xorg-core=2:1.8.99.905-1
| Get:1 http://ftp.de.debian.org experimental/main xserver-xorg-core 2:1.8.99.905-1 [1530kB]
| Fetched 1530kB in 1s (1119kB/s)
`----
You can also use the "-t <suite>" switch to get a package from a given
suite.
Sven
Reply to: