[WBEL-users] Another Up2date question

Philip R. Schaffner Philip.R.Schaffner@NASA.gov
Wed, 17 Mar 2004 13:18:39 -0500


Will,
(Sure William knows this stuff ;-)

This thread is a bit stale, but thought some further info might be
helpful...

On Tue, 2004-03-16 at 16:32, William Hooper wrote: 
> Will Senn said:
> >            William,
> >
> >  Thanks, ok - NO RHEL updates! Yum, hmm - I figure that this must be what
> > /etc/yum.conf is for and that I can add the file:///updates directory as
> > an entry and away we go, great!

If you have multiple machines to update, HTML is an easy way to go:

Make sure Apache is installed and running on the server:
[root@radar0]# rpm -qf /etc/init.d/httpd
httpd-2.0.48-1.2
[root@radar0]# chkconfig --list httpd
httpd      0:off   1:off   2:off    3:off    4:off    5:off    6:off
[root@radar0]# service httpd start
Starting httpd:                                            [  OK  ]
[root@radar0]# chkconfig httpd on
[root@radar0]# chkconfig --list httpd
httpd      0:off   1:off   2:on    3:on    4:on    5:on    6:off

I have a nightly cron job that syncs a mirror to a local directory with
the lftp script below. (Anybody got an rsync server?)

[root@radar0]# crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.14581 installed on Mon Feb  2 16:25:37 2004)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# At 04:20 am daily:
#   Update White Box Enterprise Linux Repository Mirror
#
20 4 * * * /raid/RH/WhiteBox/Run_lftp_whitebox
--
  open ftp://mirror.physics.ncsu.edu/mirror/beau.org/whitebox/3.0/en
  lcd /raid/RH/WhiteBox/3.0/en
  pwd
  ! pwd
  mirror --continue --delete --verbose=1 . .
  close
  exit
--

Of course, replace "/raid/RH/WhiteBox/3.0/en" with your path.  Can drill
down to the updates directory if you don't want a local copy of the base
OS stuff, but it is convenient for any future missing base package
dependencies.  May want to pre-set-up the os directory from the stuff
you already have downloaded to avoid lftp fetching it again.

Once you have the mirror directory set up:

[root@radar0]# mkdir /var/www/html/whitebox
[root@radar0]# ln -s /raid/RH/WhiteBox/3.0 /var/www/html/whitebox/

Then the yum.conf entry on the WBEL machine is:
--
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=whitebox-release
tolerant=1
exactarch=1

[base]
name=White Box Enterprise Linux $releasever - $basearch - Base
failovermethod=priority
baseurl=http://your.httpd.server/whitebox/$releasever/en/os/$basearch
ftp://ftp.esat.net/mirrors/whiteboxlinux.org/3.0/en/os/i386/
ftp://mirror.physics.ncsu.edu/pub/whitebox/$releasever/en/os/$basearch
http://whiteboxlinux.org/pub/$releasever/en/os/$basearch

[updates-released]
name=White Box Enterprise Linux $releasever - $basearch - Released
Updates
failovermethod=priority
baseurl=http://your.httpd.server/whitebox/$releasever/en/updates/
ftp://mirror.physics.ncsu.edu/pub/whitebox/$releasever/en/updates/
ftp://ftp.esat.net/mirrors/whiteboxlinux.org/$releasever/en/updates/
http://whiteboxlinux.org/pub/$releasever/en/updates/

[dag]
name=Dag Wieers' RHEL3 Repository
baseurl=http://apt.sw.be/redhat/el3/en/i386/dag/
--

May/may-not want Dag's extras above.

up2date entries:
--
yum WBEL-3.0 http://your.httpd.server/whitebox/3.0/en/os/i386
yum updates-released http://your.httpd.server/whitebox/3.0/en/updates
yum Dag http://apt.sw.be/redhat/el3/en/i386/dag
--

> Well, yum.conf is for yum, up2date sources are defined in the
> /etc/sysconfig/rhn/sources file.  Up2date supports both yum and apt repos
> along with "just a directory of files" (which rhn-applet has issues with).
> 
> >  I wasn't subscribed last week, so maybe you already went over this

Access the list archive at http://beau.org/pipermail/whitebox-users/

> - I
> > downloaded the updates and then ran the command:
> >  rpm -Fvh $(ls *rpm | egrep -v '^(kernel-)')
> >  to update all except the kernel files...
> >  well, didn't work - dependency issues
> 
> And Arch issues (glibc, kernel, openssl).
> 
> > - when I then used the up2date
> > program, it figured out that I needed a couple of additional packages
> > from the base install and did it's magic. Is there a simple way to
> > perform the update from a command line as opposed to the GUI and still
> > get the benefit of having the dependencies figured out?
> 
> Up2date (you can run up2date-nox from the command line) and yum both come
> with WBEL.

I use "yum upgrade", "yum install <package>", etc. from the command line
with the above setup.

Welcome to WBEL.

Phil