<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body style='font-family: Verdana,Geneva,sans-serif'>
<p>Well, I'd use yum, not rpm.  But here's an example of how we do the HP Proliant Support Pack repos.  With this setup we can do "yum --enablerepo=HP-spp install <package>" for any SPP package (but you could use rpm and URLs if you insist).  We don't use Satellite/spacewalk child channels because we'd have to replicate them for each QA snapshot clone base channel.</p>
<p>HP-spp.repo:</p>
<p># Local HP spp repo for hp-health, hp-snmp-agents, hpacucli, etc.<br />[HP-spp]<br />name=HP Software Delivery Repository for spp<br />baseurl=http://satellite/pub/repos/hp/spp/$releasever/$basearch<br />enabled=0<br />gpgcheck=1<br />#gpgkey=http://satellite/pub/repos/hp/spp/GPG-KEY-spp<br />gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-spp<br /><br /></p>
<p># ls -l /var/www/html/pub/repos/hp/spp<br />total 140<br />drwxr-xr-x 3 root root 45056 Sep 14 04:46 5-i386<br />drwxr-xr-x 2 root root  4096 Feb 27  2014 5Server<br />drwxr-xr-x 3 root root 36864 Sep 14 04:47 5-x86_64<br />drwxr-xr-x 3 root root 20480 Sep 14 04:46 6-i386<br />drwxr-xr-x 2 root root  4096 Feb 27  2014 6Server<br />drwxr-xr-x 3 root root 20480 Sep 14 04:46 6-x86_64<br />-rw-r--r-- 1 root root   990 Jan 30  2014 GPG-KEY-spp</p>
<p>hp-reposync.sh script:</p>
<p>#!/bin/bash<br /># Syncs the HP hardware snmp tools repos from hp<br /># Note: reposync is known to throw spurious "listed more than once" repo messages when yum-rhn-plugin is present.<br />#<br /># Implemented via soft link in /etc/cron.weekly<br />#<br />REPOCFG="/etc/yum.repos.d/HP-spp-mirror.repo"<br />REPODIR="/var/www/html/pub/repos/hp/spp"<br /># Get repo list from REPOCFG, pipe to reposync and createrepo<br />grep "\[.*\]" $REPOCFG|sed "s/\[//g"|sed "s/\]//g"|\<br />while read REPO<br />do<br />  /usr/bin/reposync -c $REPOCFG -r $REPO -p $REPODIR<br />  /usr/bin/createrepo -d $REPODIR/$REPO/<br />done<br /><br /></p>
<p>HP-spp-mirror.repo:</p>
<p># For local mirroring of HP Proliant spp yum repos<br /># DO NOT enable these repos!<br />[6-i386]<br />name=HP Proliant spp 6 x32<br />baseurl=http://downloads.linux.hp.com/repo/spp/RedHatEnterpriseServer/6Server/i386/current<br />enabled=0<br />gpgcheck=1<br />gpgkey=http://downloads.linux.hp.com/SDR/repo/spp/GPG-KEY-spp<br /><br />[6-x86_64]<br />name=HP Proliant spp 6 x64<br />baseurl=http://downloads.linux.hp.com/repo/spp/RedHatEnterpriseServer/6Server/x86_64/current<br />enabled=0<br />gpgcheck=1<br />gpgkey=http://downloads.linux.hp.com/SDR/repo/spp/GPG-KEY-spp<br /><br />[5-i386]<br />name=HP Proliant spp 5 x32<br />baseurl=http://downloads.linux.hp.com/repo/spp/RedHatEnterpriseServer/5Server/i386/current<br />enabled=0<br />gpgcheck=1<br />gpgkey=http://downloads.linux.hp.com/SDR/repo/spp/GPG-KEY-spp<br /><br />[5-x86_64]<br />name=HP Proliant spp 5 x64<br />baseurl=http://downloads.linux.hp.com/repo/spp/RedHatEnterpriseServer/5Server/x86_64/current<br />enabled=0<br />gpgcheck=1<br />gpgkey=http://downloads.linux.hp.com/SDR/repo/spp/GPG-KEY-spp</p>
<p> </p>
<div> </div>
<p>On 2014-09-16 9:15, Thomas Foster wrote:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">Spacewalk is using a webserver, so you could use createrepo to add rpm packages to the same server different location.
<div> </div>
<div><a href="https://access.redhat.com/solutions/7227">https://access.redhat.com/solutions/7227</a></div>
</div>
<div class="gmail_extra"><br />
<div class="gmail_quote">On Tue, Sep 16, 2014 at 9:03 AM, Glen Collins <span><<a href="mailto:glenc2004@comcast.net">glenc2004@comcast.net</a>></span> wrote:<br />
<blockquote class="gmail_quote" style="margin: 0  0  0  .8ex; border-left: 1px  #ccc  solid; padding-left: 1ex;">
<div>
<div style="font-family: Times New Roman; font-size: 12pt; color: #000000;">
<div>Hi All,</div>
<div> </div>
<div>     I'm wondering if it's possible to use Spacewalk as both the repo server it's meant to be but also a be able to use the rpm -ivf <a href="http://ip/%3Cpath%3E/file.rpm">http://ip/<path>/file.rpm</a> to be able to download rpm files from the command line. I've bee searching on specific keywords for this type of use but cannot find any type of content that would show me how this can be done. It will just make it easier if I can combine both a regular local yum server and the features of spacewalk.</div>
<div> </div>
<div>If this is possible, would someone be able to provide a sample baseurl that would work?</div>
<div> </div>
<div>So in conclusion:</div>
<div> </div>
<div>1) Use Spacewalk to manage the RHEL/CENTOS systems</div>
<div>2) Use spacewalk resources and be able to download rpm's from it's repo/channel from the linux command line using "rpm -ivh <a href="http://ip/path/filename.rpm%22">http://ip/path/filename.rpm"</a></div>
<div> </div>
<div> </div>
<div>Thanks!</div>
<div> </div>
<div>Glen Collins</div>
</div>
</div>
<br />_______________________________________________<br /> Spacewalk-list mailing list<br /><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br /><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></blockquote>
</div>
</div>
<br />
<pre>_______________________________________________
Spacewalk-list mailing list
<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a>
<a href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a>
</pre>
</blockquote>
</body></html>