unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Synáček" <jan.synacek@gmail.com>
To: "Thompson, David" <dthompson2@worcester.edu>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Some newbie questions
Date: Thu, 29 Oct 2015 21:29:26 +0100	[thread overview]
Message-ID: <CACA+5f1eA0Mvf_Ay_vdQWMP5i-b8JvoAZgR73BoK_5NcUFCXLw@mail.gmail.com> (raw)
In-Reply-To: <CAJ=RwfZZiNO+0UBsWQgV86spjKCSp3m1y38FS_5L3SDAYo_G=w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2751 bytes --]

On Thu, Oct 29, 2015 at 2:23 PM, Thompson, David <dthompson2@worcester.edu>
wrote:

> On Thu, Oct 29, 2015 at 6:08 AM, Jan Synáček <jan.synacek@gmail.com>
> wrote:
> > Hello,
> >
> > I've been playing with guix a bit and I must say I really like it. I
> don't
> > understand a few things though.
> >
> > 1) How do I tell if a package I have installed had been built locally or
> > downloaded as a substitute?
>
> You don't.  You can think of substitution is an optimization
> technique, the results are indistinguishable except for that it likely
> took less time to get the substitute.  It's possible to query the
> substitute server to see if it has the store item that you have, but
> that doesn't mean that your copy was retrieved from there necessarily.
> Other than that, the Guix tools will tell you at build/download time
> whether or not it is building from source or downloading a pre-built
> binary.  What use-case do you have in mind?


Nothing really specific. I was just curious if it was possible. Now that I
think about it,
I should get the same result whether building myself or installing a
substitute,
right?


> > 2) There are a lot of packages with executable binaries in the bin/
> > subfolder in /gnu/store. However, if I didn't explicitly install the
> > package, I don't have it in my profile and can't easily reach the binary
> > without first looking it up in the store. Do I have to always "install" a
> > package to be able to use run it easily?
>
> Not always, but usually that is what you'd do.  This is how we achieve
> isolation of environments.  Different users, or the same user in
> different circumstances, will want different sets of programs and
> libraries available to them.
>
> That said, if you just want to do a one-off run of something, you can
> use 'guix environment' instead, which will not install anything to
> your user profile, like so:
>
>     guix environment --ad-hoc wget -- wget http://gnu.org/s/guix
>
> > Please, excuse my not-so-clear questions, I still don't fully understand
> how
> > things really work in guix.
>
> No problem at all.  Welcome!
>
> - Dave
>

Thank you!

I'm curious about one more thing. In /gnu/store/, there are built packages,
which I understand.
Then there are derivations, -builder files, standalone statically linked
binaries, some patches
and also some scheme files. There's also the .links directory that contains
various file formats
as well, only this time their names are only hashes. Does any
documentation/source
of information about what all those are exist? I couldn't find anything.
The .links directory takes
over 2GiB on my machine and I wonder why.

Cheers,
-- 
Jan Synáček

[-- Attachment #2: Type: text/html, Size: 3927 bytes --]

  reply	other threads:[~2015-10-29 20:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-29 10:08 Some newbie questions Jan Synáček
2015-10-29 13:23 ` Thompson, David
2015-10-29 20:29   ` Jan Synáček [this message]
2015-10-29 21:11     ` Adam Pribyl
2015-10-29 21:30       ` Andreas Enge
2015-10-30 16:35         ` Ludovic Courtès
2015-10-29 20:32   ` Ludovic Courtès

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=CACA+5f1eA0Mvf_Ay_vdQWMP5i-b8JvoAZgR73BoK_5NcUFCXLw@mail.gmail.com \
    --to=jan.synacek@gmail.com \
    --cc=dthompson2@worcester.edu \
    --cc=guix-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).