How's my update command look?

Currently I’m using
yay --combinedupgrade --sudoloop --noconfirm && flatpak update --assumeyes

to update my system. It’s great because I enter my password once and it runs and does all the things.

I’m just wondering if there are any issues that I’m missing updating things this way. Wanted to get feedback and see if there are any other flags I should be accounting for, etc.

I honestly don’t know what issues you might encounter as I update things in arch repos and aur seperatly but I would just watch the output in the terminal and see if anything occurs there. With a command like this I would also probably make in an alias like update-all or something like.

I’d be extremely cautious with --noconfirm. It skips all interactive prompts, which means:

  • You don’t get a chance to review dependency changes before installation

  • You skip inspection of PKGBUILDs and diffs for AUR packages

  • You may miss situations where manual intervention is recommended (e.g., major upgrades)

It’s fine for automation in controlled setups, but for regular use it reduces visibility and can make troubleshooting harder if something goes wrong.

If you want to know HOW bad this could be just use the search term “update” within this forum. You will find quirte a lot of topics with warnings and/or hints were manual intervention is required.
bottom line: don’t use noconfirm unless you like a bricked system…

Since it can be done in paru i’m assuming one can also just create a config file for yay.

Never recommended to use for Updating.

The only legit use of this that I can think of is when pacstrap calls pacman to install packages in the root of a new system. Something like:

pacman --root "$new_root" --noconfirm -S base base-devel linux linux-firmware

That happens automatically anyways.

Yer only time I use this is when I know 100% what is happening before I confrim

Yes, yay does have a config file, where you can enter all standard configuration you want.
yay -Pg gives you the current config. If you haven’t saved a config before it will be the default config of yay.
e.g. yay --sudoloop --save is saving this option permanently in your config file.
yay --help gives you all possible options.

in my opinion this is the best way to update. it NEVER failed me so far. either press that button or type the command (…pressing the button is faster for me bc i am so slow at writing :rofl: though i could also just autocomplete it, but… habit, since it always pops up i can just hit it if i feel like it)