Boris Mann

Open Source. Community. Decentralized Web. Building dev tools at Fission. Cooks & eats.

Home

Pkgsrc

  • Last Edit:

NetBSD package manager, 20K+ packages, works on ChromeOSChromeOS
[[ChromeOS]] is the operating system, based on Gentoo Linux, that runs on Chromebooks.
Since I’ve been using Chromebooks since before they supported Linux natively, there are a variety of notes here related to using ChromeOS “natively” by putting your Chromebook into developer mode.
Today, you should use [[ChromeOS Linux Support]] instead. This is similar to how [[WSL]] works on Windows.

pkgsrc on ChromeOS

Presentation at FOSDEM 2018: https://docs.google.com/presentation/d/e/2PACX-1vSk7dCv8sNycDkuaHi-vmxZpVjrGLOYbLRXkDW2s9nMrR4a_UGsMsl_GOHi4NOpsOtzpZMp_4U5k7zH/pub?slide=id.p

By https://github.com/bsiegert

  1. Bootstrap with Chromebrew to get gcc then other packages can be installed from source.

crew install gcc linuxheaders

  1. Download tarball http://ftp.netbsd.org/pub/pkgsrc/current/

  2. Extract in /usr/local

  3. Set SH and Run bootstrap

export SH=/bin/bash

cd /usr/local/pkgsrc/bootstrap

./bootstrap \
--unprivileged \
--prefix /usr/local/pkg \
--varbase /usr/local/pkg/var \
--pkgdbdir /usr/local/pkg/pkgdb \
--cwrappers=no \
--prefer-pkgsrc=yes \
--make-jobs=6

Currently errors:

sed: -e expression #15, char 34: e/r/w commands disabled in sandbox mode

Had this same issue elsewhere (installing emacs), and installed chromebrew’s sed version, crew install sed. Didn’t work here, likely have to give it the path to chromebrew’s sed.