You are not logged in.

#1 2020-04-17 18:40:16

anewbie
Member
Registered: 2020-04-17
Posts: 2

Pacman syntax with three y's

I have seen several websites that recommend using paceman -Syyy. However, I can't find any documentation that mentions what three y's does. Can someone let me know?

Offline

#2 2020-04-17 18:44:44

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Pacman syntax with three y's

Then those websites are wrong, that isn't a valid command.

Running pacman -Syy is valid but not recommended as it will lead to a partial upgrade and a broken system.

Read..

man pacman

No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2020-04-17 18:45:31

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,806
Website

Re: Pacman syntax with three y's

Don't read garbage read "man pacman"

Edit: sniped...

Last edited by ugjka (2020-04-17 18:46:01)


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#4 2020-04-17 18:49:22

anewbie
Member
Registered: 2020-04-17
Posts: 2

Re: Pacman syntax with three y's

Thank you. Would it be fair to say that -Syu is what I should use to upgrade before installing something new?

Offline

#5 2020-04-17 18:49:28

DeletedUser210826
Banned
Registered: 2020-02-01
Posts: 70

Re: Pacman syntax with three y's

From pacman's man page:

-y, --refresh
           Download a fresh copy of the master package database from the server(s) defined in pacman.conf(5). This should typically be used each time you use --sysupgrade or -u. Passing two --refresh or -y flags will force a
           refresh of all package databases, even if they appear to be up-to-date.

So it's either one or two. You should not trust third party websites, always check Arch Wiki and man pages.

EDIT: To your question, yes.

Last edited by DeletedUser210826 (2020-04-17 18:50:15)

Offline

#6 2020-04-17 18:51:40

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Pacman syntax with three y's

To build on the above, even one 'y' without a 'u' would be valid but dangerous.  Never do `pacman -Syy` or `pacman -Sy`.  They are, in fact, equally dangerous.  Only do either of those with a 'u' also: `pacman -Syyu` or `pacman -Syu`.  As long as you include the 'u', there is no risk of a partial upgrade, no matter how many 'y's you add.

The difference between one 'y' and two in a safe command like `pacman -Syu` vs `pacman -Syyu` is that the latter is a useless waste of your time and of community resources as you use server bandwidth.  There are very rare exceptions of when a second 'y' should be used in updates, but unless you know exactly what you are doing and why, then you are not in one of these rare exceptions.  The differnece between two y's and three, is that you have no reason to use two, and the third is ignored, so you also have no reason to use three.

Last edited by Trilby (2020-04-17 18:52:51)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2020-04-17 18:53:38

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,806
Website

Re: Pacman syntax with three y's

I  say you should do pacman -Syyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuuuuuuu because Allan allowed it to be a valid command

/me waits for this to pop up on blogposts all over the web


https://ugjka.net
paru > yay | webcord > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#8 2020-04-17 18:56:37

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Pacman syntax with three y's

$ pacman -Syyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuuuuuuu
error: you cannot perform this operation because you're an idiot.

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2020-04-17 20:07:14

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,978
Website

Re: Pacman syntax with three y's

Trilby wrote:
$ pacman -Syyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuuuuuuu
error: you cannot perform this operation because you're an idiot.

I know that was meant, as a joke, but:

Last login: Thu Apr 16 14:28:35 2020 from 172.23.56.21
0 ✓ rne@homesrv ~ $ sudo pacman -Syyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuuuuuuu
[sudo] Passwort für rne:
:: Synchronisiere Paketdatenbanken...
 core                  135,1 KiB  2,20 MiB/s 00:00 [###################] 100% extra                1647,1 KiB  5,81 MiB/s 00:00 [###################] 100% community               4,9 MiB  5,78 MiB/s 00:01 [###################] 100% rne                    10,8 KiB  0,00   B/s 00:00 [###################] 100% rne.sig               119,0   B  0,00   B/s 00:00 [###################] 100%:: Starte vollständige Systemaktualisierung...
Löse Abhängigkeiten auf...
Suche nach in Konflikt stehenden Paketen...

Warnung: Zu wenig Spalten für Tabellenanzeige vorhanden
Pakete (4) libtirpc-1.2.6-1  nginx-mainline-1.17.10-1
           python-dulwich-0.19.16-1  python-urllib3-1.25.9-1

Gesamtgröße des Downloads:           1,49 MiB
Gesamtgröße der installierten Pakete:  6,48 MiB
Größendifferenz der Aktualisierung:  0,06 MiB

:: Installation fortsetzen? [J/n]
:: Empfange Pakete...
 libtirpc-1.2.6-1...   177,2 KiB  5,77 MiB/s 00:00 [###################]  11% python-urllib3-1...   346,4 KiB  4,39 MiB/s 00:00 [###################]  22% nginx-mainline-1...   899,8 KiB  4,62 MiB/s 00:00 [###################]  59% python-dulwich-0...  1524,4 KiB  4,70 MiB/s 00:00 [###################] 100%(4/4) Prüfe Schlüssel im Schlüsselring             [###################] 100%(4/4) Überprüfe Paket-Integrität                   [###################] 100%(4/4) Lade Paket-Dateien                           [###################] 100%(4/4) Prüfe auf Dateikonflikte                     [###################] 100%(4/4) Überprüfe verfügbaren Festplattenspeicher    [###################] 100%:: Verarbeite Paketänderungen...
(1/4) Aktualisiere libtirpc                        [###################] 100%(2/4) Aktualisiere nginx-mainline                  [###################] 100%(3/4) Aktualisiere python-urllib3                  [###################] 100%(4/4) Aktualisiere python-dulwich                  [###################] 100%:: Starte post-transaction hooks...
(1/2) Reloading system manager configuration...
(2/2) Arming ConditionNeedsUpdate...
0 ✓ rne@homesrv ~ $

Also: https://wiki.archlinux.org/index.php/Co … ther_users


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#10 2020-04-17 20:08:34

loqs
Member
Registered: 2014-03-06
Posts: 17,327

Re: Pacman syntax with three y's

Sadly some users really do pass random argument strings to pacman https://bbs.archlinux.org/viewtopic.php?id=253072

Offline

#11 2020-04-17 20:28:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Pacman syntax with three y's

schard wrote:

I know that was meant, as a joke, but ...

Apparently you didn't if you felt the need to put a long code block in another language showing that a command that would obviously work, worked.  And I'm not sure why you linked to a random part of the COC.  Here's another part that actually is relevant, but still rather pointless:
https://wiki.archlinux.org/index.php/Co … s_and_code


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#12 2020-04-18 02:30:29

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 1,978
Website

Re: Pacman syntax with three y's

The code was intended to show that pacman's output is not what you suggested it to be, the other language is called German and you were clearly intending to insult ugjka. That's why I posted the link.
That being said, putting more than two y or more than two u into a pacman command has the same effect as two of them. Therefore Pacman -Syyyu is a valid command albeit useless wear and tear of the keyboard.


macro_rules! yolo { { $($tokens:tt)* } => { unsafe { $($tokens)* } }; }

Offline

#13 2020-04-18 02:41:34

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,092
Website

Re: Pacman syntax with three y's

Well,

This has been fun. Since the question has been asked and answered, I'll be closing this topic now.

Have a good day folks, and let's all reread the CoC just for fun. smile

All the best,

-HG

Offline

Board footer

Powered by FluxBB