Contents
How does apt list all versions of a package?
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). Linux kernel meta-package is called on Debian linux-image-generic.
How to find all versions of a package in aptitude?
Another way to get information about different but similarly-named packages (e.g. linux-image*) is by using aptitude search. You can also filter with grep using this awkward syntax to get around an aptitude bug/feature. An i in the first column tells you that it’s already installed. See man aptitude for the other characters.
Is there an equivalent to apt-get showduplicate in Ubuntu?
Is there a equivalent of this command; yum list kernel-headers –showduplicates on Ubuntu with apt-get, apt-cache etc. The above command lists various versions of the kernel-headers rpm available on F20/RHEL or installations.
Which is better Madison or apt-cache policy?
Only difference is that madison took some more time than policy 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 instead.
Can you use apt instead of apt cache?
Note 2 Newer apt comes with policy integrated into them. So, you can use apt instead of apt-cache directly. Thanks for contributing an answer to Ask Ubuntu!
How to get list of installed packages in Debian?
Here’s one good way to do get the list of installed packages on a Debian-based system: The output lines of dpkg -l can be trusted to be sane. The pattern ^ii will match the lines of installed packages, and the simple Awk will extract the second column, the package names (the same names used in apt-get install commands).
Is there a better way to get the list of installed packages?
Having to parse the text seems like a less-than-ideal solution; if that’s what you suggest, please argue why there isn’t a better way. aptitude supports searching among all packages known to the package management tools, installed or otherwise, using regular expressions, without extraneous output, and can be told how to format its output:
How to see all the packages installed in Ubuntu?
This lists all available packages. To show which is installed, you can use dpkg -l. e.g. Another way to get information about different but similarly-named packages (e.g. linux-image*) is by using aptitude search.