I have many packages that are marked as autoremovable. I want to mark them as manually-installed, so that they are no longer autoremovable.
I can do it one package at-a-time using
sudo apt-mark manual <package name>
But how can I do it for all of the packages in one go, without typing all of the package names.
An answer to this question describes how to mark all automatically-installed packages as manually-installed, but I want to mark only the autoremovable packages.