Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mrepo RHEL7 : Only download latest version of a package ? #89

Open
SpeedBlack opened this issue Dec 23, 2016 · 1 comment
Open

mrepo RHEL7 : Only download latest version of a package ? #89

SpeedBlack opened this issue Dec 23, 2016 · 1 comment

Comments

@SpeedBlack
Copy link

SpeedBlack commented Dec 23, 2016

I use mrepo to synchronize RHEL7 packages (with LFTP, since it's https URLs).

Did anyone find a solution where mrepo/lftp only downloads the latest version of a package and not all as seen below?
389-ds-base-1.3.1.6-25.el7.x86_64.rpm
389-ds-base-1.3.1.6-26.el7_0.x86_64.rpm
389-ds-base-1.3.3.1-13.el7.x86_64.rpm
389-ds-base-1.3.3.1-15.el7_1.x86_64.rpm
389-ds-base-1.3.3.1-16.el7_1.x86_64.rpm
389-ds-base-1.3.3.1-20.el7_1.x86_64.rpm
389-ds-base-1.3.3.1-23.el7_1.x86_64.rpm
389-ds-base-1.3.4.0-19.el7.x86_64.rpm
389-ds-base-1.3.4.0-21.el7_2.x86_64.rpm
389-ds-base-1.3.4.0-26.el7_2.x86_64.rpm
389-ds-base-1.3.4.0-29.el7_2.x86_64.rpm
389-ds-base-1.3.4.0-30.el7_2.x86_64.rpm
389-ds-base-1.3.4.0-32.el7_2.x86_64.rpm
389-ds-base-1.3.4.0-33.el7_2.x86_64.rpm
389-ds-base-1.3.5.10-11.el7.x86_64.rpm
389-ds-base-1.3.5.10-12.el7_3.x86_64.rpm

Because, for example, "rhel-7-server-rpms" repository : Repo-size 17 G

Before with RHEL6 I used :
(## Download older versions of a certain package ?)
rhnget-download-all = no

Do you know of any other option or script ?

Thanks a lot for your help.

@L-B
Copy link

L-B commented Mar 27, 2017

Hello,

I've done a small modification to mrepo so it can use reposyncs:// with RHSM. I'm attaching the patch below. It's basically adding the information already available for the RHEL7 repository (CA, cert, key) to the temporary reposync configuration file.
mrepo_reposyncs.patch.txt

The URLs for the repositories are those listed on the RH website, ie they end with /os or /debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants