#956330 apt: Provide option to prompt on apt install foo whether foo should be marked manually installed

Package:
apt
Source:
apt
Description:
commandline package manager
Submitter:
annadane
Date:
2024-04-11 09:33:03 UTC
Severity:
wishlist
#956330#5
Date:
2020-04-10 00:23:41 UTC
From:
To:
Dear Maintainer,

I'm just wondering whether for Deb 11 we might provide an option for users to perhaps, be prompted when they apt install foo and foo is already installed, to *ask* whether they intend to mark it manually installed. I find most of the time when I do that, as opposed to apt-mark manual foo, it's because I've made a mistake and forgotten or not noticed I already had something installed, not because I want to set it to manual. apt-mark manual foo might work the same as it always does but as said it would be nice to prompt the user when they apt install a package like this

#956330#10
Date:
2020-04-10 08:30:34 UTC
From:
To:
Please note that I edited the email to split it into paragraphs and wrap them (insert
newlines) below 80 characters, so that it becomes readable and possible to respond to,
rather than one line of characters running off the screen.

For the situations where we print that message, only in apt(8)? I think that sounds
reasonable. Even more limited, I guess it makes sense to prompt only if there were no
other changes, that is, if all it does is mark stuff as installed.

Similar here. Often I need to tweak resolver choices, so I append more package names
to the install command to get the solution I want, and then it marks them as manually
installed which annoys the heck out of me.

Because "install foo..." essentially means "Ensure foo... are manually installed",
not "manually install them if they are not yet installed". As in, if you manually
told it to install a package name, you must care about it, so it should be marked
as such.. But ever since we could specify installed package names as hints,
this has been somewhat suboptimal.

Personally, I think it would make more sense to stop marking stuff as manually
installed, but I know others disagree, and certainly it can't be changed for
apt-get, so it'd one more diverging behavior.

#956330#15
Date:
2020-04-11 07:12:54 UTC
From:
To:
В Чт, 09/04/2020 в 20:23 -0400, annadane пишет:

Wouldn't you end up with that package being marked as manually
installed if it really wasn't installed and apt downloaded and
installed it as you expected it to? Either way you have the very same
state in the end. So you're basically saying "I wanted apt to install a
package and mark it as manually installed, but because it already was
installed I now don't want it to be marked as manually installed". :)

#956330#20
Date:
2024-04-10 22:05:02 UTC
From:
To: