Blocking Package Upgrade on Debian/Ubuntu
To block packages from upgrading, you can use command apt-mark hold.
1 |
apt-mark hold PKG_NAME |
Example
1 |
apt-mark hold libtomcat8-java tomcat8 tomcat8-admin tomcat8-common |
To list packages that are on hold, run
1 2 3 4 5 6 |
root@ip-172-26-8-193:~# apt-mark showhold libtomcat8-java tomcat8 tomcat8-admin tomcat8-common root@ip-172-26-8-193:~# |
If you want to remove block, you can use apt-mark unhold command.
1 |
apt-mark unhold libtomcat8-java tomcat8 tomcat8-admin tomcat8-common |
See apt