Services and User Management

A Debian server runs a web application that is certified only against the installed nginx version. The administrator must keep running apt upgrade for other packages but stop nginx from being upgraded. Which command accomplishes this?

Show the answer

Correct answerA. apt-mark hold nginx

apt-mark hold flags the package so apt will not upgrade, install or remove it until the hold is cleared. apt-mark manual only records that the package was installed explicitly, which protects it from autoremove but not from upgrades.