In an alias like this, running pacman first has the advantage that the true Arch packages install completely before any AUR packages that require slow downloads, package compression, or long build steps.
Yes but who cares, it works and that is all that matter.
If you would see my dotfiles, you would see a lot of unnecessary shit, because I don’t write them to be perfect, I write something when I realize this would be nice in the moment, and I just do it as I know how to and just leave it, as long as it works.
It can be, but sometimes packages are removed from the official repos, but still available in AUR, only running yay -Syu will install the AUR versions of dependencies that are no longer needed, and can leave you with a bunch of unnecessary packages from AUR.
If you run pacman -Syu on its own the unnecessary dependencies will be removed and you won’t get the AUR versions, and then yay -Syu will only update things you actually want from AUR.
alias arch-update='sudo pacman -Syu && Yay -Syu && flatpak update && sudo freshclam'
Isn’t
pacman -Syu
redundant if you runyay -Syu
afterwards? Also, justyay
is the same asyay -Syu
In an alias like this, running pacman first has the advantage that the true Arch packages install completely before any AUR packages that require slow downloads, package compression, or long build steps.
I’m not sure about yay but paru installs them completely first too, before AUR stuff. It literally runs pacman -Syu
Yes but who cares, it works and that is all that matter.
If you would see my dotfiles, you would see a lot of unnecessary shit, because I don’t write them to be perfect, I write something when I realize this would be nice in the moment, and I just do it as I know how to and just leave it, as long as it works.
This has pretty much been my approach to everything I do lol.
Probably. I’ll give your way a try. I never really thought about it much after writing it. Thanks!
It can be, but sometimes packages are removed from the official repos, but still available in AUR, only running
yay -Syu
will install the AUR versions of dependencies that are no longer needed, and can leave you with a bunch of unnecessary packages from AUR.If you run
pacman -Syu
on its own the unnecessary dependencies will be removed and you won’t get the AUR versions, and thenyay -Syu
will only update things you actually want from AUR.