I'm having a bit of trouble trying to setup reposync how I want.  We'd like to sync all the packages for RHEL 6.8 -- and ONLY 6.8 (not 6.7, 6.6, etc.)  My current setup seems to download all the packages/updates for 6.0 through 6.8, which is wasting a ton of disk space.

 

Also, I don't want ONLY the latest package -- I want to be able to roll back to a previous package.  The default reposync options contains "-n":

reposync_flags: "-l -n -d"

Which downloads only the latest package, but deletes any previous packages! As far as I can tell, there's no way to download the latest WITHOUT deleting the previous ones automatically.

 

Removing the "-n" flag:

reposync_flags: "-l -d"

Downloads ALL the packages available in the repository.  Unfortunately these means downloading about 71 GB (total) packages for the 4 RHEL6 repos for which I'm subscribed:

 

39G rhel-x86_64-workstation-6
6.9G rhel-x86_64-workstation-6-thirdparty-oracle-java
13G rhel-x86_64-workstation-optional-6
12G rhel-x86_64-workstation-supplementary-6

 

e.g. here are all the kernel packages that got

 

My repo definition is the default:

rhn://rhel-x86_64-workstation-6

 

So is there a workaround to sync ONLY the 6.8 packages without using EUS and/or Satellite? 

 

The only thing I can think of is a kludge:  That is, before running reposync with the "-n" flag, copy the existing packages to a manually-created local repository.  That seems like a lot of work, and error-prone (subject to human-error).

 

 

--

Robert Jacobson

Systems Administrator, Solar Dynamics Observatory