This question already has an answer here:

OK, I understand how to get a list of installed packages on my system. Now how can I get a list of all available packages from the list of repositories configured?

marked as duplicate by karel, Eric Carvalho, David Foerster, waltinator, Mitch Mar 20 '15 at 18:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


If you want an up-to-date list of the available packages, first update the apt cache:

sudo apt-get update

Then in a Terminal, you can run:

apt-cache dump

But this will print a lot of informations about each package version, repository and dependencies; so the output might be tweaked a bit based on need: for example if you just want a list of names in alphabetical order, you can run:

apt-cache dump | grep -oP 'Package: \K.*' | sort -n

Not the answer you're looking for? Browse other questions tagged or ask your own question.