Uninstall package
Can I uninstall package if it was installed not via the standard configure/make installation procedure:
$ ./configure $ make $ sudo make install but via running setup script in src directory? $ sudo python setup.py install |
Not via a simple command unless the Makefile contains an uninstall option. Likely "clean" is not exactly that either by the way.
I'd look at the Makefile and see what it does for the "make install" and then reverse that, starting with the last action and reversing. Likely there are directories that were established and populated, as well as executables placed somewhere, and maybe some symbolic links. It all depends what the source package install process did. |
Quote:
jdk |
Yes, kinda.
Reinstall with the --record option: python setup.py install --record installed.txt Then uninstall: cat files.txt | xargs rm -rf Read more here. Then, instead of installing tarballs on your Debian system, create a debian package first, then install. Makes it easier to uninstall later. To make a .deb of a python tarball. More about creating Debian packages. |
Makefile contains an unistall option, though.
|
It would be
Quote:
|
Quote:
|
Quote:
Quote:
|
If the author of the package chose to put an uninstall option into their Makefile, then this would be the first choice seeing as it's the intended method by the package creator.
|
Post #1 says : 'python setup.py install'
See post #4, @bigrigdriver : Quote:
|
Quote:
|
I use checkinstall when I compile my own software from source. It makes things much easier if I want to remove the program at some point. I just treat it as a package and get rid of it via the "sudo aptitude remove <name of program>" command. I am prompted to supply a package name by checkinstall during the installation process. It works a treat.
jdk |
All times are GMT -5. The time now is 06:19 AM. |