Skip to content

Ability to surgically remove some packages from Nix global store #3834

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

Open
ezyang opened this issue Sep 12, 2016 · 2 comments
Open

Ability to surgically remove some packages from Nix global store #3834

ezyang opened this issue Sep 12, 2016 · 2 comments
Assignees
Labels
attention: pr-welcome cabal-install: nix-local-build old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 priority: low
Milestone

Comments

@ezyang
Copy link
Contributor

ezyang commented Sep 12, 2016

Right now, we don't have GC (#3333) so the only way to clean up the store is to just delete it wholesale.

Once, I tried deleting a specific package by unregistering it from the database. But I guess someone else was depending on it because cabal new-build choked to death and I couldn't recover without deleting the store.

So it would seem like it would be helpful and orthogonal to GC to allow users to delete specific packages from the store, recursively removing anything that depended on them. (Maybe not that useful? I don't know.)

@lspitzner
Copy link
Collaborator

It should be easy to add this functionality to pkgdbgc. I have put it on my to-do.

@ezyang shouldn't ghc-pkg have warned you when you unregistered the package?

@phadej
Copy link
Collaborator

phadej commented Aug 27, 2019

https://nixos.org/nixos/nix-pills/garbage-collector.html

is ingenious approach. Then

  • each dist-newstyle could contain indirect gc-roots
  • installdir could act as indirect gc-roots repository

Then GC roots can be discovered easily. And there would be general GC root mechanism to add more if needed.

@andreabedini andreabedini added the old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
attention: pr-welcome cabal-install: nix-local-build old-milestone: ⊥ Moved from https://github.com/haskell/cabal/milestone/5 priority: low
Projects
None yet
Development

No branches or pull requests

5 participants