Grimoire-Command.es

GNU+Linux command memo

Auto apt remove

Automatiser la désinstallation d’un paquet Debian

apt remove -y $package (1)
yes | apt remove $package  (2) (3)
echo 'y' | apt remove $package (3)
apt remove $package <<< 'y' (3)
1 Best way to do it.
2 man yes you already have this in your system.
3 In each case, a letter 'y' is passed to the standard input of the apt remove command.