Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

That's it. How can I know how many i386 and amd64 packages exit available in repos?

share|improve this question
add comment

1 Answer

From a bit of poking in /var/lib/apt/lists:

[jk@pecola ~]$ for f in /var/lib/apt/lists/*binary-*_Packages; do echo -n $(basename "$f")": "; grep '^Package:' "$f" | wc -l ; done
apt:9999_ubuntu_dists_precise_main_binary-amd64_Packages: 8204
apt:9999_ubuntu_dists_precise_main_binary-i386_Packages: 8221
apt:9999_ubuntu_dists_precise_multiverse_binary-amd64_Packages: 688
apt:9999_ubuntu_dists_precise_multiverse_binary-i386_Packages: 700
apt:9999_ubuntu_dists_precise_restricted_binary-amd64_Packages: 21
apt:9999_ubuntu_dists_precise_restricted_binary-i386_Packages: 21
apt:9999_ubuntu_dists_precise_universe_binary-amd64_Packages: 29593
apt:9999_ubuntu_dists_precise_universe_binary-i386_Packages: 29647


  • 38506 (= 9204 + 688 + 21 + 29593) for amd64
  • 38589 (= 8221 + 700 + 21 + 29647) for i386

This is assuming you're interested in built packages, rather than sources (one source may be used to build a number of installable .debs). Also, this number is specific to the repos that I have set up on my machine (main, restricted, universe and multiverse).

share|improve this answer
add comment

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.