Last active
November 9, 2022 03:52
-
-
Save carlwgeorge/f137aa56e9a5e0929b9d0af1f782b646 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(name, rpms_repo_url, srpms_repo_url): | |
rpm_count = len(repomd.load(rpms_repo_url)) | |
srpm_count = len(repomd.load(srpms_repo_url)) | |
print(f'{name}: {rpm_count:7,} RPMs {srpm_count:6,} SRPMs') | |
count('EPEL 7', 'https://dl.fedoraproject.org/pub/epel/7/x86_64/', 'https://dl.fedoraproject.org/pub/epel/7/source/tree/') | |
count('EPEL 8', 'https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/', 'https://dl.fedoraproject.org/pub/epel/8/Everything/source/tree/') | |
count('EPEL 9', 'https://dl.fedoraproject.org/pub/epel/9/Everything/x86_64/', 'https://dl.fedoraproject.org/pub/epel/9/Everything/source/tree/') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment