Rodrigo Morales <[email protected]> writes: > Marek Paśnikowski <[email protected]> writes: > >> Did you remove the package with =guix remove=? > > I never installed it using "guix package -i". I installed that package > using "guix home reconfigure", so if I try to use "guix remove", the > following error is reported:
Then the package is locked in the /gnu/store until you remove the package from your configuration, reconfigure it and follow up with =guix home delete-generations <pattern> ; guix gc -d <pattern>=. Here is how I deal with my configurations by usage of bash aliases: ~ $ alias alias collect-garbage='guix home delete-generations 7d ; sudo guix system delete-generations 7d ; sudo guix gc -d 7d' alias pull-guix='guix pull' alias reconfigure-system='sudo guix system reconfigure -e '\''(@ (systems ayase) operating-system*)'\''' alias update-system='guix pull ; sudo guix system reconfigure -e '\''(@ (systems ayase) operating-system*)'\'' ; guix home delete-generations 7d ; sudo guix system delete-generations 7d ; sudo guix gc -d 7d' ~ My home configuration is declared as a system service, which is why it is not explicitly managed in the aliases.
