Is there a way I can see all the versions that are in the archives that I have configured in sources.list. I can see the last version of each archive withapt-get policy
, but how can I see them all?
Is there any way that this can also include PPA and anything in sources.list.d?
As far as I understand your requirements, the madison option for apt-cache does what you want:
On my computer:
I hope this is what you need. It also includes the ppas.
The command
is the equivalent of madison.
The
rmadison
program from thedevscripts
package will remotely query the Ubuntu archive and give you the status of a package in all supported releases, not only those you have locally insatlled. This is slightly more than what you want, but should get the job done easily.Example:
before you can use
rmadison
you must install thedevscripts
package:I don't know how (or why) you said
apt-cache policy
doesn't show all versions! I'm using this for several years now and It always showed all versions including the priority number.Output of
apt-cache policy nautilus
Output of
apt-cache madison nautilus
Only difference is that
madison
took some more time thanpolicy
and shorter version. But,policy
is more useful to see which version get installed, which version is next candidate to be installed.That's why I'd suggest always using
apt-cache policy <package-name>
instead.Note about output: I have some local repository setup and both of the command shows those as well.
Note 2 Newer apt comes with policy integrated into them. So, you can use
apt
instead ofapt-cache
directly.