Archived
1
0
Fork 0

doc: Add example to calculate the size a system.

* doc/guix.texi (Invoking `guix size'): Add guix size example for store item.
This commit is contained in:
Pierre Neidhardt 2020-05-26 15:36:58 +02:00
parent e70e097882
commit 776409c506
No known key found for this signature in database
GPG key ID: 9BDCF497A4BBCC7F

View file

@ -10112,6 +10112,13 @@ libraries. (That libc and GCC's libraries represent a large fraction of
the closure is not a problem @i{per se} because they are always available the closure is not a problem @i{per se} because they are always available
on the system anyway.) on the system anyway.)
Since the command also accepts store file names, assessing the size of
a build result is straightforward:
@example
guix size $(guix system build config.scm)
@end example
When the package(s) passed to @command{guix size} are available in the When the package(s) passed to @command{guix size} are available in the
store@footnote{More precisely, @command{guix size} looks for the store@footnote{More precisely, @command{guix size} looks for the
@emph{ungrafted} variant of the given package(s), as returned by @emph{ungrafted} variant of the given package(s), as returned by