From bfa2f754592a00fefa4fcd20080582268b6273dd Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Sat, 21 Sep 2019 20:36:04 +0900 Subject: [PATCH] doc: Adapt the guix pull command recommendation. This change follows the discussion for issue #36785 (see: https://bugs.gnu.org/36785). * doc/guix.texi (After System Installation): Add the '-i' sudo option to the suggested commands used to keep a Guix System up-to-date. Although this section is specific to Guix System, it is likely to be read by users of foreign GNU/Linux distributions as well. Remove the note, given that sudo doesn't preserve the user's PATH on foreign distributions such as Debian. --- doc/guix.texi | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 0ed59072c9..3690e3b152 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -2387,8 +2387,8 @@ Success, you've now booted into Guix System! From then on, you can update the system whenever you want by running, say: @example -guix pull -sudo guix system reconfigure /etc/config.scm +sudo -i guix pull +sudo -i guix system reconfigure /etc/config.scm @end example @noindent @@ -2396,14 +2396,6 @@ This builds a new system generation with the latest packages and services (@pxref{Invoking guix system}). We recommend doing that regularly so that your system includes the latest security updates (@pxref{Security Updates}). -@c See . -@quotation Note -@cindex sudo vs. @command{guix pull} -Note that @command{sudo guix} runs your user's @command{guix} command and -@emph{not} root's, because @command{sudo} leaves @code{PATH} unchanged. To -explicitly run root's @command{guix}, type @command{sudo -i guix @dots{}}. -@end quotation - Join us on @code{#guix} on the Freenode IRC network or on @email{guix-devel@@gnu.org} to share your experience! -- 2.23.0