# How to install NIX packages on Debian based systems

**URL:** <https://forum.elivelinux.org/t/how-to-install-nix-packages-on-debian-based-systems/3422>\
**Category:** Elive\
**Created:** [April 6, 2023, 4:51am UTC](https://forum.elivelinux.org/t/how-to-install-nix-packages-on-debian-based-systems/3422 "2023-04-06T04:51:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thanatermesis](https://forum.elivelinux.org/user_avatar/forum.elivelinux.org/thanatermesis/32/3_2.png) [@Thanatermesis](https://forum.elivelinux.org/u/Thanatermesis)\
**Post date:** [April 6, 2023, 4:51am UTC](https://forum.elivelinux.org/t/how-to-install-nix-packages-on-debian-based-systems/3422/1 "2023-04-06T04:51:05Z")

</div>

NIX is probably the most advanced package manager out there, it is very good to manage library dependencies, this means that these packages can run much more likely between upgraded or downgraded systems.

To use them in a Debian based system just run:

> `sh <(curl -L https://nixos.org/nix/install) --no-daemon `

Or, if you want to install things system-wide (multi-users), do instead:

> `sh <(curl -L https://nixos.org/nix/install) --daemon `

Finally, update the packages:

> `nix-channel --update `

That's all, now close the terminal and open a new one.

To install a package, you can go do their [website to search for a specific package](https://search.nixos.org/packages) where is 80k packages available and search for a desired one, click the **nix-env** install option and select the _'Non-NixOS system'_, that's the command you need to run it to install a desired package.

Examples:

> nix-env -iA nixpkgs.flowblade  
> nix-env -iA nixpkgs.sublime4  
> nix-env -iA nixpkgs.neovim  
> nix-env -iA nixpkgs.nodejs  
> nix-env -iA nixpkgs.netsurf  
> nix-env -iA nixpkgs.palemoon  
> nix-env -iA nixpkgs.chromium

Using NIX packages is good if you want to use a specific software that is not available on Debian or if you want to use a more updated version of it

**BONUS** : If you are using Elive, NIX packages are kept among reinstallations :cheerleader:

* * *

_TODO / HELP: This howto is really short but NIX is very powerful, you are welcome to add more contents to this Howto as useful NIX commands or features_

---

<div class="post-metadata">

**Author:** ![triantares](https://forum.elivelinux.org/user_avatar/forum.elivelinux.org/triantares/32/2550_2.png) [@triantares](https://forum.elivelinux.org/u/triantares)\
**Post date:** [April 6, 2023, 6:08am UTC](https://forum.elivelinux.org/t/how-to-install-nix-packages-on-debian-based-systems/3422/2 "2023-04-06T06:08:26Z")

</div>

This is very good :smiley14: ...... hadn't even noticed we didn't have a HowTo.  
The best of 2 worlds.
