From: Leo Famulari <leo@famulari.name>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: What is Guix garbage collector root aka gc root
Date: Sun, 13 Aug 2017 12:36:49 -0400 [thread overview]
Message-ID: <20170813163649.GA1124@jasmine.lan> (raw)
In-Reply-To: <87efsfbo5h.fsf@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1279 bytes --]
On Sun, Aug 13, 2017 at 04:19:54PM +0300, Oleg Pykhalov wrote:
> I'm trying to understand what is “garbage collector root” aka “gc root”.
Garbage-collector roots (GC roots) are items in /gnu/store that are
registered to protect them from the garbage collector:
https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-gc.html
You can see the GC root symlinks in /var/guix/gcroots. You can make a
new GC root manually by adding a symlink to the store item you want to
preserve. For example:
$ ln --symbolic $(guix build hello) /var/guix/gcroots/my-hello
> 1. Is “$HOME/.guix-profile” a “gc root”?
Yes, this is mentioned in the manual, section Invoking guix package:
https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-package.html
> 2. I need to build a package, but don't install it. Just preserve it
> for offloading. Is “guix build --root=$HOME/.guix-profile PACKAGE” (run
> as non root user) what I want? Or if not, what FILE in “--root=FILE” do
> I need to pass?
I've never used this feature, so I'm not sure if the value of FILE can
be anywhere on the filesystem, or if it has to be in /var/guix/gcroots.
Hopefully someone else can clarify this. Or you can read the code or
experiment :)
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-08-13 16:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-13 13:19 What is Guix garbage collector root aka gc root Oleg Pykhalov
2017-08-13 16:36 ` Leo Famulari [this message]
2017-08-14 4:33 ` Ricardo Wurmus
2017-08-14 9:15 ` Oleg Pykhalov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170813163649.GA1124@jasmine.lan \
--to=leo@famulari.name \
--cc=go.wigust@gmail.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.