Prevent Package Update
Many times we have a specific server requirement, for example a Nextcloud application would require a specific php version. But when we perform apt update, the php may update to latest version, thus breaking the Nextcloud installtion. So to prevent update of specific packages we can use below commands.
Hold a package:
Example:
Remove the hold:
Show all packages on hold:
Last updated