[CentOS] Can up2date use a local yum mirror?

Wed Jan 31 04:38:25 UTC 2007
Johnny Hughes <mailing-lists at hughesjr.com>

On Tue, 2007-01-30 at 19:50 -0600, Jay Leafey wrote:
> Alfred von Campe wrote:
> > If so, how do you configure the up2date client that comes with CentOS to 
> > look at the local yum mirror?  Conversely, how do you disable the CentOS 
> > Network Alert Notification Tool so that users won't see the "throbbing 
> > red circle" and be tempted to launch the up2date client?
> > 
> > Thanks,
> > Alfred
> 
> You can add or change the source of updates used by up2date by editing
> the file /etc/sysconfig/rhn/sources.  There are examples in 
> the comments for using apt or yum repositories, or just a directory full of RPM files.
> 
> Good luck!

up2date uses yum headers that are created by yum-arch ... where as yum >
2.2 (the version in CentOS-4 is 2.4 currently) uses metadata created by
createrepo.

If you used yum-arch to create yum headers for your local yum repos,
then you can adjust up2date (and therefore also rhn-applet) to use a
local repo by adjusting /etc/sysconfig/rhn/sources.

up2date can even use (though not very well) createrepo metadata using
the repomd type repo .. however, rhn-applet will not work that way.
That is why the centos mirrors have both yum-arch and createrepo type
metadata.

Remember that yum (and not up2date) was designed as the primary method
for package management for CentOS.  Up2date is provided with the RHN
parts removed, and is functional, but yum is recommended.  In fact,
up2date would not have been retained at all if it were not for the rhn-
applet.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20070130/46646891/attachment-0005.sig>