User-defined Playground
 by Márk Sági-Kazár

Nix on Ubuntu Playground

Experiment with the Nix package manager, a powerful tool for reproducible and isolated software environments, on Ubuntu.

Nix on Ubuntu playground: Experiment with the Nix package manager, a powerful tool for reproducible and isolated software environments, on Ubuntu.

🎯 Getting Started

Quick Check

Verify Nix is installed:

nix --version

Nix Shell

Start experimenting with Nix by creating a temporary shell with packages:

# Start a shell with Python and Git
nix-shell -p python3 git

# Check what's available in the shell
python3 --version
git --version

# Exit the shell
exit

Package Management

Install Packages

# Install packages to user profile
nix-env -iA nixpkgs.hello
nix-env -iA nixpkgs.git
nix-env -iA nixpkgs.nodejs

# List installed packages
nix-env -q

# Search for packages
nix-env -qaP | grep python

Remove Packages

# Uninstall a package
nix-env -e hello

# Remove all packages from profile
nix-env -e '.*'

📚 Learn More

Happy learning! 🚀