Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have put together rpm's for OpenOffice.org 3.1.1 for CentOS/RHEL 5. Everything works as expected.
I also created "ooo3-base", virtual rpm package that depends on all needed rpm's, so that installation is much easier. This is especially necessary because I additionally created "ooo3-en-US" "ooo3-SR" and "ooo3-SH" for separate language files, and they depend on "ooo3-base" so everything installs fine if there is no OpenOffice.org version 2(.3.0). Problem arises when there is already older OpenOffice.org installed (version 2.3.0), since my rpm's do not have Obsoletes set.
I am now trying to add Obsoletes to ooo3-base pockage, but there are problems.
For now, I was adding lines like this:
Obsoletes: openoffice.org-core < 1:3.0.0
But when trying to install that package, it only says something like "replacing" obsolete packages, but it does not select old packages for removal.
Is this normal behavior, or is there a way to remove them at the same time I am installing new packages?
Fedora 10 version creates rpm by rpm with "Obsolete:" lines for each packet. When I add all those Openoffice.org v2 files with "Obsolete:" to ooo3-base, it runs, but it does not remove old packages, but it looks like it integrates then (I currently do not have that setup in spec so I can not post you exact install log). I am afraid that not actually removing old packages could leave files from old packages on the system and interfere with OpenOffice.org 3.x.
Best option for me would be to remove packages before the installation of new version begins, but I do not know how to make this happen. Google haven't shown me anything usable (there was A LOT of unrelated junk).
Current setup of ooo3-base file is no Obsoletes what so ever, just to write warning in description to remove old version first. This can also work since few packages from new set have conflicting files with the old set so installing version 3 over version 2 does not work without use of force.
Last time I read a discussion about %obsolete on the rpm mailing list there was lots of talk about what is required to make it happen properly from a RPMDB point of view regarding intricacies like ordering, dependencies and such. I can't remember what the suggestions were but I maybe you would not want to install OOo by starting with ooo3-base but from a meta package instead? (I thought OOo RPMs as distributed by OOo themselves already used one.) Just like you don't install X11/Xorg drivers but the X11/Xorg installation draws in the driver meta package?
That said since version 2 OOo does no longer use its own installer but builds RPMs so I'm thinking they would have already discussed upgrading (as in not reinventing the wheel). Maybe the OOo site, the installation or specifications subprojects or related mailing list archives could tell. Else I wonder what Fedora says in its RPM building guidelines about obsoleting "the right way"...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.