How to find out which versions of a package can I install on APT

Camilo Martin

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?

lornix

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

In Arch Linux how can I find out which package to install that will contain file X?

From Dev

In Arch Linux how can I find out which package to install that will contain file X?

From Dev

apt returns "E: Unmet dependencies" when I try to install a package, how can I diagnose the issue and find out why it occurs?

From Dev

How can I install the latest apt package for Cockpit with apt?

From Dev

Find out which package I have to install on a Linux system

From Dev

Find out which package I have to install on a Linux system

From Dev

How can I stop Apt from marking packages as manual when you run the "apt install <package which is already there>" command?

From Dev

How can I fix error during install a package with APT in Ubuntu

From Dev

How can I find out hidden versions of dependencies and plugins in Maven?

From Dev

How do I find out which package owns a file?

From Dev

How do I find out which repository a package comes from?

From Dev

How can I find out which PID belongs to which script?

From Dev

How can I find out which index is out of range?

From Dev

How do I find out which RPM was used to install PHP?

From Dev

How can I find out which package is triggering the installation of i386 libraries when using Ubuntu 64bit?

From Dev

Where can I find which versions of groovy work with versions of grails?

From Dev

How can I install multiple versions of Firefox (4.0 and 3.6), preferably using apt

From Dev

How can I find out which parameters a route has in php

From Dev

How can I find out which method of a derived class is not implemented?

From Dev

How can I find out which library is including libcmt?

From Dev

How can I find out which table a foreign key references?

From Dev

How can I find out which Git commits cause conflicts?

From Dev

How can I find out which users are in a group within Linux?

From Dev

How can I find out with which software a web page was written?

From Dev

How can I find out which method of a derived class is not implemented?

From Dev

How can I find out which user deleted a directory?

From Dev

How can I find out which table a foreign key references?

From Dev

How can I find out which users are logged in on my computer?

From Dev

How can I find out what package that a python module belongs to?

Related Related

  1. 1

    In Arch Linux how can I find out which package to install that will contain file X?

  2. 2

    In Arch Linux how can I find out which package to install that will contain file X?

  3. 3

    apt returns "E: Unmet dependencies" when I try to install a package, how can I diagnose the issue and find out why it occurs?

  4. 4

    How can I install the latest apt package for Cockpit with apt?

  5. 5

    Find out which package I have to install on a Linux system

  6. 6

    Find out which package I have to install on a Linux system

  7. 7

    How can I stop Apt from marking packages as manual when you run the "apt install <package which is already there>" command?

  8. 8

    How can I fix error during install a package with APT in Ubuntu

  9. 9

    How can I find out hidden versions of dependencies and plugins in Maven?

  10. 10

    How do I find out which package owns a file?

  11. 11

    How do I find out which repository a package comes from?

  12. 12

    How can I find out which PID belongs to which script?

  13. 13

    How can I find out which index is out of range?

  14. 14

    How do I find out which RPM was used to install PHP?

  15. 15

    How can I find out which package is triggering the installation of i386 libraries when using Ubuntu 64bit?

  16. 16

    Where can I find which versions of groovy work with versions of grails?

  17. 17

    How can I install multiple versions of Firefox (4.0 and 3.6), preferably using apt

  18. 18

    How can I find out which parameters a route has in php

  19. 19

    How can I find out which method of a derived class is not implemented?

  20. 20

    How can I find out which library is including libcmt?

  21. 21

    How can I find out which table a foreign key references?

  22. 22

    How can I find out which Git commits cause conflicts?

  23. 23

    How can I find out which users are in a group within Linux?

  24. 24

    How can I find out with which software a web page was written?

  25. 25

    How can I find out which method of a derived class is not implemented?

  26. 26

    How can I find out which user deleted a directory?

  27. 27

    How can I find out which table a foreign key references?

  28. 28

    How can I find out which users are logged in on my computer?

  29. 29

    How can I find out what package that a python module belongs to?

HotTag

Archive