[PLUG] Redhat Psyche updates

Paul Heinlein heinlein at madboa.com
Thu Mar 18 09:58:02 UTC 2004


On Thu, 18 Mar 2004, Keith Nasman wrote:

> Is RedHat still providing updates for 8.0? Is Fedora providing
> updates for 8.0 or are Fedora updates only for Core 1 and newer?
>
> I guess the main question is: What is the updates URL for my
> situation?

1. download yum:

   http://linux.duke.edu/projects/yum/download/1.0/yum-1.0.3-1_80.noarch.rpm

   You'll also need to install the librpm404 and rpm404-python
   packages if they aren't already on the system(s) in question.

2. concoct a decent yum.conf, e.g.,

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest

[base]
name=Red Hat Linux $releasever base
baseurl=http://download.fedoralegacy.org/redhat/$releasever/os/$basearch

[updates]
name=Red Hat Linux $releasever updates
baseurl=http://download.fedoralegacy.org/redhat/$releasever/updates/$basearch

[legacy-utils]
name=Fedora Legacy utilities for Red Hat Linux $releasever
baseurl=http://download.fedoralegacy.org/redhat/$releasever/legacy-utils/$basearch

3. as root, grab the current header set and look for updates (may take
   a couple minutes):

   yum check-update

4. do needed updates:

   yum update

5. put a cron job in place that does periodic reporting; at work, I
   put this script in /etc/cron.weekly:

#!/bin/bash
#
# yum.cron -- weekly report on what packages need to be updated
#
# $Id: yum.cron,v 1.2 2004/02/02 22:48:48 heinlein Exp $
#
YUM="/usr/bin/yum"
echo "####################################################"
echo "#"
echo "# Yum update report: $(/bin/hostname)"
echo "#"
echo "####################################################"
echo
if test -x "$YUM"; then
  $YUM check-update
else
  echo "$YUM is apparently unavailable."
fi
unset -v YUM
#
# eof
#

--Paul Heinlein <heinlein at madboa.com>




More information about the PLUG mailing list