Hallo Leute, aus aktuellem Anlass um das AUR habe ich auf Empfehlung von PinguinTV den alternativen Paketmanager NIX ausprobiert und in ein frisch installiertes Archlinux > Xfce4 eingebunden. Hier sollen dann bis zu 140.000 Pakete zur Verfügung stehen.
Übrigens das Arch habe ich mit der Calam-Arch-Installer.iso von https://sourceforge.net/projects/blue-arch-installer
installiert wenn's jemand mal probieren möchte. Funzt schnell und easy ![]()
NIX-Paketmanager installieren:
---------------------------------------------
sudo pacman -S nix
sudo systemctl enable --now nix-daemon.service
sudo groupadd nix-users
sudo usermod -aG nix-users $USER
newgrp nix-users oder ab und anmelden
Folgende Zeile in deiner .bashrc oder .zshrc einfügen:
----------------------------------------------------------------------------------
export XDG_DATA_DIRS="$HOME/.nix-profile/share:$XDG_DATA_DIRS"
NIX-Konfigdatei erstellen:
--------------------------------------
mkdir -p ~/.config/nix
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
NIX-Paketverfügbarkeit prüfen z.B brave:
------------------------------------------------------------
nix search nixpkgs brave oder https://search.nixos.org/packages
NIX-Pakete installieren z.B brave:
------------------------------------------------
nix profile add nixpkgs#brave
Ich habe mir hierfür einen Alias erstellt: installnix() { nix profile add "nixpkgs#$1"; }
Und dann: installnix brave
NIX-Paket entfernen z.B. brave:
---------------------------------------------
nix profile remove brave
Installierte NIX-Pakete auflisten:
-------------------------------------------------
nix profile list
-> nix profile list
Name: brave
Flake attribute: legacyPackages.x86_64-linux.brave
Original flake URL: github:NixOS/nixpkgs/nixpkgs-unstable
Locked flake URL: github:NixOS/nixpkgs/3e41b24abd260e8f71dbe2f5737d24122f972158?narHash=sha256-rxO%2Buc/KFbSJp%2BpgyXRuAX6QlG9hJdnt0BXpEQRXY%2BU%3D
Store paths: /nix/store/6vi7vrmmssg59iv9r8ixkxh2ghisfxqp-brave-1.91.171
Name: freetube
Flake attribute: legacyPackages.x86_64-linux.freetube
Original flake URL: flake:nixpkgs
Locked flake URL: github:NixOS/nixpkgs/3e41b24abd260e8f71dbe2f5737d24122f972158?narHash=sha256-rxO%2Buc/KFbSJp%2BpgyXRuAX6QlG9hJdnt0BXpEQRXY%2BU%3D
Store paths: /nix/store/92v6xzfzhxc7sjhs7qciqjlb66735gw6-freetube-0.24.1
Name: fresh-editor
Flake attribute: legacyPackages.x86_64-linux.fresh-editor
Original flake URL: flake:nixpkgs
Locked flake URL: github:NixOS/nixpkgs/3e41b24abd260e8f71dbe2f5737d24122f972158?narHash=sha256-rxO%2Buc/KFbSJp%2BpgyXRuAX6QlG9hJdnt0BXpEQRXY%2BU%3D
Store paths: /nix/store/lhgm2m13y7m7jifp473mgr849ahqdga1-fresh-0.3.10
Name: gearlever
Flake attribute: legacyPackages.x86_64-linux.gearlever
Original flake URL: flake:nixpkgs
Locked flake URL: github:NixOS/nixpkgs/3e41b24abd260e8f71dbe2f5737d24122f972158?narHash=sha256-rxO%2Buc/KFbSJp%2BpgyXRuAX6QlG9hJdnt0BXpEQRXY%2BU%3D
Store paths: /nix/store/lg69bsbf4l1jbf887d2pdbmpi44iaq1d-gearlever-3.4.7
Name: kitty
Flake attribute: legacyPackages.x86_64-linux.kitty
Original flake URL: flake:nixpkgs
Locked flake URL: github:NixOS/nixpkgs/3e41b24abd260e8f71dbe2f5737d24122f972158?narHash=sha256-rxO%2Buc/KFbSJp%2BpgyXRuAX6QlG9hJdnt0BXpEQRXY%2BU%3D
Store paths: /nix/store/ibyqlgsq8if9b3ldd213c6p4mamlbp5x-kitty-0.47.4
Name: nixGLIntel
Flake attribute: packages.x86_64-linux.nixGLIntel
Original flake URL: github:nix-community/nixGL
Locked flake URL: github:nix-community/nixGL/b6105297e6f0cd041670c3e8628394d4ee247ed5?narHash=sha256-fbRQzIGPkjZa83MowjbD2ALaJf9y6KMDdJBQMKFeY/8%3D
Store paths: /nix/store/xlf10iiq61h8zrzdis05qgjfy6wnhwcr-nixGLIntel
Display More
Alte Versionen und ungenutzte Abhängigkeiten endgültig löschen:
-------------------------------------------------------------------------------------------------
nix-store --gc
Alle NIX-Pakete aktualisieren:
-------------------------------------------
nix profile upgrade --all
Ich habe mir für ein komplettes Systemupdate einen Alias erstellt: alias updall='nix profile upgrade --all; sudo pacman -Syu'
Und dann: updall