LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-17-2015, 03:44 PM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 741

Rep: Reputation: Disabled
Removing software


A while back, I installed some software using the following:
Code:
#wget http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.0/wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz
#tar -xvJf wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz -C /opt
I know wish to remove it. Should I just delete it or something else? Thanks
 
Old 01-17-2015, 03:56 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,528
Blog Entries: 6

Rep: Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437
Yes, since it was installed outside the package tools you can only delete it the same way...

I would look at the original tar archive and make sure it created everything under a single parent directory, then delete that directory. If it created more than one parent make sure you get them all - AND make sure it did not create any files in pre-existing directories.

If the runtime of the program created any configs in /etc/ or ~/, you will need to find and delete those separately.
 
Old 01-17-2015, 03:56 PM   #3
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,880

Rep: Reputation: 134Reputation: 134
Check out the directory under /opt/, if there is a folder wkhtmltopdf.
 
Old 01-17-2015, 05:24 PM   #4
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 741

Original Poster
Rep: Reputation: Disabled
Don't even know if I still have the original tar archive, but if I did, how would I use it?

Also, looks like everything is under one directory in /opt/.

[Michael@devserver ~]$ ls /opt
rh wkhtmltox
[Michael@devserver ~]$ ls /opt/wk*
bin include lib
[Michael@devserver ~]$
 
Old 01-17-2015, 05:46 PM   #5
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=14, FreeBSD_10{.0|.1|.2}
Posts: 4,528
Blog Entries: 6

Rep: Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437Reputation: 2437
Quote:
Originally Posted by NotionCommotion View Post
Don't even know if I still have the original tar archive, but if I did, how would I use it?

Also, looks like everything is under one directory in /opt/.

[Michael@devserver ~]$ ls /opt
rh wkhtmltox
[Michael@devserver ~]$ ls /opt/wk*
bin include lib
[Michael@devserver ~]$
You can see what files are in the archive like this...

Code:
#tar -tvJf wkhtmltox-linux-amd64_0.12.0-03c001d.tar.xz
If there looks to be a single directory then you are probably safe to just remove it and all its children.

I always like to take baby steps when doing such things to keep from doing anything unexpected, so I would...

Code:
cd /opt  - Change into the parent directory so you can delete with relative paths...
pwd  - Just to confirm that you are where you think you are...

ls wkhtmltox  - So you can see what to expect... then...
rm -rf wkhtmltox

ls  - To confirm that it is gone...
 
Old 01-17-2015, 05:55 PM   #6
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 741

Original Poster
Rep: Reputation: Disabled
Couldn't find the old tar file even on line, but think it just installed it in the one directory.

Yes, baby steps make sense, especially when using force flags as root!
 
Old 01-18-2015, 02:22 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,245

Rep: Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527Reputation: 2527
Quote:
Couldn't find the old tar file even on line, but think it just installed it in the one directory.
????????

i found it in less than 30 seconds on the sorceforge link you posted in the first post

also 12.0 is OLD
12.2 is current

also what you installed was NOT source code you build
but a prebuilt binary

just delete the folder in opt
 
  


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
Removing software toes Mandriva 3 03-18-2005 01:26 PM
Removing software Ungluun Slackware 2 07-16-2004 09:08 PM
Removing software Jimi_l Fedora 5 07-02-2004 11:44 PM
Removing software: How to clean up tarballed Linux - Software 4 07-20-2003 01:49 PM
Removing Installed Software SirLancelotX Slackware 3 07-14-2003 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration