In regard to: Re: Invalid package name?, Albert Chin said (at 2:14pm on May...:
On Fri, May 28, 2004 at 02:01:39PM -0500, Tim Mooney wrote:
The problem happens when you have e.g.
$ rpm -qa | egrep -i foo-
foo-1.1-1
foo-1.2-17
$ rpm -Uvh foo-1.3-1.i386.rpm
Now, which foo is getting upgraded to 1.3-1, 1.1-1 or 1.2-17? There's
the problem.
What does RPM do?
It's been a while since I've tried it, but I seem to recall it updates
whichever package shows up first in the output from rpm -qa. In other
words, if you do
$ rpm -i foo-1.1-1.i386.rpm
$ rpm -i bar-2.0-1.i386.rpm
$ rpm -i foo-1.2-17.i386.rpm
$ rpm -qa
foo-1.1-1
bar-2.0-1
foo-1.2-17
$ rpm --erase foo-1.1-1
$ rpm -i baz-3.0-1.i386.rpm
$ rpm -i foo-1.1-1.i386.rpm
$ rpm -qa
baz-3.0-1
bar-2.0-1
foo-1.2-17
foo-1.1-1
$ rpm -U foo-1.3-1.i386.rpm
$ rpm -qa
baz-3.0-1
bar-2.0-1
foo-1.3-1
foo-1.1-1
We're using an older RPM, though, so the behavior might be considerably
different with 4.0.x.
Tim
--
Tim Mooney mooney@xxxxxxxxxxxxxxxxxxxxxxxxx
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list