RE: rpms again
"Toby D. Reeves" <[email protected]>
| Newsgroups | gmane.network.up2date.current.devel |
|---|---|
| Message-ID | <[email protected]> |
Attached is the script I use to pull updates from updates.redhat.com for our site. I think its quite different from what I've seen anyone post so far. I run it in a cron job every night. It does not rebuild the current channels automatically. I do that manually after examining the updates first. What does it do? 1. It takes inventory of what updates you already have mirrored locally. 2. Uses wget to update your mirror. 3. Takes new inventory. 4. If there are any new files, it make a list of them and emails you. I'm sure its not bullet proof but works for me. Toby -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of jeremy johnson Sent: Monday, August 12, 2002 1:35 PM To: [email protected]; Rob Hagopian Cc: Current Server Mailing List Subject: Re: [Current-server] rpms again Ill be giving 1.3 a shot today with about 200+ clients. Is this release multi threaded? Ive been outa the loop for awhile and still running current-1.0.3-1 :) Anyways what are some good errata mirrors? it appears the mirror i used is now extremely slow ALL the time! Also whats a good way to check for errata updates on a daily basis and get only the versions you dont already have? The current method that im using is just downloading the whole site at midnight, which works but is not really the best method. Any suggestions would be welcomed. ----- Original Message ----- From: "Hunter Matthews" <[email protected]> To: "Rob Hagopian" <[email protected]> Cc: "Current Server Mailing List" <[email protected]> Sent: Sunday, August 11, 2002 11:32 AM Subject: RE: [Current-server] rpms again > I have placed the src rpms for the updated clients on the ftp site. > These are the ones I'll start rolling out to my own department monday, > so they HAVE NOT BEEN tested extensively, but they seem to be right. > > They should work/install on both redhat 7.2 and redhat 7.3 machines. > > Naturally, you'll want to install the src rpms, change the config files > in each to point to your sites Current server, and rpm -ba them. > > Please let me know of trouble. > > > On Sat, 2002-08-10 at 22:46, Rob Hagopian wrote: > > Any chance you could post to the list, email me a copy, or check it into > > CVS? We're about to do a big (350 server) install this week... > > -Rob > > > > -----Original Message----- > > From: Hunter Matthews [mailto:[email protected]] > > Sent: Saturday, August 10, 2002 4:01 PM > > To: Current Server Mailing List > > Subject: Re: [Current-server] rpms again > > > > > > As mentioned earlier, I'm redoing mine with 2.7.86 right this second, so > > we'll know in a bit. > > > > > -- > Hunter Matthews Unix / Network Administrator > Office: BioScience 145/244 Duke Univ. Biology Department > Key: F0F88438 / FFB5 34C0 B350 99A4 BB02 9779 A5DB 8B09 F0F8 8438 > Never take candy from strangers. Especially on the internet. > > _______________________________________________ > Current-server mailing list > [email protected] > http://lists.dulug.duke.edu/mailman/listinfo/current-server _______________________________________________ Current-server mailing list [email protected] http://lists.dulug.duke.edu/mailman/listinfo/current-server
redhat_updates.sh
(application/octet-stream, 2.1 KB)
#! /bin/sh # Toby D. Reeves # September 2002 # $Id: redhat-updates.sh,v 1.6 2002/09/12 13:51:40 toby Exp $ # Get Red Hat Linux updates from Red Hat. # Notify by email when there are new updates ready to be installed. MAIL_TO="toby [email protected]" LOG="status.log" BEFORE_LST="before.listing" AFTER_LST="after.listing" NEW_LST="new.listing" PID_FILE="$0.pid" WGET_BASE="ftp://updates.redhat.com" WGET_LOG="wget.log" WGET_DIR=`echo $WGET_BASE | sed -e "s/.*:\/\///"` until [ -z "$1" ] do case "$1" in -d|--dry*) DRY_RUN="yes" ;; -f|--force*) rm -f $PID_FILE ;; -h|--help|*) cat <<EOF Usage: $0 [-d | --dry-run] [-f | --force] Toby D. Reeves <[email protected]> Sept 2002 EOF exit 1 esac shift done if [ -e $PID_FILE ]; then echo " It appears a previous run of script '$0' is still running." echo " If this is not the case, then please remove the file '$PID_FILE'" echo " or specify command line option of '--force'." exit 1 fi echo $$ >$PID_FILE trap 'rm -f $PID_FILE' EXIT echo "Lastest files from Red Hat now on " `hostname` " :" > ${LOG} echo >> ${LOG} echo "Started:" `date` >> ${LOG} test -d $WGET_DIR || mkdir $WGET_DIR (cd $WGET_DIR; find . -name "*.rpm" -printf "%p | %t | %s\n" | sort) > ${BEFORE_LST} test "x$DRY_RUN" != "xyes" && \ wget -o ${WGET_LOG} --dot-style=mega --mirror \ ${WGET_BASE}/7.2/en/os/i386 \ ${WGET_BASE}/7.2/en/os/i486 \ ${WGET_BASE}/7.2/en/os/i586 \ ${WGET_BASE}/7.2/en/os/i686 \ ${WGET_BASE}/7.2/en/os/noarch \ ${WGET_BASE}/7.3/en/os/i386 \ ${WGET_BASE}/7.3/en/os/i486 \ ${WGET_BASE}/7.3/en/os/i586 \ ${WGET_BASE}/7.3/en/os/i686 \ ${WGET_BASE}/7.3/en/os/noarch (cd $WGET_DIR; find . -name "*.rpm" -printf "%p | %t | %s\n" | sort) > ${AFTER_LST} comm -1 -3 ${BEFORE_LST} ${AFTER_LST} > ${NEW_LST} echo "Finished:" `date` >> ${LOG} echo >> ${LOG} if [ "x$DRY_RUN" = "xyes" -o -s ${NEW_LST} ]; then cat ${NEW_LST} >> ${LOG} cp ${LOG} ${LOG}-`date "+%Y%m%d%H%M"` if [ "x$MAIL_TO" != "x" ]; then cat ${LOG} | mail -s "up2date" ${MAIL_TO} fi fi rm -f $BEFORE_LST $AFTER_LST $NEW_LST $PID_FILE