[5105] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Install and update 4.0

daemon@ATHENA.MIT.EDU (Peter Moulder)
Tue Nov 19 01:27:08 1996

Date: Sun, 17 Nov 1996 13:13:33 +1100
From: Peter Moulder <reiter@netspace.net.au>
To: redhat-list@redhat.com
In-reply-to: Dirk Laurie's message of Fri, 8 Nov 1996 15:50:04 +0200 (SAT)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

   This works, but is wasteful:
     Install what you want.  Boot the new system, go into the
     updates directory and   rpm -U *
     All the packages in the updates directory will be installed.

   What you need is an option on rpm that will update only if the
   package is already installed.   Or one of those awk-ward scripts
   that I have never been able to write.

for i in *; do if rpm -q `rpm -qp $i`; then rpm -U $i; fi; done

(Untested.)
Redirect stderr and/or stdout if you like, but I'd prefer the chance
to see what packages it did and didn't install.

pjm.


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post