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

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

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
pull/23/head
mrusme 2023-10-21 19:27:49 +00:00 committed by GitHub
parent 3db74e5c67
commit 2fee1dcb9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 63 additions and 0 deletions

16
pages/openbsd/pkg.md Normal file
View File

@ -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
pages/openbsd/pkg_add.md Normal file
View File

@ -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}}`

View File

@ -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 its unused dependencies:
`pkg_delete -a {{package}}`
- Dry-run deletion of a package:
`pkg_delete -n {{package}}`

13
pages/openbsd/pkg_info.md Normal file
View File

@ -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 a list of installed packages for use with `pkg_add -l`:
`pkg_info -mz`