Thank you very much. Indeed, the 'reposync -n' command only download the newest packages. But I don't know how can I configure it for Spacewalk repository. If I've run reposync -n, it will download the all RPM from the mirrors and create a _local repo.
My goal would be, the spacwalk repository sync only download the newest packages. # ls -1 repodata/centos6-x86_64-epel/ filelists.xml.gz other.xml.gz primary.xml.gz repomd.xml updateinfo.xml.gz # ls -1 reposync/centos6-x86_64-epel/ 52353294e1bab8bb8df5c5220148205884a0c3996dcfc409ecf03615359373ef-primary.sqlite a28e7053cdd302f563a541eb4fb1a0cbd6442787c5a9a968fe0f550e35ad7ff8-comps-el6.xml.gz cachecookie d2ff1ce7ab3a2717cc98610cac546fd40c5329dc7303fdbd87b1616fc6bc2cf9-updateinfo.xml.gz mirrorlist.txt packages repomd.xml # ls -1 reposync/centos6-x86_64-epel/packages/ The /var/cache/rhn/reposync/centos6-x86_64-epel/packages directory is empty. I assume, the packages should be there. But the packages are stored in /var/satellite/redhat/1 directory. I don't get it how I can configure spacewalk to download only the latest packages When I run this command: errata-import.pl --server spacewalk.exmaple.com --errata=errata.latest.xml --rhsa-oval=com.redhat.rhsa-all.xml --include-channels=centos6-x86_64-updates-u5 --sync-channels --sync-timeout=600 --publish --debug >/tmp/import.log 2>&1 Note: the errata-import.pl comes from Steve Meier (http://cefs.steve-meier.de/) This will start in the system: /usr/bin/python -u /usr/bin/spacewalk-repo-sync --channel centos6-x86_64-updates-u5 --type yum spacewalk-repo-sync command doesn't have 'download only newest packages' option. If I have to use reposync, how I can co-work with spacewalk. Create a custom channel? Or store the packages twice (once on the custom local repo and once in spacewalk)? I think it's foolish. Balint On Fri, 2014-05-02 at 07:06 -0400, Thomas Foster wrote: > http://man7.org/linux/man-pages/man1/reposync.1.html....the script is > inaccessible on github.. > > > On May 2, 2014 7:02 AM, "Thomas Foster" <thomas.foste...@gmail.com> > wrote: > > I think its the -n option. > > > On May 2, 2014 6:59 AM, "Balint Szigeti" > <balint.s...@gmail.com> wrote: > > hello > > Is there a way to tell spacewalk don't download the > duplicated packages, only the newest? > By default it downloads the newest packages but when I > remove the old packages > > (https://github.com/angrox/spacewalk-api-scripts/blob/master/spacewalk-remove-old-packages/spacewalk-remove-old-packages.py) > it will download them again, so running this script > without set, download ONLY the newest packages, it's > pointless. > > Can we configure it somehow? > > Balint > > > _______________________________________________ > Spacewalk-list mailing list > Spacewalk-list@redhat.com > https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list