Make pinned packages in Synaptic have a systemwide pin
Posted: Mon Mar 22, 2021 9:37 am
When you pin a package in Synaptic, it isn't automatically pinned systemwide, although it won't be updated by MX Updater.
To prevent such packages from being updated when using for example "sudo apt upgrade" in the command line, you can use
This creates a symlink in the 'general' apt preferences file to the preferences file that's used by Synaptic.
But this is separate from using 'apt-mark', so you won't find a list of pinned packages using 'apt-mark showhold'. You can find such list, obviously by looking in Synaptic, but also using
and at the end there will be a list of pinned packages.
To remove this symlink:
(originally posted at viewtopic.php?p=628377#p628377)
To prevent such packages from being updated when using for example "sudo apt upgrade" in the command line, you can use
Code: Select all
sudo ln -s /var/lib/synaptic/preferences /etc/apt/preferences.d/synaptic_preferences
But this is separate from using 'apt-mark', so you won't find a list of pinned packages using 'apt-mark showhold'. You can find such list, obviously by looking in Synaptic, but also using
Code: Select all
apt policy
To remove this symlink:
Code: Select all
sudo rm /etc/apt/preferences.d/synaptic_preferences