How to correctly uninstall hg when installed with "make install"

Martin Geisler mg at daimi.au.dk
Wed Jan 21 10:14:55 UTC 2009


Marko Käning <mk362 at mch.osram.de> writes:

Hi

> how do I correctly uninstall hg which I installed previously using
> "make install"?
>
> I installed it on a debian system which had only version 0.7
> reachable via apt-get, so I had no choice than doing a make install
> (using the latest version)... But now all those mercurial files were
> installed god knows where in the system and I could not find any
> hint in its makefile how to get rid of them in case I want to make
> an update or install an older version again.

A make install calls

  $(PYTHON) setup.py install --prefix="$(PREFIX)" --force

where

  PREFIX=/usr/local

by default. You will find the installation paths here:

  http://docs.python.org/install/index.html#alternate-installation-unix-the-prefix-scheme

In your case I guess they would resolve to:

  Type of file    Installation Directory
  Python modules  /usr/local/lib/pythonX.Y/site-packages
  scripts 	  /usr/local/bin
  data 	          /usr/local/share
  manpages        /usr/local/share/man

Or you could run 'make install' again and take note of the paths.

In the future you will probably want to do a 'make local' instead and
just symlink the hg script to a directory in your path. Then there is
nothing to clean up later and it is very easy to update Mercurial.

-- 
Martin Geisler

VIFF (Virtual Ideal Functionality Framework) brings easy and efficient
SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/.




More information about the Mercurial mailing list