0

apt-cache dump returns all information of available packages. In order to get all versions of a certain package the following was tried:

ubuntu@ubuntu-xenial:~$ apt-cache dump | grep -A25 "python-bottle-doc" | grep Version
 Version: 0.12.7-1+deb8u1build0.16.04.1
 Version: 0.12.7-1

but this is not a stable solution as some packages possesses less details then others.

2
  • 3
    Try apt-cache policy <packagename>. It will return multiple versions only if the package is available in multiple repositories...or if you are late in upgrading to repo version. This is an unusual question - why do you ask?
    – user535733
    Nov 12, 2017 at 14:01
  • 1
    Aptitude also list all available version in the package descriptions. though usually there are only one or two, unless multiple repositories are enabled
    – ravery
    Nov 12, 2017 at 14:05

0

Browse other questions tagged .