PDA

View Full Version : Nix package manager



scooper
December 26th, 2008, 11:41 PM
Linux.com article (http://www.linux.com/feature/155922)
Nix home page (http://nixos.org)

Is there any work being done to take Ubuntu package management to the next level?

The Nix universal package manager sounds like an intriguing solution. It allows multiple concurrent versions of different packages and their dependencies, avoiding backward compatibility issues. Installing one bleeding edge package will never affect existing working packages by dragging in new libraries with subtle (or not) incompatibilities.

Nix can install binaries or source, if binaries are unavailable.

I would guess that one downside is disk usage. Another might be that it could be harder to upgrade a library which is used by multiple packages. Are there any other downsides?

What do you all think? Couldn't this change the whole Ubuntu strategy of disjoint releases?

Cheers.

InfinityCircuit
December 27th, 2008, 05:10 AM
No. http://lists.debian.org/debian-devel/2008/12/msg01027.html

DeadSuperHero
December 27th, 2008, 05:53 AM
Well, there goes any hopes and dreams I had about Nix, for now anyways.

SunnyRabbiera
December 27th, 2008, 06:32 AM
Well even though yes I agree that possibly a new package management/installer system is due for linux practically none of them have it right.
We need something that doesnt need pependencies or is hard to work with, this is why I like BSD's new package manager system and wish it would be ported over to linux sooner or later.
But it might break the compatibility we need.

jrusso2
December 27th, 2008, 06:43 AM
There are certain laws of physics like perpetual motion that never can be broken. I guess package managers are the same thing unless they have a distro designed to use a new one.

SunnyRabbiera
December 27th, 2008, 06:46 AM
There are certain laws of physics like perpetual motion that never can be broken. I guess package managers are the same thing unless they have a distro designed to use a new one.

Indeed, I sort of look forward to a linux distro based on BSD packages, I am sure it can be done.

InfinityCircuit
December 27th, 2008, 08:38 AM
You might be interested in checking out CRUX's Ports setup. They just released a new version, 2.5, earlier this month.

Anzan
December 28th, 2008, 06:09 PM
No. http://lists.debian.org/debian-devel/2008/12/msg01027.html

Agreed. No.

APT is an incredible packaging system. See the man pages for

apt-cache, apt-get, apt.conf, sources.list, apt-secure

Eisenwinter
December 28th, 2008, 08:26 PM
pacman (http://www.archlinux.org) takes all.

InfinityCircuit
December 28th, 2008, 10:41 PM
More reference papers for the original subject:
http://upsilon.cc/~zack/research/publications/hotswup-package-upgrade.pdf
http://www.st.ewi.tudelft.nl/~dolstra/pubs/atomic-hotswup2008-submitted.pdf

I don't think this forum needs another stupid war between Dpkg and whatever Arch uses, but for those who do advocate Pacman: Nix obviously has some unique advantages, but they aren't worth the cost of the switch, since those advantages come with weaknesses. That's why this thread is interesting. On the other hand, does Pacman have actual advantages over Dpkg, other than supposedly lowering the barrier to make it easy to build packages? Does it try to implement some innovative new approach to package management?

jyaan
December 28th, 2008, 11:29 PM
I've used apt-get (obviously), pacman and portage, and they are all pretty good. I suppose that I liked portage the best just because of the powerful things you can do with it (eg. I'm not interested in having this dependency). However, I did eventually get tired of having to build everything from source, yet I still miss Gentoo sometimes. :( It's a really awesome place to be for a programmer since it makes source code incredibly easy to obtain.

Anyways, a universal package manager would be nice, but it's probably not coming any time soon. Distros tend to store things in different places, and that can make things rather messy.

Anzan
December 29th, 2008, 06:33 PM
InfinityCircuit, thanks for the PDF links. I'll review in more detail later.

jyaan, I'm just experimenting with portage on a fitPC that came with a dual-boot of Ubuntu and Gentoo.* The Gentoo has KDE already built so I'm working on setting up Fluxbox with the GTK apps I use. It's very interesting learning what works and does not... yet.

But it also makes me appreciate all of the wonderful work that Debian developers have put into dpkg, APT, apt-get and Synaptic.

----
* Ha ha ha. Amazing that anyone did this.