Indeed, you can basically replace this whole script with:
reposync | mail -s 'reposync downloaded new packages' foo@bar.com
| [reply] [d/l] |
Also I think there is an XMLRPC API that would be better than screen scraping.
| [reply] |
Hi,
nice. Do you have a link for some documentation on that API?
Regards,
svenXY
| [reply] |
Hi,
right, thanks, but our install/repo-server is not RHEL and is therefore not subscribed to RHN, so for this particular setup, reposync is not an option.
Regards,
svenXY | [reply] |
Nice solution.
This is what we did:
Chose a server that is subscribed to RHN.
Created a Systemimager image of this server on another server.
A script chroots into this image and runs up2date.
We only download the packages and use yum to distribute them to other servers that cannot directly connect to RHN.
| [reply] |
Undefined subroutine &main::safe_get called at ../rhn_channel_download
+.pl line 75.
.
How can this be solved?
I use perl 5.10.1. And
perl-URI-1.40-2.el6.noarch
perl-HTML-TableExtract-2.10-1.el6.noarch
perl-Digest-SHA-5.47-115.el6.x86_64
perl-WWW-Mechanize-1.62-1.el6.noarch
perl-WWW-Mechanize-FormFiller-0.10-1.el6.noarch
perl-Digest-SHA1-2.12-2.el6.x86_64
Best regards! | [reply] [d/l] |