In general, there are no uninstall scripts provided with 'tarballs' but its usually quite simple to remove stuff. If its a binary (compiled) package, mostly you just uncompress the gzipped tarball into a directory such as /usr/local . For example :
# mv whatever.tar.gz /usr/local
# cd /usr/local
# tar zxvf whatever.tar.gz
That would create /usr/local/whatever and probably lots of subdirectories underneath.
To remove the above you would just do :
# cd /usr/local
# rm -rf whatever
That might leave some config files, etc around but nothing major normally.
Be very careful with the '-rf' option to 'rm' - If you do it as root from too high up the directory tree you'll delete absolutely everything. The '-r' means to recursively remove from the starting point, i.e. including all subdirectories, and the '-f' means force, i.e. don't prompt for confirmation !!
If its a source tarball where you've done something like :
# mv whatever.tar.gz /usr/src
# cd /usr/src
# tar zxvf whatever.tar.gz
# cd whatever
# ./configure
# make
# make install
.... then to see exactly what the 'make install' bit did you can look in the Makefile in /usr/src/whatever . Obviously to remove the source part you just do a recursive 'rm' as shown above.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.