From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: How is guix update and system upgrade supposed to work? Date: Sat, 12 Nov 2016 12:18:35 +0100 Message-ID: <874m3dosj8.fsf@gnu.org> References: <5824873A.5070203@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c5WKY-0003M7-E1 for help-guix@gnu.org; Sat, 12 Nov 2016 06:18:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c5WKV-00007c-AI for help-guix@gnu.org; Sat, 12 Nov 2016 06:18:42 -0500 In-Reply-To: <5824873A.5070203@crazy-compilers.com> (Hartmut Goebel's message of "Thu, 10 Nov 2016 15:42:02 +0100") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Hartmut Goebel Cc: help-guix@gnu.org Hi Hartmut, Hartmut Goebel 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 =E2=80=9Cguix pull && guix package -u=E2=80=9D. 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=E2=80=A6 > 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? =E2=80=A6 upgrading packages of all users is not a central use case. :-) You *could* force each user=E2=80=99s ~/.config/guix/latest symlink to poin= t to, say, ~root/.config/guix/latest, and have a policy that only root runs =E2=80=9Cguix pull=E2=80=9D. That way, all the users would be using the sa= me Guix. But users would still be able to bypass it, and that=E2=80=99s the whole po= int 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 =E2=80=9Csystem binaries=E2=80=9D? On GuixSD, system-w= ide binaries (which are under /run/current-system/profile/) are upgraded by: # guix pull && guix system reconfigure config.scm HTH! Ludo=E2=80=99.