Saturday, November 28, 2015

Update from Ubuntu stock OpenSSL 1.0.1f to 1.0.2d manually

After getting install ubuntu onto a newly formatted notebook, then found out that the stock OpenSSL version is out of date. After some unsuccessful attempt and finally fond a reference from website : http://askubuntu.com/questions/429385/upgrade-openssl-on-ubuntu-12-04 stated:


First you need to completely remove the old installation: (this will break most systems! Be careful! Most people will regret this) apt-get purge openssl


sudo apt-get purge openssl

You may want to clean house by running:
apt-get autoremove && apt-get autoclean
Then you should download and compile the version you want (full list)
wget https://www.openssl.org/source/openssl-1.0.2d.tar.gz
and it saved in ~/home directory.

get into the directory where gz file is then

Un-gz the file

$ gzip -d openssl-1.0.2d.tar.gz
To unpack a tar file, type

tar -xvf openssl-1.0.2d.tar

Then after unpack it, cd into the openssl-1.0.2d directory the
cd openssl-1.0.2d
./config --prefix=/usr/
make
sudo make install


The key is in this line. It remove the local installed list (sync) from auto update server of openssl. 

apt-get autoremove && apt-get autoclean
If it not this line, after install it would still show 1.0.1f version.



No comments:

Post a Comment