If you want to stop a package from beeing automatically updated each time you run the apt-get upgrade
or apt-get dist-upgrade
command, you have to put then on hold to the package management system.
This can be done by the following command :
echo "openssl hold" | sudo dpkg --set-selections
When you do dpkg --get-selections | grep openssl
, you will see the following :
openssl hold
And then, when you run sudo apt-get upgrade
, you will see an output like this one :
sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
openssl
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Attention :
Of course, you will then become the only one responsible to update the version of OpenSSL, you will have to watch the security bulletins, the patches published and so on
Important note :
The Linux distribution (Ubuntu and others) use their own way of versioning and patching cycles, this means that the version N of package XXXX present in the repositories, can already incorporate a security patch that was applied mainstream on the version N+1 but that was ported to version N by the distribution maintainers.