Uninstalling packages (.tar.gz)


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Uninstalling packages (.tar.gz)
# 1  
Old 07-11-2005
Uninstalling packages (.tar.gz)

Hi,

I still don't know if there's a standard way to do this. I'm hoping there's a *more or less* standard way to do this across linux platforms but the platform in question is Gentoo.

Let's say I download a source tarball as tar.gz and I do the typical
Code:
gunzip app_to_install.tar.gz
tar xvf app_to_install.tar
cd app_to_install/
./configure --options-here
make
make install

I now have files in lots of parts of the OS. How can I uninstall the application again? I've never seen it mentioned in any README or INSTALL files. I only have remote access to this particular server so no GUI methods please.

I know I could just hunt around a delete all the directories it's made but I'd be guarunteed to miss things and maybe cause system inconsistencies. Is there a roughly standard way to do it?

Cheers,

d11

NOTE: I say this is Gentoo but `emerge -C package' wont work I dont think when it's not installed using `emerge'.
# 2  
Old 07-11-2005
Most Makefiles contain the target `uninstall` that lets you uninstall a package. However, once you have trashed the build directories, the local configurations made inside will naturally be lost and thus the uninstall will not work. So, if you have a potential need for uninstall, use a package management system or you may need to save the build directory for use later.

Your mileage may vary.
# 3  
Old 07-11-2005
Computer

OK so to save space does this make any sense?

Take for example the PHP5 insatllation:

Code:
gunzip php5.x.x-versionstuff.tar.gz
tar xvf php5.x.x-versionstuff.tar
cd php5.x.x-versionstuff
./configure --with-mysql=/usr/local/mysql --disable-libxml2
make
make install

Okie doke! PHP5 is installed and from what I gather from your note, w/out a package manager `make uninstall' would remove it?

The directory 'php5.x.x-versionstuff' checks out to be about 80MB (it was about 11MB when i downloaded it! lol). Anyway, will tar.bz2'ing it and storing it for later use affect anything. I dont see how although I tried tar.bz2'ing one so I could recompile with new options and when doing make after reconfiguring it gave errors about truncated files --> Might be sheer coincidence that I'd bzipped it though.

Thanks for the tip about `make uninstall' Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Help Uninstalling Packages that were Installed Today

Hello All, SuSE 11 SP3 (*3.0.101-0.47.71-default, x86_64) I was attempting to install a MySQL update on a web server we use for internal stuff within the network. Since the OS didn't come with an update in the pre-installed repos, I went to MySQL's site and found a Repo for my OS version at... (0 Replies)
Discussion started by: mrm5102
0 Replies

2. UNIX for Dummies Questions & Answers

problem with packages that have .tar.gz in the extention

Hi Everybody , I want to install some packages on sun Solaris , I download the packages it was for example openssl.tar.gz it is not data stream or sun packages , so I search and I found command called make solve this problem , but the packages of this command not found on my machine, so I... (7 Replies)
Discussion started by: hard_revenge
7 Replies

3. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

4. Slackware

Find Slackware Packages - packages.acl.org.ua

Hi! Let me introduce a project for find and download Slackware packages and browse Slackware repositories. The site provides following features: * Large, daily updated database with RPM, DEB, TGZ, TXZ packages for well-known repositories of the Slackware, Fedora, CentOS, RHEL, Debian,... (2 Replies)
Discussion started by: lystor
2 Replies

5. Shell Programming and Scripting

Program to tar files to packages less then 200000 bytes

Trying to write program to archive files from a file system. I got some problem with appropriate selection of files in regard to size. Algorithm basic : ----------------- 1. Remotely executes on machine ls cmd and its output redirects and sorts by size of a files : # cd... (0 Replies)
Discussion started by: presul
0 Replies

6. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

7. Solaris

Uninstalling Vendor Software

Hi admins, thanks for community i have installed a software ( it's a specific soft from a specific vendor : i mean it is not a SUN product ). the install was trough a .tar.gz file and with an "install" executable ( so the command was simply #./install ) my pain now is how to uninstall it... (10 Replies)
Discussion started by: hmaiida
10 Replies

8. UNIX for Dummies Questions & Answers

Uninstalling Mysql 5.0.15 tar file

Hi Everyone, I want to uninstall mysql-standard-5.0.15-linux-i686.tar. The problem is i don't no how to uninstall tar file. I know how to uninstall it through rpm but we have a binary file. can we use make uninstall or remove comand to do so? Or there is some other way of unistalling tar files.... (1 Reply)
Discussion started by: atul.saxena
1 Replies

9. Debian

Uninstalling programs?

How can I uninstall a program the most efficient way? So that I get rid of all the man pages etc. too? I'm running debian. /Richard (1 Reply)
Discussion started by: riwa
1 Replies

10. UNIX for Dummies Questions & Answers

Help Uninstalling Linux!

Hello, I have a laptop running Fedora Core 2, and I am trying to wipe it to put on Windows. Even though the CD is listed first in the boot order, it will not boot to the Solaris system disk. How else could I format this laptop? -skeet (4 Replies)
Discussion started by: skeet23
4 Replies
Login or Register to Ask a Question