How to uninstall a tar.bz2 package?

5

Recently I installed ghdl on my Debian x64, but I installed the wrong version, so I uninstalled ghdl and installed the x64 bit version; but the old ghdl (version 0.29) remains in the system, so I got 2 compilers vhdl . When I do apt-get remove , it only 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
     

     

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

Source : UMHDL Manual

I followed this instruction to install the wrong package, now I do not know how to uninstall, how to proceed?

    
asked by anonymous 14.11.2016 / 12:27

1 answer

3

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

If you really want to remove the 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
    
14.11.2016 / 12:58