How can I stop Apt from marking packages as manual when you run the "apt install " command?
For example, Accidentally, when I run apt install <package-which-is-already-there>
(of a package which is already there), it marks the package as manually installed
.
Which I hate a lot. How can I stop apt from doing this? It even messes up things sometimes.
You cannot stop apt from marking a package that you specified as
manual
. You specified it -- that's the definition of 'manual'.However, when you do that, it's trivial to change apt-marking back from
manual
toauto
:Aside from the remedy provided by @user535733, you can always check before installing what the apt will do by simulating the install using the
-s
flag:If the package is already installed you will get a line like this:
From the man page
man apt-get
: