Lädt...

🐧 How exactly is Nix's purely functional package management different from typical package management? And why does it need to be purely functional?


Nachrichtenbereich: 🐧 Linux Tipps
🔗 Quelle: reddit.com

I tried reading the Nix documentation, and honestly a lot of it went over my head. (Not the user manual; the technical stuff). I was hoping someone could explain how it works in simpler terms.

This is what I've got so far:

  • Purely functional package managers treat all packages as immutable values

  • A lot of people claim this eliminates dependency hell

  • All of this has something to do with cryptographic hashes encoding information all of a specific package's dependencies

I assume I'm just completely missing something here, but how exactly is this different from the Gentoo system of slotting different package versions into the same system, and then saving the system state in a world file? I mean aside from the fact that Nix keeps a record of all previous states (in which case, how is it different from Gentoo + world file logs? Or Gentoo, but with snapshotting?)

I've seen suggestions that, whereas most Linux distributions check the behavior of packages to see if something breaks, this never happens with Nix. I think that's the part I'm most unclear on: how does that work? And why would you need a purely functional package manager to implement something like that?

And assuming all of that is true, given that a companies like Red Hat and SUSE shell out oodles money to an upstream distribution principally to make sure their software is stable and doesn't break, how have they not shifted their entire infrastructure to using Nix yet?

submitted by /u/RepresentativePop
[link] [comments] ...

📰 Install and Use Nix Package Manager on non-Nix OS like Ubuntu


📈 37.44 Punkte
🐧 Unix Server

🐧 nix-bundle builds portable binaries (something like appimage binaries) using the nix package manager


📈 36.27 Punkte
🐧 Linux Tipps

🔧 Let’s Code Real World App Using Purely Functional Techniques (in Scala)


📈 33.35 Punkte
🔧 Programmierung

🐧 So, where are the closed-source binary blobs in Linux exactly and what do they exactly do.


📈 31.08 Punkte
🐧 Linux Tipps

🔧 Easy development environments with Nix and Nix flakes!


📈 30.65 Punkte
🔧 Programmierung

🔧 Getting started with Nix and Nix Flakes


📈 30.65 Punkte
🔧 Programmierung

🐧 What are your guys thoughts about nix (not nix os)?


📈 29.48 Punkte
🐧 Linux Tipps

🐧 Zero to Nix, an unofficial, opinionated, gentle introduction to Nix


📈 29.48 Punkte
🐧 Linux Tipps

🐧 NUR (Nix User Repository): User contributed nix packages


📈 29.48 Punkte
🐧 Linux Tipps

🐧 Why is Nix relatively unheard of even after such outstanding package management?


📈 28.19 Punkte
🐧 Linux Tipps

📰 What, exactly, is cybersecurity? And why does it matter?


📈 27.4 Punkte
📰 IT Nachrichten

🔧 How Long Does a Typical Data Migration Project Take?


📈 26.74 Punkte
🔧 Programmierung

📰 Inside GPT — II. Why exactly does your prompt matter?


📈 26.22 Punkte
🔧 AI Nachrichten

🐧 Need help, but not the typical type


📈 25.46 Punkte
🐧 Linux Tipps

🐧 Could linux be used purely as a Virtual Machine and still be great?


📈 23.99 Punkte
🐧 Linux Tipps

🐧 Why different Repo for different version


📈 23.15 Punkte
🐧 Linux Tipps

🔧 What Exactly is the Cloud and How Does it Work?


📈 23.06 Punkte
🔧 Programmierung

🔧 How does Fetch works exactly?, and how can I use GET method with parameters?


📈 23.06 Punkte
🔧 Programmierung

🐧 Could you suggest software to package for testing different package formats?


📈 22.99 Punkte
🐧 Linux Tipps

matomo