List apt autoremove packages
Posted on March 2, 2022
To list the packages which will be removed with apt autoremove, run the following command:
apt-get --dry-run autoremove | grep -Po '^Remv \K[^ ]+'
To list the packages which will be removed with apt autoremove, run the following command:
apt-get --dry-run autoremove | grep -Po '^Remv \K[^ ]+'