How can i make a completelly uninstall for an application that has been installed by using .tar sources ?
On Mon, 30 Sep 2002, Aramico wrote:
Date: Mon, 30 Sep 2002 16:40:39 +0700 From: Aramico <aramico@duahati.com> Reply-To: wlug@mail.wlug.org To: wlug@mail.wlug.org Subject: [Wlug] Completelly Uninstall for .tar version!
How can i make a completelly uninstall for an application that has been installed by using .tar sources ?
Well, the simple answer is, rebuild the application from the tar (unless you still have the build are populated), and see if "make uninstall" would work. Many (most?) make files provide for removing the installation. For some installations, it gets more complicated, because you may have other installations that depend on this one. If that is the case, then you will make those utilities useless. The right (and sometimes painful) answer is to use rpm's for your installs. I've recently been teaching myself to make my own rpm's. It's not real easy, because the documentation is lacking, but you should be able to do most basic things ok. And, the rpm's figure out your dependencies on the fly, and will make later installation of that utility in other places a real snap. Bill
On Mon, Sep 30, 2002 at 07:48:06AM -0400, Bill Mills-Curran wrote:
The right (and sometimes painful) answer is to use rpm's for your installs. I've recently been teaching myself to make my own rpm's. It's not real easy, because the documentation is lacking, but you should be able to do most basic things ok. And, the rpm's figure out your dependencies on the fly, and will make later installation of that utility in other places a real snap.
A hearty amen to that. I was too lazy to make a .deb for my customized mutt install, and I've wanted to install it on 2 other systems since. And my dependencies are weird and I have to --force sometimes when I know I have something. And if someone knows the name of that program that makes separate trees for your tarballs and soft links 'em into your main tree, that could be the most useful thing for the original poster. But alas, I've forgotten, my mind weakened by the simplicity of Debian. -Chuck
On Mon, Sep 30, 2002 at 09:22:35AM -0400, Chuck Homic wrote: chuck> And if someone knows the name of that program that makes separate trees chuck> for your tarballs and soft links 'em into your main tree, that could be chuck> the most useful thing for the original poster. GNU Stow? -- Charles R. Anderson <cra@wpi.edu> / http://angus.ind.wpi.edu/~cra/ PGP Key ID: 49BB5886 Fingerprint: EBA3 A106 7C93 FA07 8E15 3AC2 C367 A0F9 49BB 5886
Aramico> How can i make a completelly uninstall for an application Aramico> that has been installed by using .tar sources ? Use the program 'checkinstall'. It will replace the final 'make install' step for you and build a package that can then be installed/removed with the normal package installation tools. This should be in all distributions from now on, what a great thing to have around! John
this depends on the distribution you're using ;) i'm assuming you're currently using RedHat which means you're gonna have to do some work to track down which files it installed. you *might* be lucky and the makefile that came with the .tar will have an 'uninstall' target ... run this cmd in the directory where you extracted the sources: `make uninstall` if it complains about no target (in other words nothing seems to happen), then look to see if the source has a configure script. if it does, run it with the preix option set to a directory that is currently empty ... `./configure --prefix=/tmp/my_stupid_install` and then run make like that ... hopefully make will respect the prefix completely and install under that directory, at which point you can analyze the resulting directory tree to see where the last install put files. -mike On Mon, 30 Sep 2002, Aramico wrote:
How can i make a completelly uninstall for an application that has been installed by using .tar sources ?
participants (6)
-
Aramico
-
Bill Mills-Curran
-
Charles R. Anderson
-
Chuck Homic
-
Michael Patrick Frysinger
-
stoffel@lucent.com