Oh, absolutely. I'm not saying it's always a good idea, just that it can be done. I personally don't use pinning whatsoever.fehlix wrote: ↑Fri Jun 08, 2018 11:42 amPinning or "hold a package" is certainly not recommended
for mail-clients or web-browsers as one would not get any security fixes.
Pinning shall be regarded as a temp solution to keep a non-security crititcal
application runninng until a better working upgraded package is provided.
Looks like you could, if you ever really need to, pin a package to "-1" priority to block it's installation. For example,
Code: Select all
root@mx17:/home/rich/Documents# cat /etc/apt/preferences Package: feh Pin: release * Pin-Priority: -1 root@mx17:/home/rich/Documents# sudo apt install feh Reading package lists... Done Building dependency tree Reading state information... Done Package feh is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'feh' has no installation candidate