Using APT, you can install a specific version of a package using:
apt-get install package=1.0
But you can't do
apt-get install package=1.*
So, how can I find out which versions are avaliable for package
on a specific repository, or in all repositories in my /etc/apt/sources.list
?
Just as an addendum
apt-cache madison <<package name>>
will list the versions available from all your sources.
apt-cache madison vim
vim | 2:7.3.547-1 | http://debian.mirrors.tds.net/debian/ unstable/main amd64 Packages
vim | 2:7.3.429-2 | http://debian.mirrors.tds.net/debian/ testing/main amd64 Packages
vim | 2:7.3.429-2 | http://http.us.debian.org/debian/ testing/main amd64 Packages
vim | 2:7.3.429-2 | http://debian.mirrors.tds.net/debian/ testing/main Sources
vim | 2:7.3.547-1 | http://debian.mirrors.tds.net/debian/ unstable/main Sources
madison
is an apt-cache
subcommand, man apt-cache
says:
apt-cache's madison command attempts to mimic the output format and a subset of the functionality of the Debian archive management tool, madison. It displays available versions of a package in a tabular format. Unlike the original madison, it can only display information for the architecture for which APT has retrieved package lists (APT::Architecture).
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments