* [beginner's question] What is preventing my package from being deleted?
@ 2024-09-07 16:50 Rodrigo Morales
2024-09-07 18:24 ` Marek Paśnikowski
0 siblings, 1 reply; 4+ messages in thread
From: Rodrigo Morales @ 2024-09-07 16:50 UTC (permalink / raw)
To: help-guix
I defined a package and I installed it. Now, I'm trying to delete that package, but the following error is shown:
#+HEADER: :prologue "exec 2>&1"
#+HEADER: :epilogue ":"
#+BEGIN_SRC sh
guix gc -D /gnu/store/r7l2scg74yd6pryrs2xbh268akhwl7qi-font-stkaiti-287399335ec1beb72062ce67c36eaa8bec35f386 ; echo Exit code: $?
#+END_SRC
#+RESULTS:
#+begin_example
finding garbage collector roots...
guix gc: error: cannot delete path `/gnu/store/r7l2scg74yd6pryrs2xbh268akhwl7qi-font-stkaiti-287399335ec1beb72062ce67c36eaa8bec35f386' since it is still alive
Exit code: 1
#+end_example
I have listed all referrers, but no referrer is shown.
#+HEADER: :prologue "exec 2>&1"
#+HEADER: :epilogue ":"
#+BEGIN_SRC sh
guix gc --referrers /gnu/store/r7l2scg74yd6pryrs2xbh268akhwl7qi-font-stkaiti-287399335ec1beb72062ce67c36eaa8bec35f386 ; echo Exit code: $?
#+END_SRC
#+RESULTS:
#+begin_example
Exit code: 0
#+end_example
My question is: If there are no referres, then what is preventing that package from being deleted using =guix gc -D=?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [beginner's question] What is preventing my package from being deleted?
2024-09-07 16:50 [beginner's question] What is preventing my package from being deleted? Rodrigo Morales
@ 2024-09-07 18:24 ` Marek Paśnikowski
2024-09-08 1:14 ` Rodrigo Morales
0 siblings, 1 reply; 4+ messages in thread
From: Marek Paśnikowski @ 2024-09-07 18:24 UTC (permalink / raw)
To: Rodrigo Morales; +Cc: help-guix
Did you remove the package with =guix remove=?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [beginner's question] What is preventing my package from being deleted?
2024-09-07 18:24 ` Marek Paśnikowski
@ 2024-09-08 1:14 ` Rodrigo Morales
2024-09-08 6:02 ` Marek Paśnikowski
0 siblings, 1 reply; 4+ messages in thread
From: Rodrigo Morales @ 2024-09-08 1:14 UTC (permalink / raw)
To: Marek Paśnikowski, Rodrigo Morales; +Cc: help-guix
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:
#+BEGIN_SRC text
$ guix remove /gnu/store/r7l2scg74yd6pryrs2xbh268akhwl7qi-font-stkaiti-287399335ec1beb72062ce67c36eaa8bec35f386 ; echo Exit code: $?
guix remove: error: package '/gnu/store/r7l2scg74yd6pryrs2xbh268akhwl7qi-font-stkaiti-287399335ec1beb72062ce67c36eaa8bec35f386' not found in profile
Exit code: 1
#+END_SRC
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [beginner's question] What is preventing my package from being deleted?
2024-09-08 1:14 ` Rodrigo Morales
@ 2024-09-08 6:02 ` Marek Paśnikowski
0 siblings, 0 replies; 4+ messages in thread
From: Marek Paśnikowski @ 2024-09-08 6:02 UTC (permalink / raw)
To: Rodrigo Morales; +Cc: Rodrigo Morales, help-guix
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-08 6:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-07 16:50 [beginner's question] What is preventing my package from being deleted? Rodrigo Morales
2024-09-07 18:24 ` Marek Paśnikowski
2024-09-08 1:14 ` Rodrigo Morales
2024-09-08 6:02 ` Marek Paśnikowski
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.