Wednesday, April 27, 2022

[SOLVED]: Debian/Ubuntu number of packages for different architectures (arm64 vs amd64)

Ubuntu Jammy amd64	67626 main/binary-amd64/Packages	6090 main/debian-installer/binary-amd64/Packages	0 multiverse/binary-amd64/Packages	881 multiverse/debian-installer/binary-amd64/Packages	0 restricted/binary-amd64/Packages	686 restricted/debian-installer/binary-amd64/Packages	0 universe/binary-amd64/Packages	59969 universe/debian-installer/binary-amd64/Packages	0 	 Ubuntu Jammy arm64	65776 main/binary-arm64/Packages	5968 main/debian-installer/binary-arm64/Packages	0 multiverse/binary-arm64/Packages	739 multiverse/debian-installer/binary-arm64/Packages	0 restricted/binary-arm64/Packages	87 restricted/debian-installer/binary-arm64/Packages	0 universe/binary-arm64/Packages	58982 universe/debian-installer/binary-arm64/Packages	0

Summary:
Number of packages for Ubuntu Jammy (22.04) AMD64 = 67626
Number of packages for Ubuntu Jammy (22.04) ARM64 = 65776 (97%)

(this includes basic repositories, such as main, multiverse, restricted, universe)

----

How did I count it:
# amd64
for line in `curl -s http://archive.ubuntu.com/ubuntu/dists/jammy/Release | grep "Packages$" | grep -i amd64 | awk '{print $3}' | sort | uniq`;
do
        echo -n "$line";
        #echo "http://archive.ubuntu.com/ubuntu/dists/jammy/${line}.gz"
        curl -s "http://archive.ubuntu.com/ubuntu/dists/jammy/${line}.gz" |zcat | grep "Package:" | wc -l
done

# arm64
for line in `curl -s http://archive.ubuntu.com/ubuntu/dists/jammy/Release | grep "Packages$" | grep -i arm64 | awk '{print $3}' | sort | uniq`;
do
        echo -n  "$line";
        #echo "http://ports.ubuntu.com/dists/jammy/${line}.gz"
        curl -s "http://ports.ubuntu.com/dists/jammy/${line}.gz" |zcat | grep "Package:" | wc -l
done





No comments:

Post a Comment