Skip to content

Instantly share code, notes, and snippets.

@carlwgeorge
Created May 24, 2022 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carlwgeorge/ec2b531c7c13e1a0e4d1c3394fa7ee2b to your computer and use it in GitHub Desktop.
Save carlwgeorge/ec2b531c7c13e1a0e4d1c3394fa7ee2b to your computer and use it in GitHub Desktop.
#!/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