Tuesday, December 11, 2012

mark all upgrades in mint's synaptic

One thing about Linux Mint that used to annoy me was that their version of Synaptic was missing the "Mark All Upgrades" button, something that's always been present in every other distro's Synaptic. The button was supposedly removed to protect users from messing up their systems. Too much hand-holding, in my opinion.

One work-around was to simply do updates from the command line with apt-get. Another was the following approach:

- Click on “Reload” to get any available upgrades to show up.
- Click on the “Status” button down at the lower left.
- Select “Installed (Upgradable).”
- Click on one of the packages, do a ctrl+a to select all, then right-click on any of the selected packages.
- Click on “Mark for Upgrade.”  Then click on “Apply.”

That turned out to be easy enough to do, but the attitude of the Mint folks toward this and other issues played a big part in my deciding not to use the distro anymore (the main reason, however, was that after some years of running both distros side-by-side, I'd simply decided that I preferred to run only Ubuntu, which Mint's main version is based on).

Because of not using Mint anymore, I missed the solution posted by "Roken" at the Mint forums:


If you haven't already (or if you've rebooted) reinstall synaptic.

Now, before you reboot open a terminal and:

sudo gedit /etc/linuxmint/adjustments/10-mintsystem-synaptic.preserve


This will create a new text file. Add the following two lines to the file:

/usr/share/synaptic/glade/window_main.glade
/usr/share/synaptic/gtkbuilder/window_main.ui


Save. Now your "Mark All Upgrades" button should be back and surviving reboots. To revert to default mint behaviour:

sudo rm /etc/linuxmint/adjustments/10-mintsystem-synaptic.preserve


This is the correct way to disable the mintsystem change to synaptic (based on examination of the mintsystem script) and should survive updates in the future.


Here's the thread where this fix was posted: http://forums.linuxmint.com/viewtopic.php?f=200&t=70449&start=20

The fix was also posted in this thread.

Thank you, Roken. If/when I ever install Linux Mint again, I'll try that out.

No comments: