unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: What is Guix garbage collector root aka gc root
Date: Mon, 14 Aug 2017 06:33:54 +0200	[thread overview]
Message-ID: <87efsehiod.fsf@elephly.net> (raw)
In-Reply-To: <87efsfbo5h.fsf@gmail.com>


Hi Oleg,

> 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?

You can pass any file to “--root”.  It will *create* a GC root for you.

The manual says this:

--8<---------------cut here---------------start------------->8---
‘--root=FILE’
‘-r FILE’
     Make FILE a symlink to the profile for this environment, and
     register it as a garbage collector root.

     This is useful if you want to protect your environment from garbage
     collection, to make it “persistent”.

     When this option is omitted, the environment is protected from
     garbage collection only for the duration of the ‘guix environment’
     session.  This means that next time you recreate the same
     environment, you could have to rebuild or re-download packages.
--8<---------------cut here---------------end--------------->8---

Since it will create a new symlink, do *not* give it the path to an
existing profile.

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  parent reply	other threads:[~2017-08-14  4:34 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
2017-08-14  4:33 ` Ricardo Wurmus [this message]
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

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efsehiod.fsf@elephly.net \
    --to=rekado@elephly.net \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).