[Nix-dev] n00b question: nix-env --query that outputs Attributes

Daniel Santa Cruz dstcruz at gmail.com
Thu Jun 7 16:59:40 CEST 2012


Hello all,

After reading and re-reading the man page, I'm still not sure how to
do a query that will output the attribute path of installed packages.
I figured that I could change:

> nix-env -qaP "*"

into:

> nix-env -q --installed -P "*"

but that doesn't seem to work. I get a list of installed packages,
prefixed with a number:

9   cabal-install-0.14.0
8   emacs-24.0.94
10  ghc-7.4.1-wrapper
0   haskell-hjsmin-ghc7.4.1-0.1.2
1   haskell-persistent-sqlite-ghc7.4.1-0.9.0.2
....

Am I doing something wrong?

Daniel


More information about the nix-dev mailing list