doc: Explain how to pass 'guix refresh' the packages found in your profile.

Suggested by Xinglu Chen <public@yoctocell.xyz>.

* doc/guix.texi (Invoking guix refresh): Mention how to update packages
found in one's profile.
This commit is contained in:
Ludovic Courtès 2021-03-25 23:58:09 +01:00
parent 3b8bd63aa2
commit 3cb1136780
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -11760,7 +11760,13 @@ $ ./pre-inst-env guix refresh -u emacs idutils gcc@@4.8
@noindent
The command above specifically updates the @code{emacs} and
@code{idutils} packages. The @option{--select} option would have no
effect in this case.
effect in this case. You might also want to update definitions that
correspond to the packages installed in your profile:
@example
$ ./pre-inst-env guix refresh -u \
$(guix package --list-installed | cut -f1)
@end example
When considering whether to upgrade a package, it is sometimes
convenient to know which packages would be affected by the upgrade and