After install of manjaro sway, what is proper way to update packages?

When I used -Syu to do the initial upgrade, it all went fine. But on subsequent upgrades after using -Syu, I get warnings that rofi-wayland and some other package (I forgot) are later than the manjaro version being used.

On the other hand, if I use -Syuu to do the initial upgrade, as the man page says, the double u option downgrades those packages so they sync with the base packages.

But then on the next upgrade I get a warning that certain packages are not required anymore. A message tells you they can be removed with ‘pacman -Qtdq | sudo pacman -Rns -’. I did that and then subsequent updates have no warnings.

My question is: is there a best way to do the upgrade? Should I use -Syu and live with the warnings about a package version mismatch or use -Syuu and downgrade and remove what’s no longer needed?

Thanks for any help.

Hello and welcome to the Manjaro Community!

I tend to just use -Syu (sometimes followed with packages I want to add).

I’d only use the downgrade option if there are issues with the package(s) since they will “fall in line” during subsequent syncs anyway, hopefully. If in doubt, though, there might be something in the relevant update thread. :wink:

Thanks for the welcome.

Okay, so I guess I’ll just use -Syu if the packages are just temporarily mismatched and will re-align subsequently.

Thanks a lot. That’s a big help.

1 Like

I just checked and it appears I’ve never used the second u on this system … installed almost 7 years ago now! :wink:

Unfortunately on first install I hadn’t asked this question and just went ahead and did -Syuu. Is that going to matter moving forward? Now when I run -Syu I get “nothing to do.” But I guess the manjaro sway team somehow wanted to have the newer versions of some packages as part of their latest .iso. Do I need to be concerned that I downgraded and no longer have those development versions in my system? Or does it just not matter?

I doubt it matters, to be honest. “Nothing to do” is a time-saver, in my book!

Being a curated rolling-release whatever you installed from the .ISO is going to be replaced in due course, anyway. :wink:

Great. Thanks again for your help!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.

A pacman upgrade may have removed the manjaro-sway repo. You could try the sudo manjaro-sway-mirrors command to re-enable.