LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How do you uninstall compiled programs? (https://www.linuxquestions.org/questions/slackware-14/how-do-you-uninstall-compiled-programs-567451/)

AriciU 07-07-2007 03:36 PM

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.

tramni1980 07-07-2007 03:45 PM

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.

BCarey 07-07-2007 03:46 PM

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

AriciU 07-07-2007 03:50 PM

Didn't know this. Thanks. I'll give SLackbuilds and slk2pkg a look.

AriciU 07-07-2007 04:01 PM

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.

tramni1980 07-07-2007 04:15 PM

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.


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