User Tools

Site Tools


howto:languages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
howto:languages [2023/09/14 17:10] – Change tutorial ordering andrewfergusonhowto:languages [2024/02/23 11:05] (current) tcmal
Line 7: Line 7:
 <code> <code>
 # install 'hello' from nixpkgs # install 'hello' from nixpkgs
-$ nix-env -iA nixpkgs.hello  +$ nix profile install nixpkgs#hello 
-installing 'hello-2.12.1'+
 $ hello  $ hello 
 Hello, world! Hello, world!
Line 14: Line 13:
  
 # see everything installed for the current user # see everything installed for the current user
-$ nix-env -q  +$ nix profile list 
-hello-2.12.1+0 flake:nixpkgs#legacyPackages.x86_64-linux.hello github:NixOS/nixpkgs/98b00b6947a9214381112bdb6f89c25498db4959#legacyPackages.x86_64-linux.hello /nix/store/63l345l7dgcfz789w1y93j1540czafqh-hello-2.12.1
  
 # uninstall 'hello'. note no 'nixpkgs.' this time # uninstall 'hello'. note no 'nixpkgs.' this time
-$ nix-env --uninstall hello+$ nix profile remove 0 
 +removing 'flake:nixpkgs#legacyPackages.x86_64-linux.hello'
 </code> </code>
  
howto/languages.txt · Last modified: 2024/02/23 11:05 by tcmal