From 98c99b155878d9b5dd9dd9aa823defa4ce438b64 Mon Sep 17 00:00:00 2001 From: Ruben Vereecken Date: Mon, 25 Jan 2016 00:15:17 +0100 Subject: [PATCH] Formatted and cut away 3 examples from nix-env --- pages/common/nix-env.md | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/pages/common/nix-env.md b/pages/common/nix-env.md index eb00ce4a33..0226bfb050 100644 --- a/pages/common/nix-env.md +++ b/pages/common/nix-env.md @@ -1,39 +1,27 @@ # nix-env -> Manipulate or query Nix user environments +> Manipulate or query Nix user environments. -- Show available package with name or without name +- Show available package with name or without name: `nix-env -qa {{pkg_name}}` -- Show the status of available packages +- Show the status of available packages: -`nix-env -qas` +`nix-env -qas` -- Install package +- Install package: `nix-env -i {{pkg_name}}` -- Uninstall package +- Uninstall package: `nix-env -e {{pkg_name}}` -- Upgrade one package +- Upgrade one package: `nix-env -u {{pkg_name}}` -- Upgrade all packages +- Upgrade all packages: `nix-env -u` - -- Rollback changes - -`nix-env --rollback` - -- List all profiles - -`nix-env --list-generations` - -- Switch to specific profile - -`nix-env --switch-generation {{profile_number}}`