mprov-ng / mprov_jobserver

The heart and soul of mProv. The mprov jobserver is the background work horse that handles all the heavy lifting.
Apache License 2.0
2 stars 1 forks source link

Reposync Vs Wget for RPM repos #83

Closed biondogs closed 9 months ago

biondogs commented 10 months ago

Looks like the option to select repo type exists in the repo entity, reposync seems LOTS faster than wget .If not overly complicated switching to reposync could save loads of time. (there may be complications) It does look like reposync requires the repo to be know by the local yum call so what ever new repo added in the menu would probaly need to also be added to the MPCC hosts /etc/yum.repos.d or maybe you can runn it with something liek a yum --repo=URL thing .

jhujasonw commented 10 months ago

reposync is built into dnf now, so dnf options are also accepted for reposync, so from dnf man page

--repofrompath <repoid>,<path/url>
              Specify a repository to add to the repositories for this query.  This option can be used multiple times.

Then running:

dnf reposync -p /my/repos/path -m --repoid=<repoid>