# Pkgsrc lets you build a separate userland in your home directory

Original title: Pkgsrc Is Cool (2022)

> Hacker News story 49694311 · language: en · submitted 2026-09-14
> Web version: https://zeli.app/story/49694311
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 32 · by [Tomte](<https://news.ycombinator.com/user?id=Tomte>) · 💬 10
[original](<https://www.wisellama.rocks/posts/2021-12-23-pkgsrc-is-cool/>) · [HN discussion](<https://news.ycombinator.com/item?id=49694311>)

## Summary

Pkgsrc is NetBSD's package manager that works on Linux, Mac, and Solaris. It builds packages from source, installs them into an isolated tree like /usr/pkg, and supports unprivileged mode so you can create a personal userland in ~/pkg. The author explains how this keeps the base system clean and enables offline builds from a local distfile mirror.

## Key quote

> I realize this is a weird almost 'prepper' doomsday mentality, but I really wanted to be able to install software locally on my own network.

## HN discussion (10 comments)

### [Tractor8626](<https://news.ycombinator.com/item?id=49698269>)

> \> I don't know how to make debs and rpms
>
> There is tool called nfpm for easy package creation.

### [throw0101a](<https://news.ycombinator.com/item?id=49695229>)

> In a similar vein, Spack and Easybuild are similar (more recent) build systems which are often used in the HPC space.
>
> \* https://spack.io
>
> \* https://easybuild.io

### [bionsystem](<https://news.ycombinator.com/item?id=49694833>)

> It is. Probably an even greater gift to earth from the NetBSD community than NetBSD itself. The ability to run recent packages on most arch without them forcing you to use NetBSD, but allowing you to keep the original OS in many cases if you want, is mind-blowing.

---

## Cite

- Page: https://zeli.app/story/49694311
- Date: 2026-09-14
- Source: wisellama.rocks (https://www.wisellama.rocks/posts/2021-12-23-pkgsrc-is-cool/)
- Hacker News: https://news.ycombinator.com/item?id=49694311

## Other languages

- zh: https://zeli.app/zh/story/49694311 · markdown: https://zeli.app/zh/story/49694311.md
- ja: https://zeli.app/ja/story/49694311 · markdown: https://zeli.app/ja/story/49694311.md
- ko: https://zeli.app/ko/story/49694311 · markdown: https://zeli.app/ko/story/49694311.md
- de: https://zeli.app/de/story/49694311 · markdown: https://zeli.app/de/story/49694311.md
- es: https://zeli.app/es/story/49694311 · markdown: https://zeli.app/es/story/49694311.md
- ru: https://zeli.app/ru/story/49694311 · markdown: https://zeli.app/ru/story/49694311.md
