Block a package upgrade, blacklist a package

Post your tutorials and howtos here.
User avatar
ilu
Posts: 2072
Joined: 09 Oct 2013 12:45

Block a package upgrade, blacklist a package

Postby ilu » 15 Apr 2018 20:41

When we still had our own updater blacklisting a package was easy using the GUI. But now with packagekit we have to use the terminal. Arjen integrated that function into the Solydxk-System package, so you can just use that. But if you want to be cool you use the terminal. :mrgreen:
Basically there are two ways:
1.
Stop update using dpkg directly or via apt-mark

Code: Select all

sudo echo "packagename hold" | dpkg --set-selections
sudo apt-mark hold packagename
Reenable update using dpkg

Code: Select all

sudo echo "packagename install" | dpkg --set-selections
sudo apt-mark unhold packagename
List package status:

Code: Select all

dpkg --get-selections | grep "packagename"
dpkg --get-selections | grep "hold"
2. Blacklist by apt pinning with a priority of 1 as described by here: https://forums.solydxk.com/viewtopic.php?f=9&t=7195.

3. There's also a way to blacklist by entering the packagename into Never-MarkAuto-Sections in /etc/apt/apt.conf.d/01autoremove. Since I don't understand this mechanism I haven't tried it.

User avatar
Arjen Balfoort
Site Admin
Posts: 8884
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Block a package upgrade, blacklist a package

Postby Arjen Balfoort » 16 Apr 2018 04:24

...and there is the SolydXK System GUI... :D


SolydXK needs you!
Development | Testing | Translations

User avatar
ilu
Posts: 2072
Joined: 09 Oct 2013 12:45

Re: Block a package upgrade, blacklist a package

Postby ilu » 16 Apr 2018 15:19

Oops. Good to know. But terminal commands are waaaayy cooler :mrgreen:


Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 1 guest