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

RPM reinstall leaves behind old /nix/store paths #19

Open
jalil-salame opened this issue Mar 25, 2024 · 0 comments
Open

RPM reinstall leaves behind old /nix/store paths #19

jalil-salame opened this issue Mar 25, 2024 · 0 comments

Comments

@jalil-salame
Copy link

When building a bundle (e.g. nix bundle --bundler github:NixOS/bundlers#toRPM nixpkgs-stable#hello), installing it and then reinstalling it with a new version (e.g. nix bundle --bundler github:NixOS/bundlers#toRPM nixpkgs-unstable#hello), the reinstall leaves behind old files (e.g. /nix/store/$HASH-zstd-$VERSION).

Note

I am reinstalling with sudo rpm -ivh --reinstall /path/to/prog.rpm.

Current workarounds

Before reinstalling an RPM built with nix bundle remove all files associated with it (sudo dnf remove $RPM_NAME), then install it.

Proposed solution

I have no idea how RPMs work, but I'd expect there to be a way to specify that when it reinstalls it should delete old files(?).

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

1 participant