There are some similar questions, but here is precisely what I would like to achieve and the dots which I am having trouble connecting:
- Query a list of "Manually Installed" packages (
apt-mark showmanual
works) - Check each package for installed dependents
- Mark each such package as "Automatically Installed" (
apt-mark auto <pkg ...>
works)
So I think my command will look something like:
apt-mark showmanual | <esoteric apt/bash magic> | apt-mark auto -
Would that be correct?
Related Questions