Re: RPM Obsoletes don't work like I want them to

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2010-01-30 at 15:45 -0600, Paul Johnson wrote:

[...]
> I want the rpm install of java-1.6.0-sun to remove the
> java-1.6.0-openjdk package.  I thought the SPEC option Obsoletes would
> get that. In my sun jdk spec file,  the top 100 lines of which I paste
> in below. I've done something wrong, because when I install those with
> the usual "rpm -ivh java-1.6.0-sun-1.6.0.18-2.0.Centos54kups.i586.rpm"
> then the openjdk packages are not removed.

 "rpm --install" is rarely the right thing to do, I don't know of any
higher level package manager which likes to have  two versions of the
same package. And, as you've found out, --install doesn't do obsoletes
processing ... which is often unwanted behaviour.

[...]
> Obsoletes:      javaws-menu
> Obsoletes:      java-1.6.0-openjdk

 Also, don't do unversioned obsoletes ... it always ends in pain.

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxxxxx
http://lists.rpm.org/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux