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, arm64, armhf, ppc64el and amd64 packages exit available in repos?

share|improve this question

closed as too broad by Thomas W., guntbert, Sneetsher, Danatela, Avinash Raj Jun 4 at 13:28

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

    
If someone's answer was helpful to you, then please consider marking it as the accepted answer so others may more easily find it in the future. This is also a polite way to thank the person answering your question for helping you out. –  Danatela Jun 2 at 7:57

2 Answers 2

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

So:

  • 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

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