HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pkg_add — Install/update packages in OpenBSD. See also: `pkg_info`, `pkg_delete`. More information: <https://m

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandupdateinstallopenbsdpkg_addcliseepackages

Problem

How to use the pkg_add command: Install/update packages in OpenBSD. See also: pkg_info, pkg_delete. More information: <https://man.openbsd.org/pkg_add>.

Solution

pkg_add — Install/update packages in OpenBSD. See also: pkg_info, pkg_delete. More information: <https://man.openbsd.org/pkg_add>.

Update all packages, including dependencies:
pkg_add -u


Install a new package:
pkg_add {{package}}


Install packages from the raw output of pkg_info:
pkg_add -l {{path/to/file}}

Code Snippets

Update all packages, including dependencies

pkg_add -u

Install a new package

pkg_add {{package}}

Install packages from the raw output of `pkg_info`

pkg_add -l {{path/to/file}}

Context

tldr-pages: openbsd/pkg_add

Revisions (0)

No revisions yet.