Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__package_apt: Mark already installed packages as manual #781

Merged

Conversation

sideeffect42
Copy link
Contributor

This PR extends the __package_apt type to mark requested packages that were automatically installed e.g. as a dependency for some other package as manually installed.
This prevents these packages from being uninstalled by apt-get autoremove should e.g. the reverse dependency be removed or install recommends be disabled.

...if they were automatically installed as a dependency of another package.
This prevents these pacakges from being uninstalled by `apt-get autoremove`.
@asteven
Copy link

asteven commented Nov 14, 2021

Hi @sideeffect42,

Can you elaborate on what problem this solves for you?

At first sight, it seems like an anti-feature.
I usually want apt-get autoremove to do what it does.
Why is this patch needed?

Cheers

@asteven
Copy link

asteven commented Nov 14, 2021

Hi @sideeffect42,

Can you elaborate on what problem this solves for you?

At first sight, it seems like an anti-feature. I usually want apt-get autoremove to do what it does. Why is this patch needed?

Cheers

Never mind. Read through the code again after coffee and it off course makes sense.

+1

@4nd3r 4nd3r merged commit d361665 into ungleich:master Nov 14, 2021
4nd3r pushed a commit that referenced this pull request Nov 14, 2021
...if they were automatically installed as a dependency of another package.
This prevents these pacakges from being uninstalled by `apt-get autoremove`.

See: #781
@4nd3r
Copy link
Contributor

4nd3r commented Nov 14, 2021

Thanks, merged.

sideeffect42 added a commit to skonfig/base that referenced this pull request Nov 21, 2021
...if they were automatically installed as a dependency of another package.
This prevents these pacakges from being uninstalled by `apt-get autoremove`.

See: ungleich/cdist#781
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants