> > My commands were exactly "guix pull" and "guix system reconfigure > > /etc/config.scm". > > Okay. Remember that reconfiguring the system requires root privileges, > and that `guix pull` works for each user. >
Sorry, my mistake, I actually ran "guix pull" and "sudo guix system reconfigure /etc/config.scm". > So, you can't reconfigure unless you are root or you elevate your > privileges with sudo or a similar tool. > > Thus, if you run `guix pull` as your david user, the new linux-libre > packages will be available for david. But, they won't be available for > root. When I first read https://guix.gnu.org/manual/devel/en/html_node/After-System-Installation.html, I thought it was the way to update guix system, even though I found it strange to see that "guix pull" was done without "sudo", while it was used for "guix system reconfigure /etc/config.scm". > Nor will `guix system reconfigure` work as david, unless you > elevate privileges with `sudo -E`. > > I recommend elevating privileges in one of two ways: `sudo -i , --login` > or `sudo -E, --preserve-env`. > > The first logs you in as root, and you can `guix pull && guix system > reconfigure` as root. > > The second elevates the privileges of david, and preserves david's > environment while doing so. So, you can use david's `guix pull` to > reconfigure. > > Does that make sense? Please don't hesitate to ask for more advice or > clarification. > Oh yes, that makes a lot of sense, thanks, it seems I have been doing things wrong for a while. Based on your explanations, if I run "guix pull" (as david) and then "sudo - E guix system reconfigure /etc/config.scm", I can update the system fine, is that right? If so, is there a need to run "sudo -i guix pull" ever at all? One thing that I wonder about now, I believe I never ran "guix pull" with sudo, but upon installation, linux-libre was a 6.0 something version, and after the reconfigure with sudo, the version has become 6.11. How could that happen? Besides, I use guix on trisquel and parabola as well and I contributed to the trisquel wiki page to use guix, https://trisquel.info/en/wiki/gnu-guix-package-manager. This came from reading the guix manual and one advice received from this list once, I hope we got it right. Personally, I am a little puzzled that "sudo -i guix pull" alone and restart of the guix daemon are the only things to do with sudo.
