Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openbsd: add directory; openbsd/pkg_{add,info,delete}: add page #10698

Merged
merged 4 commits into from
Oct 21, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pages/openbsd/pkg.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# pkg

> OpenBSD package manager utility.
> More information: <https://www.openbsd.org/faq/faq15.html>.

- View documentation for installing/updating packages:

`tldr pkg_add`

- View documentation for removing packages:

`tldr pkg_delete`

- View documentation for viewing information about packages:

`tldr pkg_info`
17 changes: 17 additions & 0 deletions pages/openbsd/pkg_add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# 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}}`
17 changes: 17 additions & 0 deletions pages/openbsd/pkg_delete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# pkg_delete

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

- Delete a package:

`pkg_delete {{package}}`

- Delete a package, including it's unused dependencies:
kbdharun marked this conversation as resolved.
Show resolved Hide resolved

`pkg_delete -a {{package}}`

- Dry-run deletion of a package:

`pkg_delete -n {{package}}`
13 changes: 13 additions & 0 deletions pages/openbsd/pkg_info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# pkg_info

> View information about packages in OpenBSD.
> See also: `pkg_add`, `pkg_delete`.
> More information: <https://man.openbsd.org/pkg_info>.

- Search for a package using the package name:

`pkg_info -Q {{package}}`

- Output list of installed packages for use with `pkg_add -l {{list}}`:
kbdharun marked this conversation as resolved.
Show resolved Hide resolved

`pkg_info -mz`