PINE64
How to update the OS - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Manjaro on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=130)
+---- Thread: How to update the OS (/showthread.php?tid=12342)



How to update the OS - markc - 11-28-2020

This is embarrasing but I briefly saw the option to update the OS when I first turned on my Manjaro phone but now I can't find how to update the OS and google is not my friend today. Is there a video somewhere that CLEARLY shows how to update the OS?

Also, FWIW, it took me 1/2 an hour of wasted time on youtube just to find out that the initial lockscreen passcode is 123456.


RE: How to update the OS - hiimtye - 11-29-2020

sudo pacman -Syu

will update all of the system packages


RE: How to update the OS - Veraendert - 11-29-2020

Why use Youtube? Passwords are our Wiki: https://wiki.pine64.org/wiki/PinePhone_Software_Releases


RE: How to update the OS - deedend - 11-29-2020

(11-29-2020, 12:33 AM)hiimtye Wrote: sudo pacman -Syu

will update all of the system packages

Sorry but, is this the same as reflashing to a new version? Apologies if my question is silly


RE: How to update the OS - rocket2nfinity - 11-29-2020

(11-29-2020, 05:41 PM)deedend Wrote:
(11-29-2020, 12:33 AM)hiimtye Wrote: sudo pacman -Syu

will update all of the system packages

Sorry but, is this the same as reflashing to a new version? Apologies if my question is silly
sudo pacman -Syu is the same as apt upgrade
sudo pacman -Syyu is the same as apt dist-upgrade

Neither will erase what you have on the phone. So, no, not the same as flashing a new OS, just upgrading the one you've got.


RE: How to update the OS - deedend - 11-29-2020

(11-29-2020, 06:11 PM)rocket2nfinity Wrote:
(11-29-2020, 05:41 PM)deedend Wrote:
(11-29-2020, 12:33 AM)hiimtye Wrote: sudo pacman -Syu

will update all of the system packages

Sorry but, is this the same as reflashing to a new version? Apologies if my question is silly
sudo pacman -Syu is the same as apt upgrade
sudo pacman -Syyu is the same as apt dist-upgrade

Neither will erase what you have on the phone. So, no, not the same as flashing a new OS, just upgrading the one you've got.

OK thanks, that's explain a lot for an unexperienced debian old fart like me, but what I mean is, is the result in terms of features the same as reflashing the whole thing? Or is it always advisable to perform a full flash to have the very last version?


RE: How to update the OS - hiimtye - 11-29-2020

-Syyu forces a refresh of all sources. it's not the same as dist-upgrade. it's what you do when your local database can't be read due to corruption. it shouldn't be abused, to save hosting resources.

Manjaro/Arch is a rolling release, all packages are always at their latest, there is no multi-release cycle, just a series of packages being updated as they become stable enough to coexist with all other packages at their defaults


RE: How to update the OS - rocket2nfinity - 11-29-2020

Which is what you would want to do if your local files are corrupted and -Syu doesn't work.. Hence my dist-upgrade comment. I assumed this is what he wanted. No, not an exact equivalent as arch is a rolling release.

To answer his question, usually doing an upgrade, or if that hangs, a dist-upgrade will solve a lot of your problems and is sufficient. As an intermediary, you can manually remove or re-install a bad program as long as your system isn't too borked. But, for some changes, or after a lot of hacky experimentation, it is best just to reflash. As long as you are just updating your OS from the repos, upgrading is fine. If something breaks big time, or something major such as the boot gets changed, as with Megi's 5.9 kernel, then it's best just to reflash if you are not a linux expert.

And yes, all features will be the latest with any upgrade, with the exception of things that need boot/firmware changes. Those require reflashing or firmware patching.


RE: How to update the OS - ryo - 11-29-2020

(11-29-2020, 06:27 PM)deedend Wrote: OK thanks, that's explain a lot for an unexperienced debian old fart like me, but what I mean is, is the result in terms of features the same as reflashing the whole thing? Or is it always advisable to perform a full flash to have the very last version?
That is the beauty of rolling release distributions, you don't need to re-install the OS ever again after installing once (unless of course you fatally bricked the OS, or get yourself a new computer/phone).

I understand the worries if you're coming from Ubuntu or Mint, every OS version upgrade resulted in a broken OS.
Manjaro and Arch don't have this problem.

(11-29-2020, 07:04 PM)hiimtye Wrote: -Syyu forces a refresh of all sources. it's not the same as dist-upgrade. it's what you do when your local database can't be read due to corruption. it shouldn't be abused, to save hosting resources.

Manjaro/Arch is a rolling release, all packages are always at their latest, there is no multi-release cycle, just a series of packages being updated as they become stable enough to coexist with all other packages at their defaults
I always use -Syyu simply to make very sure that nothing goes wrong, and I'm simply used to it.

There is a little difference between Manjaro and Arch however.
Arch deploys the latest versions of packages as soon as they're available, while Manjaro usually waits a few days to make sure the latest version doesn't break the system.
Like a few years ago a library broke WiFi functionaity in Arch, but those of us using Manjaro didn't have that problem, because the library got patched by the time it reached the Manjaro repositories.
Manjaro updates do break the system occasionally too however, so I'm not saying that Manjaro's testing phase is perfect.