apt-mark
Table of Contents
1. Mark package as automatically installed
- https://manpages.debian.org/stable/apt/apt-mark.8.html#AUTOMATICALLY_AND_MANUALLY_INSTALLED_PACKAGES
apt-mark auto linux-image-6.12.43+deb13-amd64
2. Prevent changes for a package
hold is used to mark a package as held back, which will prevent the package from being automatically installed, upgraded or removed.
apt-mark hold xfce4-weather-plugin