As part of a project, I need to rebuild source RPMs from the really convenient Remi Yum repo(Source RPMS).
The search for some way to efficiently get those packages was not a very successful venture(common keywords lead to very polluted results on Google
). reposync
can do this, but only as an add-on to cloning the RPM portion of the repo. What I need is something that does this just for the sources.
Any leads to doing this efficiently?
Note: Inefficient solution already applied:
extractXPathAttr.pl 'http://rpms.famillecollet.com/SRPMS/' '//tr/td[2]/a[1]' 'href' |\
grep src.rpm |\
xargs -I{} wget 'http://rpms.famillecollet.com/SRPMS/{}'
(extractXPathAttr.pl
extracts the required attribute of the elements specified by the XPath from the given URL. I'll put it up on github once it's cleaned up and documented.)
reposync
)