LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to remove apps which installed from source (https://www.linuxquestions.org/questions/slackware-14/how-to-remove-apps-which-installed-from-source-617821/)

mocqueanh 01-31-2008 09:47 PM

How to remove apps which installed from source
 
I've installed Mplayer from source, and now want to remove it.
But i use pkgtool command or Kpackage, i dont see mplayer package to remove.


Please help me uninstall it

dive 01-31-2008 10:12 PM

If you installed it with 'make install' then do 'make uninstall' from same folder.

T3slider 01-31-2008 10:15 PM

That really depends on how you installed it. If you did a simple
Code:

$ ./configure
$ make
$ make install

it could be quite difficult to uninstall -- you would have to hope that the program includes an uninstall tool (`make uninstall` in the source directory might work, but only if the developers included an uninstall script in the makefile). You could also build the program again but using a SlackBuild or src2pkg or some such thing to create a package and remove all of the files on your system that it creates (you may also be able to try `removepkg newpackage.tgz` on the package -- but I'm not sure if that will work since it wasn't installed as a package in the first place. You may be able to install the package, which would overwrite any mplayer files installed previously, and then uninstall the program -- but this may be risky).

Basically, first try `make uninstall` in the source directory. (Note: all of my advice is assuming you used a typical `./configure && make && make install` build procedure -- I'm assuming this because you said there was no entry in pkgtools).

bgeddy 01-31-2008 10:34 PM

I've not tried this so can't vouch for its use - however I've looked at my copy of Mplayer's Makefile and it seems to have an uninstall option so....

As previously stated

Go to the directory where you built the source of Mplayer

run - su -c "make uninstall" and give the root password when prompted.

This should run 'make uninstall' as root.

You may have codecs lying around that you have installed and you'll have to deal with these seperately.

If you wish to make Mplayer from source I would recommend running a "Slackbuild" which will make a package for you. You can then install/uninstall with pkgtools (installpkg/removepkg).

There is a build on Slackbuilds.org :

http://slackbuilds.org/repository/12...media/MPlayer/

If youre unfamiliar with building a Slackbuild have a look on the site for instructions - its really quite simple and very convenient.

Running a basic "./configure,make,make install" can leave files all over the place - sometimes with no way of uninstalling them ! You are always better building a package using one of the tools or perhaps building a package yourself from scratch.

Good luck..

gnashley 02-01-2008 03:50 AM

In case you already removed the sources which you compiled and installed, you'll need to unpack the sources and run configure with the same options you used(especially the --prefix) and then you can run 'make uninstall' to remove the program and other files(you don't have to recompile before doing this.

T3slider 02-01-2008 04:38 PM

Good point, gnashley (I always leave the sources lying on my computer [even though I use SlackBuilds] and just assumed everyone else did too -- stupid assumption on my part).

hellasyoda 02-01-2008 06:39 PM

if u dont want the sources lying on your computer and your installed packages haven't make unistall use paco.

[HTML]Paco is a source code package organizer for Unix/Linux systems, originally written to aid package management when installing an LFS system.

When installing a package from sources, paco wraps the "make install" command (or whatever is needed to install the files into the system), and generates a log containing the list of anll installed files.

Like any other package manager, paco also provides several options to show package information in different formats. It can remove packages too, among some other basic operations[/HTML]


i find it usefull for such cases.a simple unistaller


All times are GMT -5. The time now is 10:54 AM.