Prevent a package from being automatically installed, upgraded or removed using apt-mark command in Debian, UbuntuĪpt-mark is used to show, set and unset various settings for a package, such as marking a package as being automatically/manually installed or changing dpkg selections such as hold, install, deinstall and purge which are respected e.g. We can prevent/hold/ignore/exclude packages from apt upgrade either from command line or using graphical package management utility called Synaptic package manager.įirst, let us see the command line methods! 1. Hold Or Prevent A Package From Upgrade In Debian, Ubuntu So whatever the reason is, if you ever wanted to prevent a package from changes in Debian or Ubuntu systems, this tutorial will help. You may not want to update a package that consumes more than 500 MB. Even though the developers tests the packages thoroughly before pushing them into the repositories, sometimes they might unknowingly push unstable packages which will break your system. The package you are about to update might be problematic.A particular version is required by another application in order to function properly. A current version of a package is just working fine, so you may think it is unnecessary to upgrade it.
0 Comments
Leave a Reply. |