help-guix
[Top][All Lists]
Advanced

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

Re: Sorry, stupid question about guix pull


From: Julien Lepiller
Subject: Re: Sorry, stupid question about guix pull
Date: Tue, 8 Jan 2019 21:13:02 +0100

Le Tue, 8 Jan 2019 17:49:40 +0000,
Jone <address@hidden> a écrit :

> > this looks like it's part of an operating-system declaration. Is
> > that right?  
> 
> That's right.
> 
> > When you run guix pull, a new guix is installed for the user who
> > ran it.  
> 
> And who updates the system libraries and kernel? Root? Well, what is
> stated in  operating-system declaration?
> 
> > Try 'guix system reconfigure <path to config.scm>' instead.  
> 
> A! That is the question! So what to use for the upgrade system?!
> Upgrade or reconfigure? My operating-system declaration is the same.
> Not perfect, but I'll fix it later, with the help of 'reconfigure'
> (add noatime options as example).
> 
> > I'm not sure what that is... can you give a more concrete example?  
> 
> I'll leave it for later, it seems particular.
> 
> > I hope I could help a little :)  
> 
> In general, I understand everything. But! Update 0.15 -> 0.16 did not
> work. Errors are not saved, I will try again.

Generally speaking, you have to remember that there are at least three
profiles involved in Guix:

your user's profile (managed with 'guix package' as a user),
root's profile (managed with 'guix package' as root),
and the system profile when you use GuixSD (managed with 'guix system'
as root).

the operating-system declaration in your config.scm file is used to
instantiate a new system profile, which is separate from root's
profile. So you use that file with 'guix system reconfigure'. 'guix
package -u' will only upgrade root's or your user's profile.

The kernel is installed in the system profile, not in root's profile.
System libraries do not really exist in guix, because of the
functionnal model. So upgrading the system profile will upgrade system
software, grub and kernel as well as system services, but it doesn't
update anything in root or users' profiles.

A full upgrade consists in running 'guix pull' once as each user
(including root), then running 'guix package -u' (or 'guix package -m'
if you use a manifest) as every user, including root, and 'guix system
reconfigure' to also upgrade the system profile.



reply via email to

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