pkg.installed should mark already installed packages as manually installed #65528
Labels
Duplicate
Duplicate of another issue or PR - will be closed
Feature
new functionality including changes to functionality and code refactors, etc.
needs-triage
Is your feature request related to a problem? Please describe.
Say state1 install pkg1 which depend on pkg2. Both packages are going to be installed.
Now if state2 ask for pkg2 installation and the state is fired after state1, nothing is going to be done; pkg2 is already installed and it is not going to be "marked" as "manually installed".
On Debian system if pkg1 is installed and followed by apt install pkg2, the package pkg2 is going to be "marked" as manually installed.
pkg2 is going to be "autoremoved" if pkg1 is removed.
Describe the solution you'd like
pkg.installed should provide a "platform-specific argument" to allow user to choose to "apt-mark manual" the package.
Describe alternatives you've considered
Something like :
The text was updated successfully, but these errors were encountered: