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

'pkg autoremove' sometimes removes the pkg package even when it isn't marked as automatic #2384

Open
yurivict opened this issue Dec 6, 2024 · 3 comments

Comments

@yurivict
Copy link
Member

yurivict commented Dec 6, 2024

This doesn't happen every time, but it does happen. This possibly depends on the set of packages that are removed.

pkg-1.21.3
FreeBSD 14.0 STABLE

@yurivict yurivict changed the title 'pkg autoremove' sometimes removes the pkg package even when it isn't markes as automatic 'pkg autoremove' sometimes removes the pkg package even when it isn't marked as automatic Dec 6, 2024
@bapt
Copy link
Member

bapt commented Jan 22, 2025

are you able to reproduce ? is there any trace or anything about it you can provide?

@yurivict
Copy link
Member Author

I will post an update if/once I will be able to reproduce this issue again.

@yurivict
Copy link
Member Author

yurivict commented Jan 24, 2025

Yes, I can reproduce with pkg-1.21.3

I think I know what exactly happens.

Initially pkg is set to auto=false. But later pkg upgrades itself and changes it to auto=true.

Then pkg autoremove removes it.

The core problem description is: pkg should preserve the auto flag on packages that it upgrades or re-installs in the process of updating other packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants