all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* guix pull
@ 2014-09-16 20:07 Federico Beffa
  2014-09-17  5:19 ` Ludovic Courtès
  0 siblings, 1 reply; 17+ messages in thread
From: Federico Beffa @ 2014-09-16 20:07 UTC (permalink / raw)
  To: guix-devel

Hi,

I've noticed that if I run "guix pull" from a directory where I do not
have write permission I get an error:

guix pull: error: mkstemp!: Permission denied

Maybe it should be created in /tmp?

Regards,
Fede

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2014-09-16 20:07 Federico Beffa
@ 2014-09-17  5:19 ` Ludovic Courtès
  2014-09-22  9:53   ` Federico Beffa
  0 siblings, 1 reply; 17+ messages in thread
From: Ludovic Courtès @ 2014-09-17  5:19 UTC (permalink / raw)
  To: Federico Beffa; +Cc: guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> I've noticed that if I run "guix pull" from a directory where I do not
> have write permission I get an error:
>
> guix pull: error: mkstemp!: Permission denied
>
> Maybe it should be created in /tmp?

Indeed, this is a bug.  Should be fixed now, thanks.

Ludo’.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2014-09-17  5:19 ` Ludovic Courtès
@ 2014-09-22  9:53   ` Federico Beffa
  2014-09-22 11:17     ` Ludovic Courtès
  0 siblings, 1 reply; 17+ messages in thread
From: Federico Beffa @ 2014-09-22  9:53 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

On Wed, Sep 17, 2014 at 7:19 AM, Ludovic Courtès <ludo@gnu.org> wrote:
> Federico Beffa <beffa@ieee.org> skribis:
>
>> I've noticed that if I run "guix pull" from a directory where I do not
>> have write permission I get an error:
>>
>> guix pull: error: mkstemp!: Permission denied
>>
>> Maybe it should be created in /tmp?
>
> Indeed, this is a bug.  Should be fixed now, thanks.


I believe to have found another problem after doing a "guix pull": In
the directory $HOME/.config/guix/latest/guix there is a file called
"config.scm.in". Shouldn't this file be processed and output
"config.scm"?

Regards,
Fede

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2014-09-22  9:53   ` Federico Beffa
@ 2014-09-22 11:17     ` Ludovic Courtès
  2014-09-22 17:07       ` Federico Beffa
  0 siblings, 1 reply; 17+ messages in thread
From: Ludovic Courtès @ 2014-09-22 11:17 UTC (permalink / raw)
  To: Federico Beffa; +Cc: guix-devel

Federico Beffa <beffa@ieee.org> skribis:

> I believe to have found another problem after doing a "guix pull": In
> the directory $HOME/.config/guix/latest/guix there is a file called
> "config.scm.in". Shouldn't this file be processed and output
> "config.scm"?

No, it’s on purpose: the goal is to keep using the already-installed
(guix config), which contains the right file names etc.

Ludo’.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2014-09-22 11:17     ` Ludovic Courtès
@ 2014-09-22 17:07       ` Federico Beffa
  0 siblings, 0 replies; 17+ messages in thread
From: Federico Beffa @ 2014-09-22 17:07 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

> No, it’s on purpose: the goal is to keep using the already-installed
> (guix config), which contains the right file names etc.

Got it. Finally I see how "guix pull" works and why importing modules
only from $HOME/.config/guix/latest/ in the REPL is not enough... :-)

Thanks,
Fede

^ permalink raw reply	[flat|nested] 17+ messages in thread

* guix pull
  2015-04-12 19:00     ` Andreas Enge
@ 2015-04-12 20:56       ` Ludovic Courtès
  0 siblings, 0 replies; 17+ messages in thread
From: Ludovic Courtès @ 2015-04-12 20:56 UTC (permalink / raw)
  To: Andreas Enge; +Cc: guix-devel

Andreas Enge <andreas@enge.fr> skribis:

> On Sun, Apr 12, 2015 at 03:38:58PM +0200, Ludovic Courtès wrote:
>> Anyway, I recommend against using repeated “make install”, one reason
>> being that there can be leftovers if you don’t run “make uninstall”
>> beforehand.
>
> It seems to be the good way of working in my "multi-user" setting. Why
> should every user handle his own copy of guix? For instance, the daemon
> needs to be installed in a system location to be started by the init system.
> Anyway, "make install" needs to work.

Of course it has to work, no argument here.  :-)

However, it is stateful, which makes it easier to get into troubles (for
instance because a stale .scm file remains available, so ‘guix package
-A’ would show its contents, or because of obscure timestamp issues on
existing files, particularly if one tries
“make install INSTALL='install -C'”, etc.)

>> “guix pull” is meant to be a handy way to deal with updates.
>
> Does this not interfere badly with git? I am running "make install" from my
> latest stable master git branch, so that every user on the system has a recent
> stable guix, with "stable" in the sense of a rolling release, not the latest
> official relase.

Right, the model with “guix pull” is that each user is responsible for
updating their local Guix.  From the sysadmin’s viewpoint, this is bad,
because each user could have their own thing, and some could still be
installing old packages with security issues.  From the user’s
viewpoint, it’s total freedom.

Perhaps “guix pull” could honor sysadmin-handled updates, for those
cases where users do not want to run “guix pull” by themselves.  Say,
‘guix’ would look for ~/.config/guix/latest first, and then
/var/guix/latest.  Thoughts?

> Then I use "./pre-inst-env" from my private branch in which I am
> developing new packages.

Sure.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* guix pull
@ 2022-02-16 16:28 Gottfried
  2022-02-16 17:19 ` Leo Famulari
  2022-02-16 20:09 ` Ricardo Wurmus
  0 siblings, 2 replies; 17+ messages in thread
From: Gottfried @ 2022-02-16 16:28 UTC (permalink / raw)
  To: help-guix

Hi,

how often do I have to do a "guix pull"? Once a week, or twice a week, 
or every second week?

Are there possibilities to know, when security updates are made and I 
should do a guix pull?

Should I do a guix pull basically in my user account?

Or should I do a guix pull basically in the root account?

As far as I understood if I do a gux pull in my user account, it has no 
influence to the root account?

But If I do a guix pull only in my user account, it would mean, as far 
as I understand it, the root account would not get security updates?

What should be the procedure?

Gottfried

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 16:28 guix pull Gottfried
@ 2022-02-16 17:19 ` Leo Famulari
  2022-02-16 17:55   ` pelzflorian (Florian Pelz)
  2022-02-16 19:28   ` Gottfried
  2022-02-16 20:09 ` Ricardo Wurmus
  1 sibling, 2 replies; 17+ messages in thread
From: Leo Famulari @ 2022-02-16 17:19 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix

On Wed, Feb 16, 2022 at 04:28:08PM +0000, Gottfried wrote:
> how often do I have to do a "guix pull"? Once a week, or twice a week, or
> every second week?

You never *have* to do it, but I recommend you do it at least once a
week, if that works for you. There are security problems fixed in every
update of packages with big codebases, such as browsers, kernels, etc.

> Are there possibilities to know, when security updates are made and I should
> do a guix pull?

Currently we only announce security fixes in Guix itself.  That is, we
do not announce security updates of packages, although we do often
mention them in the Git log:

https://git.savannah.gnu.org/cgit/guix.git/log/

> Should I do a guix pull basically in my user account?
> 
> Or should I do a guix pull basically in the root account?
> 
> As far as I understood if I do a gux pull in my user account, it has no
> influence to the root account?

Correct.

`guix pull` is per-user. Every user can do their own `guix pull`, and it
doesn't affect any other user. Root is just another user. There is
nothing special about root from this perspective.

> But If I do a guix pull only in my user account, it would mean, as far as I
> understand it, the root account would not get security updates?

Correct.

> What should be the procedure?

As each user that you wish to update, do `guix pull` to update Guix and
the list of available packages and services, and then do `guix upgrade`
to actually upgrade your packages. If you use Guix System, you upgrade
the system with `guix system reconfigure`.


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 17:19 ` Leo Famulari
@ 2022-02-16 17:55   ` pelzflorian (Florian Pelz)
  2022-02-16 19:22     ` Gottfried
  2022-02-16 19:28   ` Gottfried
  1 sibling, 1 reply; 17+ messages in thread
From: pelzflorian (Florian Pelz) @ 2022-02-16 17:55 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix, Gottfried

On Wed, Feb 16, 2022 at 12:19:58PM -0500, Leo Famulari wrote:
> On Wed, Feb 16, 2022 at 04:28:08PM +0000, Gottfried wrote:
> > But If I do a guix pull only in my user account, it would mean, as far as I
> > understand it, the root account would not get security updates?
> 
> Correct.
> 
> > What should be the procedure?
> 
> As each user that you wish to update, do `guix pull` to update Guix and
> the list of available packages and services, and then do `guix upgrade`
> to actually upgrade your packages. If you use Guix System, you upgrade
> the system with `guix system reconfigure`.
> 


Note however that

sudo guix system reconfigure /etc/config.scm

uses the guix of the user who is running sudo.

See https://guix.gnu.org/en/manual/devel/de/html_node/Nach-der-Systeminstallation.html

It is therefore possible to never use root’s guix .

Regards,
Florian


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 17:55   ` pelzflorian (Florian Pelz)
@ 2022-02-16 19:22     ` Gottfried
  0 siblings, 0 replies; 17+ messages in thread
From: Gottfried @ 2022-02-16 19:22 UTC (permalink / raw)
  To: pelzflorian (Florian Pelz), Leo Famulari; +Cc: help-guix

thanks

is there a possibility to run a guix pull for root and for the user 
together, in order not to do it twice, because it needs quite a long 
time, compared to other Linux distros, where updating takes only some 
minutes. (Debian based distros, Manjaro, Endeavour OS and so on).

If you do a guix pull, in my case I can´t do it at the end of my work, 
because I would have to wait for finishing more than 30 minutes.

Is it not better to run a guix pull also regularly for root, in order 
that root has also updated versions...

In my understanding (as a layman) it would leave root behind and leads 
may be to inconsistency's in the guix system.


regards

Gottfried



Am 16.02.22 um 18:55 schrieb pelzflorian (Florian Pelz):
> On Wed, Feb 16, 2022 at 12:19:58PM -0500, Leo Famulari wrote:
>> On Wed, Feb 16, 2022 at 04:28:08PM +0000, Gottfried wrote:
>>> But If I do a guix pull only in my user account, it would mean, as far as I
>>> understand it, the root account would not get security updates?
>> Correct.
>>
>>> What should be the procedure?
>> As each user that you wish to update, do `guix pull` to update Guix and
>> the list of available packages and services, and then do `guix upgrade`
>> to actually upgrade your packages. If you use Guix System, you upgrade
>> the system with `guix system reconfigure`.
>>
>
> Note however that
>
> sudo guix system reconfigure /etc/config.scm
>
> uses the guix of the user who is running sudo.
>
> Seehttps://guix.gnu.org/en/manual/devel/de/html_node/Nach-der-Systeminstallation.html
>
> It is therefore possible to never use root’s guix .
>
> Regards,
> Florian

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 17:19 ` Leo Famulari
  2022-02-16 17:55   ` pelzflorian (Florian Pelz)
@ 2022-02-16 19:28   ` Gottfried
  2022-02-16 20:27     ` Leo Famulari
  1 sibling, 1 reply; 17+ messages in thread
From: Gottfried @ 2022-02-16 19:28 UTC (permalink / raw)
  To: Leo Famulari; +Cc: help-guix

In other Linux distros there is always an immediate announcement if 
there are security updates and package updates available.

In guix system it seems, according to Your answer, it does not 
happen.      (May be in future if it will be developed?)

regards

Gottfried


Am 16.02.22 um 18:19 schrieb Leo Famulari:
> On Wed, Feb 16, 2022 at 04:28:08PM +0000, Gottfried wrote:
>> how often do I have to do a "guix pull"? Once a week, or twice a week, or
>> every second week?
> You never *have* to do it, but I recommend you do it at least once a
> week, if that works for you. There are security problems fixed in every
> update of packages with big codebases, such as browsers, kernels, etc.
>
>> Are there possibilities to know, when security updates are made and I should
>> do a guix pull?
> Currently we only announce security fixes in Guix itself.  That is, we
> do not announce security updates of packages, although we do often
> mention them in the Git log:
>
> https://git.savannah.gnu.org/cgit/guix.git/log/
>
>> Should I do a guix pull basically in my user account?
>>
>> Or should I do a guix pull basically in the root account?
>>
>> As far as I understood if I do a gux pull in my user account, it has no
>> influence to the root account?
> Correct.
>
> `guix pull` is per-user. Every user can do their own `guix pull`, and it
> doesn't affect any other user. Root is just another user. There is
> nothing special about root from this perspective.
>
>> But If I do a guix pull only in my user account, it would mean, as far as I
>> understand it, the root account would not get security updates?
> Correct.
>
>> What should be the procedure?
> As each user that you wish to update, do `guix pull` to update Guix and
> the list of available packages and services, and then do `guix upgrade`
> to actually upgrade your packages. If you use Guix System, you upgrade
> the system with `guix system reconfigure`.

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 16:28 guix pull Gottfried
  2022-02-16 17:19 ` Leo Famulari
@ 2022-02-16 20:09 ` Ricardo Wurmus
  2022-02-16 20:35   ` Gottfried
  2022-02-16 20:38   ` Gottfried
  1 sibling, 2 replies; 17+ messages in thread
From: Ricardo Wurmus @ 2022-02-16 20:09 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix


Gottfried <gottfried@posteo.de> writes:

> Should I do a guix pull basically in my user account?
>
> Or should I do a guix pull basically in the root account?
>
> As far as I understood if I do a gux pull in my user account, it has
> no influence to the root account?

This is correct.  As far as Guix is concerned “root” is just another
user account.

> But If I do a guix pull only in my user account, it would mean, as far
> as I understand it, the root account would not get security updates?

Correct.

Note that “guix pull” alone doesn’t upgrade any installed packages.  It
only gives you a new version of Guix which has access to updated packages.

> What should be the procedure?

You can have all users on the machine share the same guix and/or the
same profile and upgrade just that.

On a single-user system it also makes sense to just not install any
software for the root user.

-- 
Ricardo


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 19:28   ` Gottfried
@ 2022-02-16 20:27     ` Leo Famulari
  0 siblings, 0 replies; 17+ messages in thread
From: Leo Famulari @ 2022-02-16 20:27 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix

On Wed, Feb 16, 2022 at 07:28:35PM +0000, Gottfried wrote:
> In other Linux distros there is always an immediate announcement if there
> are security updates and package updates available.
> 
> In guix system it seems, according to Your answer, it does not happen.     
> (May be in future if it will be developed?)

Overall, it's a complicated subject.

Different distros handle security updates in different ways. Some of
them are better than Guix, some are worse. And whether or not you think
they are better or worse depends on your preferences.

There is not a simple answer to "what is the right thing to do?" in
terms of security updates and advisories.

Guix is a distro run by volunteers, and nobody has volunteered to handle
advisories, nor has anybody offered to fund that work. So, it hasn't
happened yet.


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 20:09 ` Ricardo Wurmus
@ 2022-02-16 20:35   ` Gottfried
  2022-02-16 22:36     ` Ricardo Wurmus
  2022-02-16 20:38   ` Gottfried
  1 sibling, 1 reply; 17+ messages in thread
From: Gottfried @ 2022-02-16 20:35 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

If I do a guix pull at root, than the guix system is for root updated, I 
understood,

does it mean that's it, and I don´t need to do a

guix system reconfigure /etc/config.scm, which I do for the user?

Gottfried



Am 16.02.22 um 21:09 schrieb Ricardo Wurmus:
> Gottfried<gottfried@posteo.de>  writes:
>
>> Should I do a guix pull basically in my user account?
>>
>> Or should I do a guix pull basically in the root account?
>>
>> As far as I understood if I do a gux pull in my user account, it has
>> no influence to the root account?
> This is correct.  As far as Guix is concerned “root” is just another
> user account.
>
>> But If I do a guix pull only in my user account, it would mean, as far
>> as I understand it, the root account would not get security updates?
> Correct.
>
> Note that “guix pull” alone doesn’t upgrade any installed packages.  It
> only gives you a new version of Guix which has access to updated packages.
>
>> What should be the procedure?
> You can have all users on the machine share the same guix and/or the
> same profile and upgrade just that.
>
> On a single-user system it also makes sense to just not install any
> software for the root user.
>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 20:09 ` Ricardo Wurmus
  2022-02-16 20:35   ` Gottfried
@ 2022-02-16 20:38   ` Gottfried
  2022-02-16 22:58     ` Ricardo Wurmus
  1 sibling, 1 reply; 17+ messages in thread
From: Gottfried @ 2022-02-16 20:38 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: help-guix

Now I did a guix pull in root.

It asks me at the end:


Hinweis: Nachdem Sie `PATH' festgelegt haben, sollten Sie `hash guix' 
ausführen, damit Ihre Shell `/root/.config/guix/current/bin/guix' verwendet.

What does it mean?

How do I "PATH"...


Gottfried



Am 16.02.22 um 21:09 schrieb Ricardo Wurmus:
> Gottfried<gottfried@posteo.de>  writes:
>
>> Should I do a guix pull basically in my user account?
>>
>> Or should I do a guix pull basically in the root account?
>>
>> As far as I understood if I do a gux pull in my user account, it has
>> no influence to the root account?
> This is correct.  As far as Guix is concerned “root” is just another
> user account.
>
>> But If I do a guix pull only in my user account, it would mean, as far
>> as I understand it, the root account would not get security updates?
> Correct.
>
> Note that “guix pull” alone doesn’t upgrade any installed packages.  It
> only gives you a new version of Guix which has access to updated packages.
>
>> What should be the procedure?
> You can have all users on the machine share the same guix and/or the
> same profile and upgrade just that.
>
> On a single-user system it also makes sense to just not install any
> software for the root user.
>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 20:35   ` Gottfried
@ 2022-02-16 22:36     ` Ricardo Wurmus
  0 siblings, 0 replies; 17+ messages in thread
From: Ricardo Wurmus @ 2022-02-16 22:36 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix


Gottfried <gottfried@posteo.de> writes:

> If I do a guix pull at root, than the guix system is for root updated, I understood, 
>
> does it mean that's it, and I don´t need to do a 
>
> guix system reconfigure /etc/config.scm, which I do for the user?

There seems to have been a misunderstanding; sorry for confusing you.

“guix pull” only updates the “guix” command.  It does so by installing a
new version of Guix (+ whatever channels you may have configured) to
~/.config/guix/current.  You can then use that new “guix” command to
upgrade or install new software.

“guix system reconfigure config.scm” on the other hand changes the
operating system according to the configuration file “config.scm”.
There’s only one system-wide operating system.  This action can only be
performed by the “root” user because it affects *all* users on the same
machine.

-- 
Ricardo


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: guix pull
  2022-02-16 20:38   ` Gottfried
@ 2022-02-16 22:58     ` Ricardo Wurmus
  0 siblings, 0 replies; 17+ messages in thread
From: Ricardo Wurmus @ 2022-02-16 22:58 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix


Gottfried <gottfried@posteo.de> writes:

> Hinweis: Nachdem Sie `PATH' festgelegt haben, sollten Sie `hash guix' ausführen, damit Ihre Shell `/root/.config/guix/current/bin/guix'
> verwendet.
>
> What does it mean? 
>
> How do I "PATH"...

Your shell (by default that’s GNU Bash) has a few builtin commands, but
when you type something like “ls” or “guix” it has to search for an
executable of that name on your disk.

It searches the directories that are listed on the PATH environment
variable.  You can see the value of PATH by running

    echo $PATH

This will be a colon-separated list of directories that can be expected
to contain executables.  When you type “guix” and hit enter your shell
visits the directories listed in this PATH variable one by one until it
finds an executable with the name “guix”.  It then remembers the
location so that it doesn’t have to do all that work again.

The hint above tells you to put ~/.config/guix/current/bin *first* on
the list of directories in the PATH variable, so that when the shell
goes to search for “guix” it will look there first and find
~/.config/guix/current/bin/guix — and not /usr/local/bin/guix or
whatever else might exist on your disk.

Since bash might have already remembered that “guix” corresponds to
“/usr/local/bin/guix” you need to tell it to forget about that and look
again.  That’s what “hash guix” does.

You can set PATH permanently by adding or modifying a line in the
~/.bash_profile file, which is read once when Bash starts.  Or you can
set it just in the current shell session.

In any case, setting this variable is done like this:

    export PATH=/home/gottfried/.config/guix/current/bin:$PATH

This changes the value of PATH so that
“/home/gottfried/.config/guix/current/bin” appears first, followed by
the current value of PATH.  You can add this line to the bottom of
~/.bash_profile and then start a new shell session (e.g. by logging out
and in again).

-- 
Ricardo


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2022-02-16 23:07 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-16 16:28 guix pull Gottfried
2022-02-16 17:19 ` Leo Famulari
2022-02-16 17:55   ` pelzflorian (Florian Pelz)
2022-02-16 19:22     ` Gottfried
2022-02-16 19:28   ` Gottfried
2022-02-16 20:27     ` Leo Famulari
2022-02-16 20:09 ` Ricardo Wurmus
2022-02-16 20:35   ` Gottfried
2022-02-16 22:36     ` Ricardo Wurmus
2022-02-16 20:38   ` Gottfried
2022-02-16 22:58     ` Ricardo Wurmus
  -- strict thread matches above, loose matches on Subject: below --
2015-04-09 19:38 Ghc and profile creation bug Andreas Enge
2015-04-10 16:13 ` Ludovic Courtès
2015-04-12 13:38   ` Ludovic Courtès
2015-04-12 19:00     ` Andreas Enge
2015-04-12 20:56       ` guix pull Ludovic Courtès
2014-09-16 20:07 Federico Beffa
2014-09-17  5:19 ` Ludovic Courtès
2014-09-22  9:53   ` Federico Beffa
2014-09-22 11:17     ` Ludovic Courtès
2014-09-22 17:07       ` Federico Beffa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.