[uyuni-users] Repository confirmation question
Hi, I am nearly certain that my openSUSE 15.1 repository is synchronized with it's associated repository on download.opensuse.org. http://download.opensuse.org/update/leap/15.1/oss/x86_64/ How do I tell if my count on uyuni for the repo of 3338 (today), matches what's on the repository? I have tried wget for the index.html and counting the "mirrorlist" with wc -l after an egrep of the index.html - but the count of links found here versus what's in uyuni don't match. I only see 2887 total lines in the index.html, of which 2832 actually include url's to the actual rpms. Is there a way to do this to confirm? Am I not understanding how the repo's are concatenated and counted? Thanks, -Steve -- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
With rpm-based repos, you got repodata having the necessary data.
As this is the update repo , you can do the following:
uyuni:/tmp # curl -s 'http://mirrors.xgroup.si/opensuse/update/leap/15.1/oss/repodata/17a7ddeb6d5c... updateinfo.xml.gz' | gunzip -d - | grep 'package name' | grep 'arch="x86_64"' | wc -l
In my case it shows 3337 packages of arch x86_64
Maybe I'm using the wrong xml ... if so , do not hesitate to correct me.
Best Regards,
Strahil Nikolov
В четвъртък, 5 септември 2019 г., 22:18:19 ч. Гринуич+3, Steve Moring
Strahil, On Thu, 2019-09-05 at 19:53 +0000, Strahil Nikolov wrote:
With rpm-based repos, you got repodata having the necessary data. As this is the update repo , you can do the following:
uyuni:/tmp # curl -s 'http://mirrors.xgroup.si/opensuse/update/leap/15.1/oss/repodata/17a 7ddeb6d5c2e697c1f4fb18d29ff91d9e290d61a65933f5955abaa9e9f15f7- updateinfo.xml.gz' | gunzip -d - | grep 'package name' | grep 'arch="x86_64"' | wc -l
Thank you.
In my case it shows 3337 packages of arch x86_64
I can understand some differences between repo's, your repo may not be as current as another (the download.opensuse.org shows 3338 according to uyuni). What I'm baffled by is why there would be such a disparity between the repodata and the actual html listing the rpms. Guessing that this is due to package dependencies?
Maybe I'm using the wrong xml ... if so , do not hesitate to correct me.
Best Regards, Strahil Nikolov
-- To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org To contact the owner, e-mail: uyuni-users+owner@opensuse.org
participants (2)
-
Steve Moring
-
Strahil Nikolov