Created
May 24, 2022 18:07
-
-
Save carlwgeorge/ec2b531c7c13e1a0e4d1c3394fa7ee2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import repomd | |
def count(baseurl): | |
r = repomd.load(baseurl) | |
print(f'{len(r)} - {baseurl}') | |
print('packages:') | |
count('https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/') | |
count('https://dl.fedoraproject.org/pub/epel/testing/9/Everything/x86_64/') | |
print() | |
print('source packages:') | |
count('https://dl.fedoraproject.org/pub/epel/9/Everything/source/tree/') | |
count('https://dl.fedoraproject.org/pub/epel/testing/9/Everything/source/tree/') | |
print() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment