[WBEL-users] Another Up2date question

Will Senn will_senn@comcast.net
Wed, 17 Mar 2004 15:14:06 -0600


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Phil,<br>
<br>
That's great! Thanks for the info, that's close enough to what I had in
mind that I can tweak it, appreciate your following up with the info.<br>
<br>
Thanks,<br>
<br>
Will<br>
<br>
Philip R. Schaffner wrote:<br>
<blockquote cite="mid1079547519.2092.6.camel@radar0.larc.nasa.gov"
 type="cite">
  <pre wrap="">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: 
  </pre>
  <blockquote type="cite">
    <pre wrap="">Will Senn said:
    </pre>
    <blockquote type="cite">
      <pre wrap="">           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 <a class="moz-txt-link-freetext" href="file:///updates">file:///updates</a> directory as
an entry and away we go, great!
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
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 <a class="moz-txt-link-freetext" href="ftp://mirror.physics.ncsu.edu/mirror/beau.org/whitebox/3.0/en">ftp://mirror.physics.ncsu.edu/mirror/beau.org/whitebox/3.0/en</a>
  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=<a class="moz-txt-link-freetext" href="http://your.httpd.server/whitebox/$releasever/en/os/$basearch">http://your.httpd.server/whitebox/$releasever/en/os/$basearch</a>
<a class="moz-txt-link-freetext" href="ftp://ftp.esat.net/mirrors/whiteboxlinux.org/3.0/en/os/i386/">ftp://ftp.esat.net/mirrors/whiteboxlinux.org/3.0/en/os/i386/</a>
<a class="moz-txt-link-freetext" href="ftp://mirror.physics.ncsu.edu/pub/whitebox/$releasever/en/os/$basearch">ftp://mirror.physics.ncsu.edu/pub/whitebox/$releasever/en/os/$basearch</a>
<a class="moz-txt-link-freetext" href="http://whiteboxlinux.org/pub/$releasever/en/os/$basearch">http://whiteboxlinux.org/pub/$releasever/en/os/$basearch</a>

[updates-released]
name=White Box Enterprise Linux $releasever - $basearch - Released
Updates
failovermethod=priority
baseurl=<a class="moz-txt-link-freetext" href="http://your.httpd.server/whitebox/$releasever/en/updates/">http://your.httpd.server/whitebox/$releasever/en/updates/</a>
<a class="moz-txt-link-freetext" href="ftp://mirror.physics.ncsu.edu/pub/whitebox/$releasever/en/updates/">ftp://mirror.physics.ncsu.edu/pub/whitebox/$releasever/en/updates/</a>
<a class="moz-txt-link-freetext" href="ftp://ftp.esat.net/mirrors/whiteboxlinux.org/$releasever/en/updates/">ftp://ftp.esat.net/mirrors/whiteboxlinux.org/$releasever/en/updates/</a>
<a class="moz-txt-link-freetext" href="http://whiteboxlinux.org/pub/$releasever/en/updates/">http://whiteboxlinux.org/pub/$releasever/en/updates/</a>

[dag]
name=Dag Wieers' RHEL3 Repository
baseurl=<a class="moz-txt-link-freetext" href="http://apt.sw.be/redhat/el3/en/i386/dag/">http://apt.sw.be/redhat/el3/en/i386/dag/</a>
--

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

up2date entries:
--
yum WBEL-3.0 <a class="moz-txt-link-freetext" href="http://your.httpd.server/whitebox/3.0/en/os/i386">http://your.httpd.server/whitebox/3.0/en/os/i386</a>
yum updates-released <a class="moz-txt-link-freetext" href="http://your.httpd.server/whitebox/3.0/en/updates">http://your.httpd.server/whitebox/3.0/en/updates</a>
yum Dag <a class="moz-txt-link-freetext" href="http://apt.sw.be/redhat/el3/en/i386/dag">http://apt.sw.be/redhat/el3/en/i386/dag</a>
--

  </pre>
  <blockquote type="cite">
    <pre wrap="">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).

    </pre>
    <blockquote type="cite">
      <pre wrap=""> I wasn't subscribed last week, so maybe you already went over this
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
Access the list archive at <a class="moz-txt-link-freetext" href="http://beau.org/pipermail/whitebox-users/">http://beau.org/pipermail/whitebox-users/</a>

  </pre>
  <blockquote type="cite">
    <pre wrap="">- I
    </pre>
    <blockquote type="cite">
      <pre wrap="">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
      </pre>
    </blockquote>
    <pre wrap="">And Arch issues (glibc, kernel, openssl).

    </pre>
    <blockquote type="cite">
      <pre wrap="">- 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?
      </pre>
    </blockquote>
    <pre wrap="">Up2date (you can run up2date-nox from the command line) and yum both come
with WBEL.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
I use "yum upgrade", "yum install &lt;package&gt;", etc. from the command line
with the above setup.

Welcome to WBEL.

Phil




_______________________________________________
Whitebox-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Whitebox-users@beau.org">Whitebox-users@beau.org</a>
<a class="moz-txt-link-freetext" href="http://beau.org/mailman/listinfo/whitebox-users">http://beau.org/mailman/listinfo/whitebox-users</a>

  </pre>
</blockquote>
</body>
</html>