debian list packages automatic install 1

debian list packages automatic install

apt-mark showmanual
apt-mark showauto

Here is what the above code is Doing:
1. apt-mark showmanual shows all the packages that are manually installed.
2. apt-mark showauto shows all the packages that are automatically installed.
3. The output of the above two commands is piped to grep -v, which filters out the packages that are manually installed.
4. The output of grep -v is piped to xargs apt-get -y purge, which removes all the packages that are automatically installed.

Similar Posts