all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chris Marusich <cmmarusich@gmail.com>
To: melon <shack@muto.ca>
Cc: help-guix@gnu.org
Subject: Re: Guix on a foreign distro (Mint) - List of packages is outdated and	not updatable
Date: Sun, 05 May 2019 19:57:13 -0700	[thread overview]
Message-ID: <87a7g0z3w6.fsf@gmail.com> (raw)
In-Reply-To: <87v9z4msju.fsf@muto.ca> (melon's message of "Tue, 23 Apr 2019 13:26:45 -0600")

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

melon <shack@muto.ca> writes:

> 'echo $PATH'
> Gave me a very messy output. Apparently things like '.guix-profile/bin',
> '.guix-profile/sbin' and '/usr/bin' were all shown multiple times. I
> changed it to the following (by editing ~/.bashrc):
>
> export
> PATH="$HOME/.guix-profile/bin:$HOME/.guix-profile/sbin:$HOME/.config/guix/current/bin:$HOME/.bin/bin:/usr/bin:/bin"
>
> After restarting BASH and running 'guix pull', all my packages are
> once again up to date. Thank you again!

I'm glad to hear this solved your problem.  I just wanted to add some
information you might find useful.  When using Guix, you do not need to
set the PATH explicitly like this, but there is no harm in doing so if
you want to.  You can also write something like this instead:

  GUIX_PROFILE="$HOME/.guix-profile"
  . "$GUIX_PROFILE/etc/profile"

Whenever Guix generates a profile, by default a "profile hook" will run
that generates this etc/profile file.  This file contains shell commands
which set up all the environment variables you need in order to
"activate" the profile.  This includes PATH.  The nice thing about this
is that if you source this file in a place like ~/.bash_profile (or
similar), then whenever you log in, you'll always get the right
environment variables for your profile, regardless of what software
you've installed.

On a Guix System, both your $HOME/.guix-profile and
$HOME/.config/guix/current profiles will be "activated" automatically in
this manner (see: /etc/profile), but on a foreign distro, you have to do
this yourself by adding the appropriate lines to a shell start-up file.

I hope that perhaps this information helps simplify your configuration!

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      reply	other threads:[~2019-05-06  2:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-23 20:02 Guix on a foreign distro (Mint) - List of packages is outdated and not updatable MutoShack
2019-04-23  7:36 ` Julien Lepiller
2019-04-23 19:26   ` melon
2019-05-06  2:57     ` Chris Marusich [this message]

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=87a7g0z3w6.fsf@gmail.com \
    --to=cmmarusich@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=shack@muto.ca \
    /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.