Re: Any way to hide skipping warnings?
Reply #4 –
This is not especially advisable for regular use, although if you were using it for "safe" pacman query type operations it would probably be OK:
$ sudo pacman -S packagename --noconfirm |& grep -v "ignoring package upgrade"
It kind of works without the noconfirm, but BASH writes the stdin prompt to stderr and it gets lost so you have to know what to enter from previous experience! Also redirecting stderr to /dev/null seems to get rid of the warnings, it probably gets rid of others too. The other problem is grep re-writes the filtered output so you lose the color shell escapes from the pacman original. Not sure why the stdin prompt (y/n) etc. isn't shown with grep, perhaps the pipe isn't flushed or the stdin write isn't redirected or something. Try searching about on Stack Overflow for inspiration I guess!