“make uninstall … No rule to make target ‘uninstall’ “

27Apr06

One of the annoyances i 've encounter during my linux experiance with a couple of distros, is when i want to install a program from sources. To be more specific the problem is when i want to Uninstall such a program and the author hasn't provided a make "uninstall" rule.

So googling aroung for a solution i 've found latelly some workarounds which might proved interesting.

  • one quick & dirty sollution is to remove all the files by hand; Usually the files are installed into ' /usr/local ' & not into ' /usr ', so it's easy to just find them and remove them yourself. Anyway thats what i used to do up to now!
  • another, more elaborated, solution is to use a program called CheckInstall which wil supposedly create .tgz, .deb, or .rpm file from a source install so you can manage it with your system's package manager. I haven't yet test it thoroughly, but this sounds quite interesting.
  • last but not least is to run 'make -n install' (or 'make -n install > install.txt') before the actuall installation. This way u can actually examine what files r going to be installed and remove them by hand in the future.

Anyway thats it for now … to be continued …

Advertisements


4 Responses to ““make uninstall … No rule to make target ‘uninstall’ “”

  1. 1 Jamol

    Another way is to install the package under fakeroot, get the list of files and delete those files from the real root.

  2. I agree – not providing a target for “make uninstall” should be a capital crime. I’ve recently had to uninstall emacs-w3m by hand, grrrrrrrrrrrr!!

  3. another trick if you already install the package is to re-install. install it again but this time use “make -n install > install.txt” so the files will go into a list and than you’ll be able to remove them manually.

  4. Great post. I was checking constantly this blog and I’m impressed! Very useful info specially the last part šŸ™‚ I care for such info a lot. I was looking for this particular information for a long time. Thank you and best of luck.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: