Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Mirror RHN channels for legal subscriptions behind firewall

by Anonymous Monk
on Sep 12, 2008 at 19:36 UTC ( #710988=note: print w/ replies, xml ) Need Help??


in reply to Mirror RHN channels for legal subscriptions behind firewall

You could just use yum's reposync to do this, no?


Comment on Re: Mirror RHN channels for legal subscriptions behind firewall
Replies are listed 'Best First'.
Re^2: Mirror RHN channels for legal subscriptions behind firewall
by jasonk (Parson) on Sep 13, 2008 at 01:09 UTC

    Indeed, you can basically replace this whole script with:

    reposync | mail -s 'reposync downloaded new packages' foo@bar.com

    www.jasonkohles.com
    We're not surrounded, we're in a target-rich environment!
Re^2: Mirror RHN channels for legal subscriptions behind firewall
by Anonymous Monk on Sep 12, 2008 at 19:38 UTC
    Also I think there is an XMLRPC API that would be better than screen scraping.
      Hi,
      nice. Do you have a link for some documentation on that API?
      Regards,
      svenXY
Re^2: Mirror RHN channels for legal subscriptions behind firewall
by svenXY (Deacon) on Sep 15, 2008 at 06:47 UTC
    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
      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.
        I get
        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!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://710988]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (20)
As of 2015-07-07 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls