[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [beginner's question] What is preventing my package from being delet
From: |
Marek Paśnikowski |
Subject: |
Re: [beginner's question] What is preventing my package from being deleted? |
Date: |
Sun, 08 Sep 2024 08:02:46 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Rodrigo Morales <rodrigo@morales.pe> writes:
> Marek Paśnikowski <marek@marekpasnikowski.pl> 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.