APT means Advanced Packaging Tool is another package manager found on Linux based systems. Initially designed as a front-end for dpkg to work with .deb packages, apt has succeeded to show his visibility on Mac OS, Open Solaris etc.
In this article we will see various techniques to disable/lock package from install, upgrade and remove in Debian Linux and its derivatives such as Ubuntu and Linux Mint.
1. Disable/Lock Package Using ‘apt-mark’ with hold/unhold Option
The command apt-mark will mark or unmark a software package as being automatically installed and it is used with option hold or unhold.
- hold – this option used to mark a package as held back, which will block the package from being installed, upgraded or removed.
- unhold – this option used to remove a previously set hold on a package and allow to install, upgrade and remove package.
No comments:
Post a Comment