Importing CentOS Errata with Pulp3

# grep "<id>" /tmp/updateinfo-7/updateinfo.xml| wc -l
5192
# grep "<os_release>7</os_release>" errata.latest.xml| wc -l
5195
# zgrep "<update" /var/www/html/pub/centos-erratas/7/repodata/a2173474ac7d7d9543088364c775ff7835652382e48f945631c7daab87761623-updateinfo.xml.gz| wc -l
5193

Not sure why it shows very less to me.

Ive downloaded the “errata.latest.xml” from the below link

wget -N http://cefs.steve-meier.de/errata.latest.xml

Is this the right link ?

Is it possible test for other repos like " CentOS 7 Extras, CentOS 7 OpsTools, CentOS 7 Updates"

[root@xxx repodata]# grep “” /tmp/updateinfo-7/updateinfo.xml| wc -l
71
[root@xxx repodata]#

[root@xxx tmp]# grep “<os_release>7</os_release>” errata.latest.xml| wc -l
71
[root@xxx tmp]#

[root@xxx repodata]# zgrep “<update” /var/www/html/pub/centos-erratas/7/repodata/56bbf19ec024e230299204bf25de353631231a238afc26e25e744c65e69c4e9e-updateinfo.xml.gz | wc -l
72
[root@xxx repodata]#

Checked the scripts I am running and it downloads:

https://cefs.steve-meier.de/errata.latest.xml.bz2

Thanks a lot pal. Now mine also 5192. Is it possible to pull errata for other repos of centos " CentOS 7 Extras, CentOS 7 OpsTools, CentOS 7 Updates"

What you see is what you get. It will work until CentOS 7 is unsupported in 2024 then RIP.

2 Likes

Hey folks,

I’m glad you got this working, but following along has been a bit confusing.

Is it possible to post a script that we could run on the Katello server to get CentOS 7 errat working?

Ever grateful!~

The thread contains all you need. Using the script at GitHub - vmfarms/generate_updateinfo, create a local repo to push that data into and then sync that repo to Foreman. Since there are so many steps, it is not like one script will do all that…

Hi,

Where come from modifyrepo ?

$ sudo dnf whatprovides /usr/bin/modifyrepo
Last metadata expiration check: 2:34:09 ago on Tue 27 Feb 2024 16:34:43 UTC.
createrepo_c-0.20.1-1.el8.x86_64 : Creates a common metadata repository
Repo        : pulpcore
Matched from:
Filename    : /usr/bin/modifyrepo

createrepo_c-1.0.2-2.el8.x86_64 : Creates a common metadata repository
Repo        : @System
Matched from:
Filename    : /usr/bin/modifyrepo

createrepo_c-1.0.2-2.el8.x86_64 : Creates a common metadata repository
Repo        : pulpcore
Matched from:
Filename    : /usr/bin/modifyrepo
1 Like

Thank you

Your process work perfectly

Regards

1 Like