Next: , Up: Guix REPL   [Contents][Index]


6.1.1 101

Note: the REPL command ,use (module path name) (shortened ,u) can be used as an equivalent for (use-modules (module path name)). ,use alone will list currently imported modules.

Simple Guix REPL session

$ guix repl
GNU Guile 3.0.8
;;  [skipped licence preamble]
> (use-modules (gnu packages base))
> findutils
$1 = #<package findutils@4.8.0 gnu/packages/base.scm:294 7fc88588ddc0>
> ,use(guix)
> (package-name findutils)
$2 = "findutils"
> (package-version findutils)
$3 = "4.8.0"
> (package? findutils)
$4 = #t

Note: the REPL command ,describe (can be shortened ,d) : Usage: describe OBJ
Show description/documentation. (#f if unavailable)

> ,d package->derivation
Return the <derivation> object of PACKAGE for SYSTEM.
> ,describe package-name
#f

Note: when a module is imported, its exported objects are listed in TAB-… completions.

> package-in<TAB>
package-input-error?          package-input-rewriting/spec
package-input-rewriting       package-inputs