When there is not unneeded dependencies to remove, we will encounter:
$ aptpac autoremove
error: argument '-' specified with empty stdin
It looks weird and abrupt.
I modified it so that it can detect if there is a need to run pacman -R:
Test
If there is something to remove, it works as it did in the past:
$ aptpac autoremove
checking dependencies...
Packages (2) qoauth-2.0.0-3 qt5-xmlpatterns-5.15.6+kde+r0-1
Total Removed Size: 6.77 MiB
:: Do you want to remove these packages? [Y/n]
When there is not unneeded dependencies to remove, we will encounter:
It looks weird and abrupt.
I modified it so that it can detect if there is a need to run
pacman -R
:Test
If there is something to remove, it works as it did in the past:
After the command above, run it again:
There will be a friendly prompt.