yes that would be correct the "RHN" plugin that spacewalk uses does not use the configurations in the /etc/yum.repos.d/ directory it uses the /etc/sysconfig/rhn/up2date for all its information if you dig into that file a little you will get a better understanding of how it and Redhat Network functions.
On Wed, Oct 17, 2012 at 3:34 PM, <fn...@yahoo.com> wrote: > I've found the spacewalk server's hostname is in /etc/sysconfig/rhn/up2date > file. After I removed this file and cleaned yum cache, the 'yum list' > command is still working. > > nz > > ________________________________ > From: "fn...@yahoo.com" <fn...@yahoo.com> > To: Paul Robert Marino <prmari...@gmail.com>; "spacewalk-list@redhat.com" > <spacewalk-list@redhat.com> > Sent: Wednesday, October 17, 2012 2:47:38 PM > > Subject: Re: [Spacewalk-list] How to set Spacewalk server as yum server > > Thanks Paul for the clarification. > > See the following commands and outputs please. There is no .repo file > available (all enabled=0), then where the 'yum list' come from? I am > confused: > > # yum clean all && yum clean metadata && yum clean dbcache > Loaded plugins: rhnplugin, security > Cleaning up Everything > Loaded plugins: rhnplugin, security > 0 metadata files removed > 0 sqlite files removed > 0 metadata files removed > Loaded plugins: rhnplugin, security > 0 sqlite files removed > > # grep enabled=1 /etc/yum.conf > # > # grep enabled=1 /etc/yum.repos.d/* > # > > # yum list | more > Loaded plugins: rhnplugin, security > Installed Packages > Deployment_Guide-en-US.noarch 5.8-1.el5 installed > GConf2.i386 2.14.0-9.el5 installed > GConf2.x86_64 2.14.0-9.el5 installed > GConf2-devel.i386 2.14.0-9.el5 installed > GConf2-devel.x86_64 2.14.0-9.el5 installed > ImageMagick.i386 6.2.8.0-15.el5_8 installed > ImageMagick.x86_64 6.2.8.0-15.el5_8 installed > MAKEDEV.x86_64 3.23-1.2 installed > ............................................................................ > > Thanks. > > nz > > > > nz > > ________________________________ > From: Paul Robert Marino <prmari...@gmail.com> > To: spacewalk-list@redhat.com; fn...@yahoo.com > Sent: Tuesday, October 16, 2012 4:39:41 PM > Subject: Re: [Spacewalk-list] How to set Spacewalk server as yum server > > Under the hood mrepo runs createrepo for you > On Oct 16, 2012 3:35 PM, <fn...@yahoo.com> wrote: > > Hi, > > I believe that this is a good subject, but haven't found related info yet > online about it. Sorry if the subject has already been discussed in this > great mailing list before. > > I'd like to set our Spacewalk server as a Yum server, so clients can use yum > command to install/upgrade single package. The Spacewalk server has been > working well. Here is what I did on the client: > > spacewalkclient# cat /etc/yum.repos.d/spacewalk-client.repo > [spacewalk-client] > name=Spacewalk Client Tools > baseurl=http://spacewalkserver.ourdomain.com/mrepo/rhel_5_server-x86_64/RPMS.updates > #gpgkey=http://spacewalk.redhat.com/yum/RPM-GPG-KEY-spacewalk-2012 > enabled=1 > gpgcheck=0 > > > What else do I need to do to implement the job? I think I don't need to run > 'createrepo' command since repodata sub-directories have already been > created by the spacewalk-mrepo sync process. > > Thank you! > > nz > > > _______________________________________________ > 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 > _______________________________________________ Spacewalk-list mailing list Spacewalk-list@redhat.com https://www.redhat.com/mailman/listinfo/spacewalk-list