help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Rescue GuixSD when guile and guix arebroken?


From: Ludovic Courtès
Subject: Re: How to Rescue GuixSD when guile and guix arebroken?
Date: Mon, 24 Sep 2018 17:33:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello,

znavko <address@hidden> skribis:

> One more question. Often I have troubles that installed by root packages are 
> not visible for root. I think this is because of PATH. So I have added this 
> to /root/.bashrc , as these instructions appeared while I run `guix package 
> -i ATOM` :
>
> # tail -n 6 /root/.bashrc
>
> # my
> export PATH="/root/.guix-profile/bin${PATH:+:}$PATH"
> export PATH="/root/.guix-profile/bin:/root/.guix-profile/sbin${PATH:+:}$PATH"
> export PATH="/root/.config/guix/current/bin${PATH:+:}$PATH"
>
> Is it right way?

Environment variable definitions should go to ~/.bash_profile rather
than ~/.bashrc (the former is for “login shells”, the latter isn’t).
Other than that it looks good.

> Does it work, when I run `su`?

‘su’ doesn’t source root’s ~/.bash_profile; you have to run ‘su -’ to do
that.

HTH,
Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]