Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] pacman -Syyu or pacman -Syyuu ? (Read 7226 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] pacman -Syyu or pacman -Syyuu ?

Hello,
I usually update my system using the command :
Code: [Select]
sudo pacman -Syyu
Is it better to systematically use :
Code: [Select]
pacman -Syyuu
I couldn't find any info on this...

Re: pacman -Syyu or pacman -Syyuu ?

Reply #1
Quote
man pacman

(...)

 -u, --sysupgrade

           Pass this option twice to enable package downgrades; in this case,
           pacman will select sync packages whose versions do not match with
           the local versions. This can be useful when the user switches from
           a testing repository to a stable one.

So as long as you don't use a testing repository or AUR packages, you don't need the double u.

Re: pacman -Syyu or pacman -Syyuu ?

Reply #2
I couldn't find any info on this...
The best answer to your question can be found here .
"Wer alles kann, macht nichts richtig"

Artix USE="runit openrc slim openbox lxde gtk2 qt4 qt5 qt6 conky
-gtk3 -gtk4 -adwaita{cursors,themes,icons} -gnome3 -kde -plasma -wayland "

Re: pacman -Syyu or pacman -Syyuu ?

Reply #3
So as long as you don't use a testing repository or AUR packages, you don't need the double u.
Oops, I hadn't seen that note from  man pacman...   :o
Thank you !

I don't use "testing" packages, but I need some AUR packages like:
kim4, key-mon, gmsh-bin, gimp-plugin-bimp, deadbeef-git

So, if I understood correctly, I should use:
sudo pacman -Syyuu

Re: pacman -Syyu or pacman -Syyuu ?

Reply #4
Code: [Select]
pacman -Syu
is the "everyday update" command. It downloads a fresh copy of master database and upgrades packages that are out-of-date.

Sometimes, you need -yy if your pacman database is corrupt but otherwise "fresh" (up-to-date) with the server.

You will need -uu if some packages need to be downgraded. This can happen in already mentioned situations above, but also it is sometimes needed due to package versioning mistake. Maintainers are only humans, and it happens.

Aside from pacman manpage, this is the definitive source on pacman: https://wiki.archlinux.org/title/Pacman

Re: pacman -Syyu or pacman -Syyuu ?

Reply #5
Another less frequently mentioned thing from that page:
"Restart or reboot after upgrades
Upgrades are typically not applied to existing processes. You must restart processes to fully apply the upgrade."

It's better to upgrade before you are about to shutdown rather than when you start up, because if some app and it's dependencies are updated, and it's already running, the running version will still be the old one and if it tries to access it's deps when you use it further it can cause problems or crashes. (At one time I often updated after startup so can confirm it does cause problems occasionally  ;D )

uu might break things in some circumstances and yy is a waste of time, electricity and bandwidth downloading things you already have, they are only needed very rarely if there has been an error.

Re: pacman -Syyu or pacman -Syyuu ?

Reply #6
Thank you all for these detailed explanations and wise advice.

For the past three years I've been updating using sudo pacman -Syyu and everything has always worked fine.

The pacman -Syu command would have probably warned me of a possible corrupted database, which I should have repaired anyway with the -Syyu option.

Re: pacman -Syyu or pacman -Syyuu ?

Reply #7
Using "pacman -Syyu" is frowned upon unless you actually have a corrupt repo database on your computer. There are 2 negative side effects to always using it. First of all it forces the redownload of repos that have not changed. This means that even though the repo on the server and the repo on your computer are the same, it has to redownload it. This makes updating slower since it forces pacman to redownload the same good files that are already on your computer. The other negative effects the Artix project and all of our users. Because you are forcing the redownload of all files constantly, you put more strain and load on the mirrors. This makes the mirrors slower for everyone including yourself.

Just use "pacman -Syu" for normal update purposes.
Use "pacman -Syyu" when you have a corrupted database on your system.
Use "pacman -Syuu" when you need to downgrade a package to an older version by force.
Chris Cromer

Re: pacman -Syyu or pacman -Syyuu ?

Reply #8
Just use "pacman -Syu" for normal update purposes.
Use "pacman -Syyu" when you have a corrupted database on your system.
Use "pacman -Syuu" when you need to downgrade a package to an older version by force.
Thanks very much !
I have taken note of all the advice and suggestions, as well as the relevant summary from you. 8)


Re: [SOLVED] pacman -Syyu or pacman -Syyuu ?

Reply #9
I don't use "testing" packages, but I need some AUR packages like:
kim4, key-mon, gmsh-bin, gimp-plugin-bimp, deadbeef-git

Hello, I'm a new Artix user and don't know about Arch as well. How do I install deadbeef player? I'm using it on Debian and Void Linux.
Thanks in advance!

 

Re: [SOLVED] pacman -Syyu or pacman -Syyuu ?

Reply #10
Hello, I'm a new Artix user and don't know about Arch as well. How do I install deadbeef player? I'm using it on Debian and Void Linux.
Thanks in advance!
Hello and welcome,

Rather than replying to an old resolved topic, you could have started a new thread. ;)

My two favorite readers are audacious and deadbeef.
Currently I'm using audacious, because deadbeef bugged in the playlist.

You can download deadbeef here:
https://sourceforge.net/projects/deadbeef/files/travis/linux/1.9.2/deadbeef-static-1.9.2-1-x86_64.pkg.tar.xz/download

And then :
Code: [Select]
sudo pacman -U /path/to/deadbeef-static-1.9.2-1-x86_64.pkg.tar.xz

Audacious is in the arch repositories:
https://wiki.artixlinux.org/Main/Repositories