[1966] in RedHat Linux List
rpm -U is inconvenient
daemon@ATHENA.MIT.EDU (Dirk Laurie)
Thu Oct 31 02:11:15 1996
From: Dirk Laurie <redhatter@calvyn.puk.ac.za>
To: redhat-list@redhat.com (Red Hat List)
Date: Thu, 31 Oct 1996 08:59:46 +0200 (SAT)
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
You have just installed the minimal Red Hat 4.0 on a disk
with not much more than the 30MB or so that it needs (no
optional extras) -- in my case an IOMEGA zip drive.
You stare at the 40-odd packages, more coming in daily, that appear
in the upgrades directory on ftp.redhat.com. You want to upgrade only
those that you already have. You don't want to install anything that
you don't already have. You, hoping for some intelligence from rpm, type
rpm -U *
in the directory on your favourite nfs-mounted server that
mirrors ftp.redhat.com.
40-odd packages are installed regardless ...
The disk gets clogged up ...
What other options did you have?
1. Manually run rpm -qa, manually for each package you need
type
rpm <package-name><backspace-last-number><tab-for-filename-completion>
If the filename doesn't complete, skip it.
2. Write a little shell script that would do the above.
It probably is a one-liner in perl if you have mastered
perl (which I haven't).
Wouldn't it have been ever so much nicer if a little sub-option
for rpm -U were available, to specify either "only upgrade
an installed package" or "install anyway"?
Dirk
--
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