LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 05-02-2013, 05:50 PM   #1
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
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.
 
Old 05-02-2013, 06:05 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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.
 
Old 05-02-2013, 06:13 PM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 876

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
You could also use rpm2tgz to convert the RPMs, install them with installpkg, and then remove them with removepkg.
 
1 members found this post helpful.
Old 05-02-2013, 06:25 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Removed incorrect/misleading info for my original post.

Last edited by Kustom42; 05-02-2013 at 08:00 PM.
 
Old 05-02-2013, 07:22 PM   #5
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
Quote:
Originally Posted by Kustom42 View Post
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.

Last edited by ruario; 05-02-2013 at 07:26 PM.
 
1 members found this post helpful.
Old 05-02-2013, 07:59 PM   #6
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,590

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Quote:
Originally Posted by ruario View Post
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.
 
Old 05-03-2013, 09:40 AM   #7
camorri
Senior Member
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1
Posts: 4,869

Original Poster
Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
i installed open office.org in my ubuntu10.04,can't see it under app>office any help wairesh Linux - Software 1 12-30-2011 10:05 AM
Removing Windows Office installed with Crossover taj Ubuntu 1 09-20-2008 11:30 AM
Open Office- where does it get installed to? OOwriter executible? hitest Slackware 3 02-20-2006 12:30 AM
installed open office from linuxpackages.net, don't know how to open it salviadud Slackware 7 04-15-2005 11:28 AM
Removing fonts in Open Office juanr0 Linux - Software 1 03-09-2005 02:20 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration