Software Alternatives, Accelerators & Startups

Nix VS pkgsrc

Compare Nix VS pkgsrc and see what are their differences

Nix logo Nix

All-in-one digital toolbox. No monthly fees.

pkgsrc logo pkgsrc

pkgsrc is a framework for building over 17,000 open source software packages.
  • Nix Landing page
    Landing page //
    2024-04-09
  • pkgsrc Landing page
    Landing page //
    2023-06-30

Nix features and specs

  • Reproducibility
    Nix ensures that your builds are reproducible by deploying dependencies in isolation. This allows for consistent results across different environments and reduces the 'works on my machine' problem.
  • Declarative Configuration
    Nix uses a declarative approach to configuration, which means you specify what you want the environment to look like, and Nix takes care of setting it up. This simplifies environment management and version control.
  • Cross-Platform Compatibility
    Nix is designed to work across multiple platforms, including Linux and macOS, making it a versatile tool for developers working in diverse environments.
  • Isolation of Dependencies
    By storing dependencies in isolation, Nix prevents version conflicts and ensures that different projects do not interfere with each other's dependencies.
  • Efficient Storage
    Nix uses a unique storage mechanism that avoids duplication of dependencies, even when used by multiple projects, thus saving disk space.

Possible disadvantages of Nix

  • Steep Learning Curve
    Nix has a steep learning curve due to its unique model of package management, which may be unfamiliar to new users and requires time and effort to master.
  • Limited GUI Support
    Nix primarily operates through the command-line interface, with limited graphical user interface support, which may be challenging for users accustomed to GUI-based tools.
  • Complexity
    Because of its powerful capabilities, Nix can be quite complex to set up and configure, especially for large projects with many dependencies.
  • Performance Overhead
    The process of building and managing isolated environments in Nix can introduce some performance overhead, particularly during initial setup and configuration.
  • Community and Support
    While Nix has a dedicated user base, it might not have as large a community or as many support resources as more established package management systems.

pkgsrc features and specs

  • Cross-Platform Support
    pkgsrc is designed to be a portable package management system and can be used on a variety of Unix-like operating systems, including NetBSD, Solaris, Linux, and macOS. This cross-platform capability makes it a versatile tool for developers working in diverse environments.
  • Consistency Across Systems
    Using pkgsrc allows for a consistent package management experience regardless of the underlying operating system, reducing the learning curve and maintenance overhead for administrators managing multiple systems.
  • Comprehensive Package Collection
    pkgsrc offers a wide range of software packages, providing a robust collection that can meet diverse user needs from scientific libraries to web applications.
  • Quarterly Releases
    With quarterly releases, pkgsrc provides a balanced approach between stability and keeping software up to date, offering users new features regularly while maintaining reliability.
  • Flexible Build Options
    pkgsrc supports a flexible build system, allowing users to customize package builds with specific options or dependencies, tailored to their specific needs or system requirements.

Possible disadvantages of pkgsrc

  • Smaller Community
    Compared to other popular package management systems like apt (Debian/Ubuntu) or yum (RedHat/CentOS), pkgsrc has a relatively smaller community, which might affect the availability of support and community-driven improvements.
  • Potentially Older Software
    While pkgsrc maintains stable quarterly releases, it may occasionally lag behind other systems in terms of offering the very latest versions of certain software, which might not be ideal for users needing the newest features.
  • Manual Configuration
    Setting up pkgsrc might require manual interventions and configurations, which could pose a hurdle for users unfamiliar with its setup process or those who prefer more automated solutions.
  • Dependency Management
    Although pkgsrc is quite capable in dependency handling, some users may find its dependency resolution to be less automatic or seamless compared to other systems which offer more integrated solutions.
  • Performance Overhead
    Because it is designed to be cross-platform, there can be some performance overhead associated with using pkgsrc compared to native package managers that are optimized for specific operating systems.

Nix videos

Nix Complete Lice Treatment Kit For Hair and Home, Multi (Full Review)

More videos:

  • Review - Nix Mini 3 Test and Review - 16 Colours / 4 Brands
  • Review - NIX (2022) Review | UNDERRATED Low-Budget Fun!

pkgsrc videos

pkgsrc on ChromeOS

More videos:

  • Review - Using pkgsrc for multi-platform deployments in heterogeneous environments, G Clifford Williams

Category Popularity

0-100% (relative to Nix and pkgsrc)
Developer Tools
35 35%
65% 65
Package Manager
34 34%
66% 66
Productivity
39 39%
61% 61
Front End Package Manager

User comments

Share your experience with using Nix and pkgsrc. For example, how are they different and which one is better?
Log in or Post with

Social recommendations and mentions

Based on our record, pkgsrc seems to be a lot more popular than Nix. While we know about 11 links to pkgsrc, we've tracked only 1 mention of Nix. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

Nix mentions (1)

pkgsrc mentions (11)

  • Debian isn't waiting for 2038 to blow up, switches to 64-bit time for everything
    > Most open source software packages are also compiled for BSD variants, they switched to 64 bit time_t a long time ago and reported back upstream any problems. * NetBSD in 2012: https://www.netbsd.org/releases/formal-6/NetBSD-6.0.html * OpenBSD in 2014: http://www.openbsd.org/55.html For packaging, NetBSD uses their (multi-platform) Pkgsrc, which has 29,000 packages, which probably covers a large swath of... - Source: Hacker News / 12 months ago
  • Our Audit of Homebrew
    > https://pkgsrc.smartos.org/install-on-macos/ Note that Pkgsrc is a NetBSD-derived project. * https://pkgsrc.org The Joyent folks leveraged it to allow their customers, who were perhaps not as familiar with Solaris/SmartOS, a larger pool of packages. Pkgsrc was running on Solaris before Joyent, Joyent built on top of it. - Source: Hacker News / almost 2 years ago
  • Show HN: Brioche โ€“ A new Nix-like package manager
    Https://pkgsrc.org/ from netbsd runs on many systems. - Source: Hacker News / about 2 years ago
  • Installing packages without an internet connection?
    It seems according to pkgsrc.org that pkgin might follow the PKG_PATH environment variable. You're supposed to set PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.)/All/", and according to uname(1), -p gives the processor architecture and -r gives the operating system [kernel] release. Source: over 3 years ago
  • pkgsrc.se is no more :(
    It seems like pkgsrc.org hasnโ€™t got the news yet. Source: over 3 years ago
View more

What are some alternatives?

When comparing Nix and pkgsrc, you can also consider the following products

Conda - Binary package manager with support for environments.

Portage - Portage is source-based package manager used by Gentoo and its descendants. It controls all process from fetching source through building it, installing into clean environment to "merging" with already installed software.

Homebrew - The missing package manager for macOS

Yay - Yay is an AUR helper written in go, based on the design of yaourt, apacman and pacaur.

Docker - Docker is an open platform that enables developers and system administrators to create distributed applications.

DPKG (Debian Package Manager) - dpkg is the core of package management in Debian-based Linux distributions. it has multiple front ends like apt or aptitude that extend dpkgs usability and features