Hello,

znavko <[email protected]> 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