Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This sounds like it should be a fairly straightforward question to answer but I haven't found it yet, only figures of main + universe, which is various figures over 24,000 depending on release.

share|improve this question
up vote 9 down vote accepted

You can run the following command line:

for f in /var/lib/apt/lists/*Packages; do 
  printf '%5d %s\n' $(grep '^Package: ' "$f" | wc -l) ${f##*/}
done | sort -n

that on my machine show the following output

27433 it.archive.ubuntu.com_ubuntu_dists_oneiric_universe_binary-i386_Packages
 7768 it.archive.ubuntu.com_ubuntu_dists_oneiric_main_binary-i386_Packages
 1944 it.archive.ubuntu.com_ubuntu_dists_oneiric-updates_main_binary-i386_Packages
  664 it.archive.ubuntu.com_ubuntu_dists_oneiric_multiverse_binary-i386_Packages
  632 security.ubuntu.com_ubuntu_dists_oneiric-security_main_binary-i386_Packages
  605 it.archive.ubuntu.com_ubuntu_dists_oneiric-updates_universe_binary-i386_Packages
  167 security.ubuntu.com_ubuntu_dists_oneiric-security_universe_binary-i386_Packages
   67 it.archive.ubuntu.com_ubuntu_dists_oneiric-backports_universe_binary-i386_Packages
   24 it.archive.ubuntu.com_ubuntu_dists_oneiric-updates_multiverse_binary-i386_Packages
   21 it.archive.ubuntu.com_ubuntu_dists_oneiric_restricted_binary-i386_Packages
   13 extras.ubuntu.com_ubuntu_dists_oneiric_main_binary-i386_Packages
   12 archive.canonical.com_ubuntu_dists_oneiric_partner_binary-i386_Packages
   11 it.archive.ubuntu.com_ubuntu_dists_oneiric-backports_main_binary-i386_Packages
   10 security.ubuntu.com_ubuntu_dists_oneiric-security_multiverse_binary-i386_Packages
    6 it.archive.ubuntu.com_ubuntu_dists_oneiric-updates_restricted_binary-i386_Packages
    0 security.ubuntu.com_ubuntu_dists_oneiric-security_restricted_binary-i386_Packages
    0 it.archive.ubuntu.com_ubuntu_dists_oneiric-backports_restricted_binary-i386_Packages
    0 it.archive.ubuntu.com_ubuntu_dists_oneiric-backports_multiverse_binary-i386_Packages
share|improve this answer
Thanks for that command-fu. 7768 in oneiric main is quite impressive. As is 1944 in oneiric-updates main. – thomasrutter Apr 10 '12 at 13:28
You comment works on Ubuntu 12.04 too. Awesome solution. – Ade Malsasa Akbar Sep 24 '15 at 1:08

Each distribution is different. But you can get a good idea of what is available by using "aptitude" and looking at the numbers.

as an example (not installed packages 32180)

enter image description here

share|improve this answer
This is not the answer to the particular question. – Mirzhan Irkegulov Apr 10 '12 at 14:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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