LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-31-2010, 06:28 PM   #1
mfduqued
Member
 
Registered: Dec 2008
Location: Colombia
Distribution: Slackware 12.2
Posts: 33
Blog Entries: 1

Rep: Reputation: 15
Solved: Howto uninstall gnuplot 4.2 at Slackware 12.2


My laptop has Slackware 12.2 and I installed gnuplot 4.2 patchlevel 5. But in this moment I need to install gnuplot 4.4. First I like to uninstall gnuplot 4.2, but I can't uninstall this programm.

I do
slackpkg remove gnuplot
and obtaining
Looking for gnuplot in package list. Please wait... DONE

The file remove can't be removed - package not installed.

after I do too
removepkg gnuplot
and obtaining
ls: cannot access /var/log/packages/gnuplot*: No such file or directory
No such package: /var/log/packages/gnuplot. Can't remove.


But Gnuplot 4.2 was installed at my laptop. I can do graphics and its version is
@science:~$ gnuplot --version
gnuplot 4.2 patchlevel 5

Please help me how to uninstall this version and to install gnuplot 4.4.

Last edited by mfduqued; 04-01-2010 at 10:39 PM. Reason: Solved and very useful
 
Old 03-31-2010, 06:53 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
It was apparently not installed using a package

My guess is that it was installed by running it's own 'make install' process, so it does not appear in the package database and cannot be removed that way. The easy and complete way to do it would be to get the original version of the source and run 'make uninstall' (if it supports that.).

The easy dirty way to do it would be to look at the output of 'whereis gnuplot' and begin removing things from that list while THINKING CAREFULLY about what you are looking at.

Then install the new version using a slackbuild package.

EDIT:
See mRgOBLIN's post below - that is a better idea...
/EDIT

Last edited by astrogeek; 03-31-2010 at 07:40 PM.
 
1 members found this post helpful.
Old 03-31-2010, 07:28 PM   #3
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
If you have the MANIFEST.bz2 handy you might check what is included in the stock package.
Code:
bzcat slackware-12.2/slackware/MANIFEST.bz2 |fgrep gnuplot
 
1 members found this post helpful.
Old 03-31-2010, 10:35 PM   #4
mfduqued
Member
 
Registered: Dec 2008
Location: Colombia
Distribution: Slackware 12.2
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: 15
astrogeek:

Thanks for your time and help.

I have the original version of the source (gnuplot-4.2.5.tar.gz). But at this folder is not file uninstall. I can't do make uninstall.

What can I do?

I install gnuplot by it's own 'make install' process
 
Old 03-31-2010, 10:40 PM   #5
mfduqued
Member
 
Registered: Dec 2008
Location: Colombia
Distribution: Slackware 12.2
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: 15
mRgOBLIN

I don't know nothing about MANIFEST.bz2.

Is a program?, What do it do?, Where do I get it?

Thanks for you help
 
Old 03-31-2010, 10:58 PM   #6
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
Look for it in /var/log/packages, if you find it, let's say, something like this:

Code:
/var/log/packages/gnuplot-4.2.6-i486-1
Than, if you're upgrading to a new one

Code:
# upgradepkg oldfile%newfile
Or, just issue a

Code:
# removepkg gnuplot-4.2.6-i486-1
 
Old 04-01-2010, 06:47 PM   #7
mfduqued
Member
 
Registered: Dec 2008
Location: Colombia
Distribution: Slackware 12.2
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: 15
rfernandez

At /var/log/packages/

is not the package gnuplot

but at /var/log/remove_packages

is a package gnuplot-4.2.5

but this a package doesn't uninstall because It is working

I can do graphics and export these graphics.

Why?
 
Old 04-01-2010, 07:19 PM   #8
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Quote:
Originally Posted by mfduqued View Post
I have the original version of the source (gnuplot-4.2.5.tar.gz). But at this folder is not file uninstall. I can't do make uninstall.

What can I do?

I install gnuplot by it's own 'make install' process
Since you have the original file do this - guaranteed to work (I think):

1.) tar -xvzf gnuplot-4.2.5.tar.gz
2.) cd into gnuplot-4.2.5/
3.) ./configure
4.) make
5.) make uninstall (must be run as root)

That will build the original package for your system, then uninstall it.

This should give you a clean uninstall before building the new one.

EDIT:
FWIW - I use gnuplot myself and was still using v4.2.3 with Slackware 12.1 on my laptop.
I decided to upgrade to v4.4.0 so I removed the old package and first built your version and tried the 'make uninstall' method for removal - it will work.
Then I built 4.4.0 with a slackbuild and am now running it under 12.1...
So I hope you get yours going - I got an upgrade for my trouble - thanks!
/EDIT

Last edited by astrogeek; 04-01-2010 at 09:07 PM. Reason: Tested removal method
 
1 members found this post helpful.
Old 04-01-2010, 10:37 PM   #9
mfduqued
Member
 
Registered: Dec 2008
Location: Colombia
Distribution: Slackware 12.2
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: 15
astrogeek,

Thank you.

Your information is very useful.

In this moment I install gnuplot 4.4 at my laptop.

Thank you very much.
 
Old 04-01-2010, 11:37 PM   #10
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Quote:
Originally Posted by mfduqued View Post
astrogeek,
Thank you.
Your information is very useful.
In this moment I install gnuplot 4.4 at my laptop.
Thank you very much.
Excellent!
Glad it helped!
 
  


Reply

Tags
gnuplot, slackware12



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
Howto Uninstall Noatun fortezza Linux - Software 1 11-02-2005 02:17 AM
delete/uninstall SuSE howto? jdblick SUSE / openSUSE 4 07-26-2005 09:14 AM
howto uninstall mplayer basically what does it install? behmjoe Linux - Software 2 04-14-2005 04:20 PM
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 11:03 AM
HOWTO uninstall the kernel 2.6.0 (not rpm). NAKED_DEXTER Linux - Newbie 4 03-07-2004 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:14 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
Open Source Consulting | Domain Registration