LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Removing Open Office installed with rpm. (http://www.linuxquestions.org/questions/slackware-14/removing-open-office-installed-with-rpm-4175460490/)

camorri 05-02-2013 04:50 PM

Removing Open Office installed with rpm.
 
I know now I shouldn't have installed Open Office with a rpm command, however, I did. Now I would like to remove it, and install Libre Office, probably from Alien Bob's repo.

I install OO with this command.

Quote:

rpm -i --nodeps -vh --ignoresize *.rpm
I still have the entire OO set of rpms. My question, is can I remove OO with a command like:

Quote:

rpm -e --nodeps -vh --ignoresize *.rpm
issued as root from within the directory with the rpm files ? Is there some better way?

The system is now 14-64 with a stock kernel. I installed OO originally on 13.37 64 bit, and upgraded the system using the instructions on the DVD. Right now I have one minor problem. If I run compiz, the window decorations are not there. The cube will spin, no decorations. I have no idea if this is related to having OO installed as a rpm, or not.

FWIW, compiz works fine on the 32 bit system installed on the other disk on the same system. Same nvidia drivers on both systems.

Kustom42 05-02-2013 05:05 PM

Code:

rpm -e --nodeps -vh --ignoresize installedrpmname
The above will work, assuming you dont specify any other rpms with the exception of the ones you installed with --nodeps. Only difference is its the actual rpm name and not the .rpm file name. Consufing, but its the result of an rpm -qa. Probably the exact same thing without the .rpm on the end but just confirm.

volkerdi 05-02-2013 05:13 PM

You could also use rpm2tgz to convert the RPMs, install them with installpkg, and then remove them with removepkg.

Kustom42 05-02-2013 05:25 PM

Removed incorrect/misleading info for my original post.

ruario 05-02-2013 06:22 PM

Quote:

Originally Posted by Kustom42 (Post 4943688)
That would be valid if they weren't already installed.

It is still valid, you are simply misunderstanding the advice. Converting with rpm2tgz, will make a Slackware tgz package with files in the same location as the original rpm. Installing this with installpkg will therefore overwrite the installed files. Then then when you remove with removepkg it will remove all files, thus bringing the filesystem back to a clean state.

EDIT: There will still be a ghost entry left in the rpm database but this is a relatively minor thing as you wouldn't be using rpm to manage packages again in the future anyway, right. ;)

Kustom42 05-02-2013 06:59 PM

Quote:

Originally Posted by ruario (Post 4943705)
It is still valid, you are simply misunderstanding the advice. Converting with rpm2tgz, will make a Slackware tgz package with files in the same location as the original rpm. Installing this with installpkg will therefore overwrite the installed files. Then then when you remove with removepkg it will remove all files, thus bringing the filesystem back to a clean state.

EDIT: There will still be a ghost entry left in the rpm database but this is a relatively minor thing as you wouldn't be using rpm to manage packages again in the future anyway, right. ;)

That makes sense, you're basically creating a better uninstaller in this method. Thanks for the info and clarification.

camorri 05-03-2013 08:40 AM

Thank-you to all those who replied.

I followed the advice to convert the .rpm files to .tgz files, ran installpkg.tgz and then removepkg.tgz. Worked like a charm.

Next I installed libreoffice, and voila, I can open my files with Libreoffice.

Problem solved. Thank-you, again to the community.


All times are GMT -5. The time now is 01:21 PM.