So I already know how to upgrade system packages from terminal with apt-get or synaptic or aptitude but what about upgrading the OS from an older version to a newer release version but from the terminal screen?

I know it can be done through the graphical user interface with Update Manager tool, but I'm interested in how OS upgrades can be performed from terminal.

  • @StephenKitt Linux Mint – C3nk7 Jul 13 '15 at 16:39
  • why the down vote? give the reason. – C3nk7 Jul 13 '15 at 16:40
  • 1
    Maybe, because you could have googled it. – Jodka Lemon Jul 13 '15 at 16:51
  • 2
    "linux mint upgrade apt-get" gives me three howtos in the first four links and one discussion about "dist-upgrade vs. upgrade". If this doesn't answer your question, I misunderstood your question. I mean that. Maybe there is a misunderstanding regarding your topic. Happens sometimes. That's why editing is so important. – Jodka Lemon Jul 13 '15 at 17:12
  • 1
    "what about upgrading the OS from an older version to a newer release version but from the terminal screen?" any system with APT, can be upgraded just by tweaking the sources.list file and doing dist-upgrade. What is your issue? Why you think apt-get isn't able to do the task you mean to do? Do you know that the update manager use APT in the backend? – Braiam Jul 13 '15 at 17:15

You can adapt the entries in /etc/apt/sources.list, e.g. from

deb http://extra.linuxmint.com qiana main


deb http://extra.linuxmint.com rafaela main

Then apt-get update / apt-get dist-upgrade will do the job.

| improve this answer | |
  • This is not relevant to what I'm talking about. – C3nk7 Jul 13 '15 at 16:39
  • @C3nk7 I am pretty sure, that's exactly the answer to your question. – Jodka Lemon Jul 13 '15 at 16:49
  • @klimpergeist Don't forget apt-get dist-upgrade. – Jodka Lemon Jul 13 '15 at 16:49
  • @Jodka For Debian yes, but the URLs aren't appropriate for Mint. – Stephen Kitt Jul 13 '15 at 16:52
  • 2
    Details that can end up messing up your system (at least according to the wiki)... – Stephen Kitt Jul 13 '15 at 17:03

After editing the sources.list and doing an apt-get update as mentioned in @klimpergeist's answer, it is a better practice to do a

apt-get dist-upgrade --download-only

and then,

apt-get dist-upgrade

| improve this answer | |
  • Why is this better than apt-get upgrade; apt-get dist-upgrade? – Jodka Lemon Jul 13 '15 at 19:30
  • Good to know. Is the reason that interrupted downloads might break the upgrade process? I would have hoped that apt-get is smart enough to circumvent such problems. – klimpergeist Jul 13 '15 at 19:31
  • In case of an error in network connection, when using apt-get dist-upgrade, the system upgrade will be hindered. Using apt-get dist-upgrade --download-only all the packages are downloaded first, thus the system upgrade can be done later much more smoothly even in the absence of a network connection. @klimpergeist I don't know if apt-get could circumvent such problems, but this is more of a personal preference. – Amit Raj Jul 13 '15 at 20:13
  • apt-get downloads everything before it starts installing anything so I'm not sure this helps... – Stephen Kitt Jul 13 '15 at 21:31

Not the answer you're looking for? Browse other questions tagged or ask your own question.