How to uninstall a tar.bz2 package?

Asked

Viewed 156 times

5

I recently installed the ghdl in my Debian x64, but I installed the wrong version, so I uninstalled the ghdl and installed the version for x64 bits; but the old ghdl (version 0.29) continues on the system, I was then with 2 compilers vhdl. When I do the apt-get remove, it just removes the version I needed to use.

Procedure I used to install the package

By downloading the binaries and unpacking them manually:

 $ wget http://ghdl.free.fr/site/uploads/Main/ghdl-i686-linux-latest.tar

 $ sudo tar xvf ghdl-i686-linux-latest.tar

(This generates the file ghdl-0.29-i686-pc-linux.tar.bz2)

 $ cd ghdl-0.29-i686-pc-linux

 $ sudo tar -C / -jxvf ghdl-0.29-i686-pc-linux.tar.bz2

(This copy the files to /usr/local/bin and /usr/local/lib)

Anyway, the Destination directory should be already included in PATH.

Source: UMHDL Manual

I followed this instruction to install the wrong package, now I don’t know how to uninstall, how to proceed?

1 answer

3

As stated in the instructions, the files were copied to the directories /usr/local/bin and /usr/local/lib. Just for the record, distributions like Debian have a differentiation by default: manually installed packages go to /usr/local, as native distribution packages (installed with apt-get, for example) go to /usr. You said that apt-get remove removes its desired version, so it is assumed that it has been installed with apt-get install.

If you really want to remove unwanted ones then, by the structure of your package, these commands should resolve:

cd /usr/local/bin
sudo rm -f ghdl
cd /usr/local/lib/gcc/i686-pc-linux-gnu/4.3.4
sudo rm -rf vhdl

Browser other questions tagged

You are not signed in. Login or sign up in order to post.