Joshua Branson <[email protected]> writes:

> I guess I'm still a little confused. Suppose that I want to update all
> packages, on my system.  The ones owned by root, and the ones owned by
> all other users.  Then I'd do this?
>
> $ guix pull && guix package -u
>
> $ logout
>
> $ login DifferentUser
>
> $ guix pull && guix package -u
>
>  ...repeat for all other users...
>
> $ su
>
> # guix pull && guix package -u && guix system reconfigure /etc/config.scm
>
> Does that look right?

Yes, exactly.

I should also mention that if you'd like to avoid some or all of these
'guix pull's, you can arrange for user B to always track user A's copy
of Guix like this:

  ln -sf {~A,~B}/.config/guix/latest

However, manually fiddling with these symlinks is not officially
supported and might stop working in a future version of Guix.  Also,
beware that if you accidentally run "guix pull" as user B, it will
overwrite the symlink, and henceforth user B will no longer track user A
until you re-run the above command.

Alternatively, if you don't want user B to _track_ user A, but you just
ran "guix pull" as user A and now you want to quickly update user B to
the same copy of Guix, you can do this:

  cp -a {~A,~B}/.config/guix/latest

      Mark

Reply via email to