LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-07-2007, 03:36 PM   #1
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Rep: Reputation: 15
How do you uninstall compiled programs?


Is there a command to remove a certain program after you compiled it from source?

make uninstall is not present in every source/program out there + you can't really store the source directory forever.
 
Old 07-07-2007, 03:45 PM   #2
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
When compiling from source, I do not recommend issuing "make install". There is not always option to remove the program afterwards. You'd better make Slackware packages. You can use Slackbuild scripts ( from slackbuilds.og or slacky.eu for instance), gnashley's src2pkg (trackinstall) or checkinstall. After you create a slckware package in this way, you install it via installpkg and then you can remove it by removepkg.
 
Old 07-07-2007, 03:46 PM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
That's why it's best to create a tgz package and install that. Then you can easily remove it with standard tools. Many options exist to create packages. A recent thread discussing this is at http://www.linuxquestions.org/questi...d.php?t=567104.

Brian
 
Old 07-07-2007, 03:50 PM   #4
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
Didn't know this. Thanks. I'll give SLackbuilds and slk2pkg a look.

Last edited by AriciU; 07-07-2007 at 03:53 PM.
 
Old 07-07-2007, 04:01 PM   #5
AriciU
Member
 
Registered: Jul 2007
Location: Bucharest, Romania
Distribution: Ubuntu 7.04, Slackware 12
Posts: 87

Original Poster
Rep: Reputation: 15
I tested src2pkg on a random source.tar.gz and got this error:

Quote:
bash-3.1# src2pkg -C razertool_0.0.7.orig.tar.gz
Found source archive: razertool_0.0.7.orig.tar.gz
Deleting old build files - Done
Creating working directories:
PKG_DIR=/tmp/razertool-0.0.7-pkg-1
SRC_DIR=/tmp/razertool-0.0.7-src-1
Unpacking source archive - Done
Correcting source permissions - Done
Checking for patches - None found
Found configure script - Configuring sources using:
CFLAGS=-O2 -march=i486 -mtune=i686 ./configure --prefix=/usr
Configuration has been - Successful!
Compiling sources - Using: 'make'
Compiling has been - Successful!
Tracking Installation - Using: 'make install'
/usr/libexec/src2pkg/FUNCTIONS: line 1463: /usr/libexec/src2pkg/static/cat: No such file or directory
FATAL! Running 'make install' with installwatch produced no files list.
This may be the result of an empty or faulty install rule. Exiting...
/usr/libexec/src2pkg/FUNCTIONS: line 1470: /usr/libexec/src2pkg/static/rm: No such file or directory
/usr/libexec/src2pkg/FUNCTIONS: line 1471: /usr/libexec/src2pkg/static/rm: No such file or directory
src2pkg FAILURE in make_install NO FILES
I think i'm gonna give this tutorial a try:

http://www.talug.org/howto/Steps_to_...k_package.html

Seems basic and efficient.

EDIT: worked nicely... i'll definately be using this.

Last edited by AriciU; 07-07-2007 at 04:08 PM.
 
Old 07-07-2007, 04:15 PM   #6
tramni1980
Member
 
Registered: Jul 2006
Location: Köln, Germany
Distribution: Slackware64-14.2 & -current, DragonFly BSD, OpenBSD
Posts: 819

Rep: Reputation: 55
maybe the package is installed via a command, different from "make install". The installation command is supplied to src2pkg or trackinstall via -i="installation-command". See the INSTALL file of the package and the src2pkg documentation. I usually unpack and configure the package manually, then I compile it and just after that login as root and run trackinstall.
 
  


Reply



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
How do I remove/uninstall compiled sofware? brynjarh Linux - Software 7 05-29-2009 02:18 AM
Uninstall of compiled software Michael_aust Linux - Newbie 3 05-17-2006 08:47 AM
How to uninstall kaffeine which has been compiled NoodleDoodleMan Linux - Software 13 05-01-2006 09:16 AM
uninstall apache 1.3 that was compiled from source? rgiggs Slackware 5 11-15-2004 03:48 AM
How to uninstall programs from compiled from tarball? timberwolf Linux - Software 4 12-10-2003 03:05 AM

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

All times are GMT -5. The time now is 08:21 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