Re: Downgrading specific packages with apt
- Date: Sat, 10 Jun 2017 05:45:22 -0400
- From: Fungi4All <fungilife@xxxxxxxxxxxxxx>
- Subject: Re: Downgrading specific packages with apt
UTC Time: June 10, 2017 7:42 AMFrom: solitone@xxxxxxxxOn Friday, 9 June 2017 23:38:40 CEST Jimmy Johnson wrote:> I've never downgrade using apt, but with synaptic it's not too hard,Hi Jimmy, and thanks for your reply. I'm under Plasma Desktop, so I don't havesynaptic--I use KDE's Discover. Although I use it only for automatic updates.For installing/removing packages, as well as setting a package on hold, I useapt. I'd rather use apt for downgrading as well.
echo "<package-name> hold" | sudo dpkg --set-selections
echo "<package-name> install" | sudo dpkg --set-selections
dpkg --get-selections | grep "<package-name>"
sudo apt-mark hold <package-name>
sudo apt-mark unhold <package-name>
sudo aptitude hold <package-name>
sudo aptitude unhold <package-name>
thanks to askubuntu