Cheatsheet: Difference between revisions

imported>Mkohler
Simplify command for showing the package dependencies of the system
imported>Mkohler
m "direct dependencies" is more clear than "immediate dependencies"
Line 126: Line 126:
|List package dependencies
|List package dependencies
|<syntaxhighlight lang="console">$ apt-cache depends emacs</syntaxhighlight>
|<syntaxhighlight lang="console">$ apt-cache depends emacs</syntaxhighlight>
|Show the immediate dependencies:
|Show the direct dependencies:
<syntaxhighlight lang="console">$ nix-store --query --requisites /run/current-system</syntaxhighlight>
<syntaxhighlight lang="console">$ nix-store --query --requisites /run/current-system</syntaxhighlight>
or show a nested ASCII tree of dependencies:
or show a nested ASCII tree of dependencies: