In Ubuntu, use the apt-get command to upgrade almost all software packages, but "keep" some software as the current version. You can use the dpkg command. For example, when I use the apt-get command to upgrade my Ubuntu or Debian operating system, the following results will be displayed: % sudoapt-getupgrade [...] aptapt-transport-httpsapt-utilsghostscriptghostscript
In Ubuntu, use the apt-get command to upgrade almost all software packages, but "keep" some software as the current version. You can use the dpkg command. For example, when I use the apt-get command to upgrade my Ubuntu or Debian operating system, the following results will be displayed:
% Sudo apt-get upgrade
[...]
Apt-transport-https apt-utils ghostscript-cups ghostscript-x google-chrome-beta hal indicator-applet
Nvidia-current-modaliases php-pear php5 php5-cli
If I do not want to upgrade the php5 package, I can "keep" the current version is not upgraded. [LINUX community www.LinuxIDC.com]
Switch to root user (su or sudo-s)
Run:
Echo php5 hold | sudo dpkg -- set-selections
Then, after executing the apt-get upgrade command, the package will be "retained ".
% Sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
Php5
If you want to upgrade the software package to be "retained" by you, execute
Echo php5 hold | sudo dpkg -- set-selections