#Mint upgrade via CLI

5 messages · Page 1 of 1 (latest)

rare temple
#

Not sure if this was already asked and/or answered, but I couldn't find it - are there any instructions for Mint upgrade (e.g. 21.2 -> 21.3) via CLI, like there are for GUI (e.g. https://blog.linuxmint.com/?p=4629) ?

jade topaz
#

You can use the following instructions even tho it's not recommended, it should work.

  1. In your sources list, replace the Victoria source (21.2) by the Virginia source (21.3). For that, use copy/paste to transfer this line into the terminal (it's one line):
sudo sed -i 's/victoria/virginia/g' /etc/apt/sources.list.d/official-package-repositories.list
  1. Then you update the packages list, like this:
sudo apt update
  1. Then you perform the actual upgrade, in this way:
sudo apt dist-upgrade

This may take a while.

  1. When it's done: reboot your computer. You're done!

Source: https://easylinuxtipsproject.blogspot.com/p/upgrade-mint.html#ID2

rare temple
#

Is there any specific reason why CLI upgrade is not recommended with Mint? Via CLI I have more control and visibility on app conf changes. Instructions for upgrade say to replace configuration files if asked, but that's not always the good solution, and during some previous GUI upgrades I ended up not even knowing that some of my services (like inadyn) stopped working properly. 😅

daring haven
#

probably because many people blindly copy and past terminal commands.

steep sonnet
#

I think Mint is intended to offer a good GUI experience. Through GUI, Mint team can ensure that the upgrade scripts runs as their prospect. So that users can avoid the errors they have tested.