help-guix
[Top][All Lists]
Advanced

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

Re: How is guix update and system upgrade supposed to work?


From: Ludovic Courtès
Subject: Re: How is guix update and system upgrade supposed to work?
Date: Sat, 12 Nov 2016 12:18:35 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hi Hartmut,

Hartmut Goebel <address@hidden> skribis:

> I still did not understand how a system-wide guix and package update is
> supposed to work. The manual is a bit terse on this.
>
> On a Debian system root does "apt-get update ; apt-get upgrade" and all
> packages are current.

The Guix equivalent is “guix pull && guix package -u”.

However, as you note, this is per-user here: it only upgrades packages
of the profile of the user that runs it.

This is a deliberate choice: we want users to be able to manage their
own package set by themselves.  Thus…

> I understand, that guix looks for ~/.config/guix/latest. But
> nevertheless I would expect some way to update guix for all users How is
> this supposed to work?

… upgrading packages of all users is not a central use case.  :-)

You *could* force each user’s ~/.config/guix/latest symlink to point to,
say, ~root/.config/guix/latest, and have a policy that only root runs
“guix pull”.  That way, all the users would be using the same Guix.

But users would still be able to bypass it, and that’s the whole point
of Guix anyway.

> Any since I do not even manage to update guix, how doe I update all
> system binaries? (I know, this will not update the binaries a user has
> installed for him/herself).

What do you mean by “system binaries”?  On GuixSD, system-wide binaries
(which are under /run/current-system/profile/) are upgraded by:

  # guix pull && guix system reconfigure config.scm

HTH!

Ludo’.



reply via email to

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