LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pkg-add

Install packages on OpenBSD and NetBSD

TLDR

Install package from repository
$ pkg_add [package]
copy
Install specific package file
$ pkg_add [/path/to/package.tgz]
copy
Install from URL
$ pkg_add [https://example.com/package.tgz]
copy
Install with verbose output
$ pkg_add -v [package]
copy

SYNOPSIS

pkg_add [options] pkg...

DESCRIPTION

pkg_add installs software packages on OpenBSD and NetBSD systems. It handles dependencies, downloads packages from mirrors, and configures installed software.BSD's traditional package manager.

PARAMETERS

-v

Verbose mode.
-D
Force installation.
-I
Non-interactive mode.
-u
Update mode.
-n
Dry run.
-r
Replace existing.

EXAMPLES

$ # Install package
pkg_add vim

# Update package
pkg_add -u vim

# Install from mirror
export PKG_PATH=https://cdn.openbsd.org/pub/OpenBSD/$(uname -r)/packages/$(uname -m)/
pkg_add firefox

# Verbose install
pkg_add -v nginx
copy

ENVIRONMENT

$ PKG_PATH  # Package repository URL
PKG_CACHE # Local cache directory
copy

INSTALL

nix profile install nixpkgs#pkg
copy

CAVEATS

OpenBSD/NetBSD specific. Set PKGPATH for remote installs. Use pkginfo to list packages.

HISTORY

pkg_add is part of the OpenBSD and NetBSD package tools, providing simple package management since the 1990s.

SEE ALSO

pkg(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid