-   Slackware (
-   -   Uninstall Stuff (

jroggow 01-19-2013 10:01 AM

Uninstall Stuff
I installed some software from source, specifically sip-4.14.2. It broke a some of my desktop plasmoids and made me very sad.

Now I need to remove it, but I'm not sure how since I didn't make it into a tgz first.

*Note to self: Learn to make Slackware packages before next install.

Anywho, as I was saying, I've never managed to break anything important on Slackware before now so how do I hunt down and rid myself of all the sip stuff?

I'm running Slackware 14.0 on a crappy netbook.**

** I'm also accepting donations for a spiffy new desktop. And beer. But mostly a spiffy new desktop.

pchristy 01-19-2013 11:14 AM

If you are lucky - and still have the source package from which you made it - "make uninstall" should remove it. If not, you'll have to look closely in the makefile and try and figure out where it put everything. If you are *really* unlucky, it will have overwritten some of Slackware's files, which will need replacing too!

A good way to learn Slackware packaging is to take the slackbuild file from an existing slack source package, and tweak it to suit your new source tarball. That's what I do! ;)

jroggow 01-19-2013 11:36 AM

I ain't lucky. I tried make uninstall first thing.

I rarely have to install extra software so I've never bothered learning the package tool beyond install and remove.

brianL 01-19-2013 12:12 PM

Is there a reason you wanted sip-4.14.2? Because sip-4.13.2 is already included in a Slackware full install.

Diantre 01-19-2013 12:12 PM

Most makefiles accept a DESTDIR parameter to install the software to a specific directory. It might be possible to install the software to a temporary directory to have a complete list of the files installed, for example:


# make install DESTDIR=/tmp/badprogram
This should create the program directories and files (usr/bin, usr/share, etc) under /tmp/badprogram. Once this is done, it's just a matter of looking in the filesystem for the files installed in DESTDIR.

Another suggestion is to always install to /usr/local when installing from source, it's easier to remove stuff from there. Usually the --prefix parameter to configure changes the install location, for instance


# configure --prefix=/usr/local


wigry 01-19-2013 12:38 PM

Diantre makes a good point indeed. In order to know what files to remove, you need to make another installation into a different directory and then make manual comparison and remove the right files.

Well but what if you would make that installation into a default location, overwriting the files you already have? You could do make uninstall right afterwards and it would delete the files it just installed freeing your system from that sip.

Third option is to do nothing as those files laying around in your file system would not put any load on your system sos your Slack installation would not be any slower than if those files are removed. But if you really want to get rid of those files then yes make another manual installation from the source and follow up with make uninstall.

ruario 01-19-2013 01:32 PM

I did a quick test for you on the only Slackware install I have to hand right now, a fairly minimal (no X or anything like that) Slackware 13.37 installation. I took sip-4.14.2.tar.gz and compiled from source and installed with all defaults (python; make; make install). It placed down the following files:



Since you have Slackware 14 (with python-2.7.3) you might want to look for the same files but in /usr/lib/python2.7/site-packages/ (or lib64 for 64-Bit) and /usr/include/python2.7. Before you delete them however, check their timestamps and use this information along with a find command to locate other files that could have been created/installed around the same time (you might need to do some reading of 'man find'). Things might be different when installing on a more complete Slackware install, particularly when it is a different version of Slackware.

To save yourself a problem next time, also read 'man slacktrack'. This tools comes with a standard Slackware install and should help you track source installed software.

ruario 01-19-2013 01:40 PM

To everyone suggesting 'make uninstall' I would just like to point out that sip provides no uninstall target.


root@ruario:/home/ruario/test2/sip-4.14.2# make uninstall
make: *** No rule to make target `uninstall'.  Stop.

This is why you are always best either making a real package or at least doing your own tracking (so you can create a log of what was installed).

ruario 01-19-2013 02:03 PM


Originally Posted by brianL (Post 4873590)
sip-4.13.2 is already included in a Slackware full install.

Ahh, good point!!

Having looked at slackware-14.0/slackware/MANIFEST.bz2 and slackware64-14.0/slackware64/MANIFEST.bz2 for what is included in the official l/sip-4.13.2 packages, along with what slackware-14.0/source/l/sip/sip.SlackBuild does, I think it is fairly unlikely that any extra files were installed.

Issuing the following two commands as root should get you back to the original state.

Kill all the sip files currently installed:

rm -v /usr/bin/sip /usr/lib*/python2.7/site-packages/ /usr/lib*/python2.7/site-packages/ /usr/lib*/python2.7/site-packages/ /usr/include/python2.7/sip.h
Reinstall the official sip package:

slackpkg reinstall sip
And in the future, if you ever want to install an updated version of a package that is already included in Slackware, just use the SlackBuild script and then upgradepkg. ;)

jroggow 01-19-2013 03:28 PM

Thanks, it's more better now. I have not heard of slacktrack, but it sounds terribly useful. I will look into it unless something shiny distracts me.

ruario 01-19-2013 03:30 PM

Good to hear! Remember to mark the thread as solved. ;)

EDIT: D'oh! You already did.

volkerdi 01-19-2013 04:24 PM


Originally Posted by jroggow (Post 4873515)
I installed some software from source, specifically sip-4.14.2. It broke a some of my desktop plasmoids and made me very sad.

Now I need to remove it, but I'm not sure how since I didn't make it into a tgz first.

*Note to self: Learn to make Slackware packages before next install.

This thread might be solved, but here's another thought. It's never too late to make a package. In cases like this, you could make the packages even after a "make install" has gone to the system. Install them and remove them -- voila, stuff removed from the system.

MadMaverick9 01-19-2013 10:33 PM

And maybe another afterthought - never build from source as root.

I never do ... I always use fakeroot when building things, so that the Slackbuild script and "/sbin/makepkg" get all the permissions and ownership right.

It does mean that Makefiles need to process "DESTDIR=" correctly. "gtk3" is a prime example where "DESTDIR=" does not work.

cfdisk 01-20-2013 07:42 AM


What's a buzz about using a fakeroot in your particular case? Just to avoid possible privilege escalation?

Can't we chown a directory where a new package sits after it was built by a root to a non-root user?

Thanks in advance.

ruario 01-20-2013 04:00 PM

@cfdisk: But most SlackBuilds don't work like that, they don't ask you to become root just before the chown step, rather they expect you to run the entire thing as root.

When making, tweaking or debugging your own SlackBuild scripts if you don't fully trust DESTDIR is being accepted during the 'make install' step or equivalent, you could end up with files actually installed rather than ending up in your staging (packaging) directory. Running the SlackBuild under fakeroot ensures that permissions/ownership are correct in your packages but prevents the possibility of files accidentally being 'installed' into the system rather than ending up in the package.

Yes, there are several other ways around this but fakeroot is a handy convenience, so personally I always have it installed on my machines.

All times are GMT -5. The time now is 11:47 AM.