[pacman-dev] [PATCH] Support reading package args from stdin

Xavier chantry.xavier at gmail.com
Fri Nov 5 10:11:01 CET 2010


Dave Reisner wrote:
> Only occurs if no arguments were provided directly. Arguments can be
> separated by any amount of valid whitespace. This allows for piping into
> pacman from other programs or from itself, e.g.:
> 
>   pacman -Qdtq | pacman -Rs
> 
> This is better than using xargs, as xargs will not reconnect stdin to
> the terminal. The above operation performed using xargs would require
> the --noconfirm flag to be passed to pacman.
> 

No objection for this, but with two more characters, you can already
pacman -Rs $(pacman -Qtdq)


More information about the pacman-dev mailing list