I notice that whenever I use the command
sudo apt-get -y autoremove quite a number of packages that I need is on the list to be removed.
After going through some of the posts on this forum, I have the impression that the command removes packages that have been automatically installed. To prevent autoremoval of a package, I will have to mark it as
sudo apt-get install <package-name>
Suppose I have 120 packages earmarked for autoremoval.
How do I mark them as manually installed with a single command?