Questions about pacman -Syyyyyyyyyyyy. After two y does the next y do anything?
I see all sorts of different things after looking at different forums and guides for arch. Some say -Syu some say -Syuu some say -Syyuu or -Syyu.
Here is what I know. -Sy refreshes, -Syy forces a refresh. Now heres where im lost some guide had -Syyyuu. Okay the -h says uu downgrades but what does yyy do?
so well I tried to see if it would create an error or something. Nope it ran just fine. So logically I kept adding 'y's and it still didnt crash. There doesnt seem to be a limit to the amount of u or y I can put on a command. Am i actually doing anything?
Does -Syyyyyyyyyyyyyyyyyyyyyuuuuuuuuuuuuuuuuuuuuuuuu do anything other than force 1 refresh then upgrade? Am i forcing a refreshing of my search N-2 times? I tried it and I only had the same download size with about the same download speed.
Does uuu download a version that doesnt exist?
About this post
- Posted
- Archived
- Score
- 188 · 93% up
- Kind
- Text
- ID
- lfcocs
69 comments
Yyyyyyyyyyyyy not?
yyyyyyyyyyyyy so serious?
They don't do anything.
Syu is the one that should be used 99% of the time, syyu is to force a refresh of the mirrors and you might use it if you changed the mirrorlist but it still shouldn't be needed, the double uu is actually for something different, is to downgrade a package if needed:
I've seen the triple y in a few guides but the third y doesn't do anything.
^This.
Syyu is for douchebags who are needlessly using bandwidth of their mirrors, i.e. the people paying for the server that provides that user with a free service.
I'm going to duck in advance...
I think this is overblown. Sure
-Syyis usually not needed, but it's a very small inefficiency. The transfer is small, but even more, the repos are constantly updating (and the bigger repos are updating more frequently than the smaller ones), so very often-Syis going to be a full download anyway. If mirror sync bandwidth was a huge deal, we'd need to gate how frequently batches of new packages are exposed.So without knowing how frequently someone might change their mirrors (e.g., using the reflector), recommending
-Syyisn't so bad because then you don't need to have a separate conversation about the edge cases.Deleted before we saved it.
Deleted before we saved it.
Deleted before we saved it.
Yeah it just checks if there's a double one then it doesn't do anything else.
I actually think the triple y comes from the misunderstanding of someone that thought it was a y for each repository(core,community and extra).
It's a pretty unixy old convention for other commands, accepting a series of repeated flags for some increasing effect. Probably familiar to most would be
-vflags for some common commands, the single-vequating to--verbose, each repetition of the flag enabling increasing levels of output verbosity, or incrementing the level of error reporting.pacman's many options can be daunting, and several other option flags can be repeated in this same way, for some additive effect that accrues with each repetition. I always appreciate this style as an intuitive mnemonic device, as it seems to help me remember and categorize some of the more complex operations.Nice explanation.
Kept things to the point and simple.
Love it.
https://git.archlinux.org/pacman.git/tree/src/pacman/pacman.c#n830
Every time you specify
y, it increments by one.https://git.archlinux.org/pacman.git/tree/src/pacman/util.c#n151
It checks to see if the level is two or higher, and if so, forces the refresh. Anything above 2 is treated the same.
Specifying
-y65537 times will be treated the same as once:Literally unusable.
I assume you'll be filing a bug report then?
That ternary frustrates me. Why not just
int force = level >= 2;It means that you should stay away from that guide because chances are the author doesn't know what they are talking about.
Deleted before we saved it.
You typed "reddit", when you should have typed
man pacman.It does work in the sense that it probably will upgrade packages. The second y causes a forceful refresh of the package list, the third y does nothing and the second u allows downgrades.
pacman -Syyyyyyyyyyyy will reinstall grub
That's for sd-boot. Grub is pacman -Syyyyyyyyyyy
ahh.. sorry ! you're right !! :D
pacman -Syyy redownloads the mirror list and merges it with the one from a nearby parallel universe, more y means it merges packages from further timelines. This isn't recommended, though, because the more differentiated the universes get, the likelier that a package will use an architecture that was never created in this universe, like Gx128 or ARM4, or rely on standards that were created differently.
More u means it downloads packages from (further into) the future, though this isn't recommended as some packages depend on other packages that don't exist yet. Dependency handling on future packages is not yet implemented, but it is planned for an upcoming build.
(anything more than -yyuu is ignored, if you want a real answer)
You're basically forcing servers to refresh your pacman cache for no reason.
that advice is for people who set up cron jobs to update every 15 minutes, not someone playing around trying to understand pacman. exploration is how you learn and a server does not care that someone tried to update four times in a row instead of one if this is an abnormal thing
While I understand what you mean, the exploration didn't need hundreds of y's in my opinion. Also it's definitely not uncommon for flags to be ignored after n times, the same happens here.
I've only ever needed to use -Syyu once, right after an install, where some packages were more up to date on my machine than on the new mirror I was using, so switching mirrors required this for a fast fix. Otherwise it's almost always unnecessary.
Deleted before we saved it.
More than 2 y are just ignored I guess, as it doesn't make sense to make multiple refreshes in the same go. You really shouldn't do it as it adds strain to the servers for no reason.
Yyyyyuulittle
I guess someone should write a blog post titled “Arch Beginner Guides suggesting
pacman -Syyconsidered harmful”. No offense to OP, but this bad habit just keeps coming up even though official Arch resources are quite clear on the matter...Did your terminal fall off a cliff? I kind of read that as the Goofy Scream for some reason ;)
whyyyyy yyyyyyou little
Use just Syu :)
Deleted before we saved it.
Using 69 ys and us gives you the version of the package from 420 days in the future
Deleted before we saved it.
69? Nice.
I am a bot lol.
Speaking of refreshing. Is there a public syncthing-compatibile (or syncthing-like) means of syncing your db and maybe even fetching packages?
You can run in a .timer, but, depending on the granularity of your timer you're most likely going to do -Sy anyway when you upgrade. So overall you may be generating more load on mirrors than necessary. If you have a private internal mirror for a bunch of systems it makes more sense.
That said, I use the kernel.org mirror and have never really agreed with the sentiment here that -Syy is particularly rude, must be a rounding error compared to the rest of the load on the mirrors.
Eu recomendo ler a documentação do pacman
The more `y`s you add, the more up-to-date you are. /s
It makes you look cool in front of Ubuntu people. That's the power of pacman
so "syyu"ing once a day is fine right?
Not sure my sarcasm detectors are working, but do you trust you hard drive to not randomly flip bits or magically mess with your package database? Then you won't need -Syyu :P
And in that case you have bigger issues anyway.
I guess you can use yy if you suspect something went wrong with the previous package db refresh.
quality shitpost