How to completely uninstall openssl installed via sources in Ubuntu?
I installed the latest openssl with the following instructions:
wget http://www.openssl.org/source/openssl-1.0.2a.tar.gz
tar -xvzf openssl-1.0.2a.tar.gz
cd openssl-1.0.2a
./config --prefix=/usr/
make
sudo make install
But now I need to completely remove it from the system. I have tried the following command
sudo apt-get autoremove && sudo apt-get autoclean
But unfortunately it is still on the system:
$ openssl version
OpenSSL 1.0.2a 19 Mar 2015
How can I uninstall openssl altogether?
source to share
You installed it manually, so apt-get won't help too much here because you haven't installed OpenSSL as a package.
However, what you can do is run make -n install
to see the steps the install script installed to install OpenSSL. You can also use whereis openssl
to view the location of the binary and then use sudo rm /path/to/openssl
to delete it.
Also, make sure you remove any other libraries / sources.
source to share