From b9f6aef90dfc5de39ec60ecab9726c2cac0c9eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9E=E3=83=AA=E3=82=A6=E3=82=B9?= Date: Fri, 8 Sep 2023 17:29:42 -0500 Subject: [PATCH 1/4] openbsd: pkg_add, pkg_info, pkg_delete --- pages/openbsd/pkg_add.md | 17 +++++++++++++++++ pages/openbsd/pkg_delete.md | 17 +++++++++++++++++ pages/openbsd/pkg_info.md | 13 +++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 pages/openbsd/pkg_add.md create mode 100644 pages/openbsd/pkg_delete.md create mode 100644 pages/openbsd/pkg_info.md diff --git a/pages/openbsd/pkg_add.md b/pages/openbsd/pkg_add.md new file mode 100644 index 00000000000000..8ab895c077a961 --- /dev/null +++ b/pages/openbsd/pkg_add.md @@ -0,0 +1,17 @@ +# pkg_add + +> OpenBSD package manager utility. +> Search for packages using `pkg_info`, remove packages using `pkg_delete`. +> More information: . + +- 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 {{file}}` diff --git a/pages/openbsd/pkg_delete.md b/pages/openbsd/pkg_delete.md new file mode 100644 index 00000000000000..3f12deb9991d6e --- /dev/null +++ b/pages/openbsd/pkg_delete.md @@ -0,0 +1,17 @@ +# pkg_delete + +> OpenBSD package manager utility. +> Add packages using `pkg_add`, search for packages using `pkg_info`. +> More information: . + +- Delete package: + +`pkg_delete {{package}}` + +- Delete package, including unused dependencies: + +`pkg_delete -a {{package}}` + +- Dry-run deletion of package: + +`pkg_delete -n {{package}}` diff --git a/pages/openbsd/pkg_info.md b/pages/openbsd/pkg_info.md new file mode 100644 index 00000000000000..2732b0e0b40594 --- /dev/null +++ b/pages/openbsd/pkg_info.md @@ -0,0 +1,13 @@ +# pkg_info + +> OpenBSD package manager utility. +> Add packages using `pkg_add`, remove packages using `pkg_delete`. +> More information: . + +- Search for package using package name: + +`pkg_info -Q {{package}}` + +- Output list of installed packages for use with `pkg_add -l {{list}}`: + +`pkg_info -mz` From a9fbefe9ceedbe7d1525210286edf89085bf1c9f Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Tue, 26 Sep 2023 09:24:50 +0530 Subject: [PATCH 2/4] openbsd/pkg: add page --- pages/openbsd/pkg.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/openbsd/pkg.md diff --git a/pages/openbsd/pkg.md b/pages/openbsd/pkg.md new file mode 100644 index 00000000000000..2dac503c63f3fa --- /dev/null +++ b/pages/openbsd/pkg.md @@ -0,0 +1,16 @@ +# pkg + +> OpenBSD package manager utility. +> More information: . + +- 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` From 1250b38be2859120d4a6d790d0a5b0e7d16d5c39 Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Sat, 21 Oct 2023 21:53:13 +0530 Subject: [PATCH 3/4] Apply suggestions from code review --- pages/openbsd/pkg_add.md | 6 +++--- pages/openbsd/pkg_delete.md | 10 +++++----- pages/openbsd/pkg_info.md | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pages/openbsd/pkg_add.md b/pages/openbsd/pkg_add.md index 8ab895c077a961..7f7622a04e494c 100644 --- a/pages/openbsd/pkg_add.md +++ b/pages/openbsd/pkg_add.md @@ -1,7 +1,7 @@ # pkg_add -> OpenBSD package manager utility. -> Search for packages using `pkg_info`, remove packages using `pkg_delete`. +> Install/update packages in OpenBSD. +> See also: `pkg_info`, `pkg_delete`. > More information: . - Update all packages, including dependencies: @@ -14,4 +14,4 @@ - Install packages from the raw output of `pkg_info`: -`pkg_add -l {{file}}` +`pkg_add -l {{path/to/file}}` diff --git a/pages/openbsd/pkg_delete.md b/pages/openbsd/pkg_delete.md index 3f12deb9991d6e..eac24608f4ef9a 100644 --- a/pages/openbsd/pkg_delete.md +++ b/pages/openbsd/pkg_delete.md @@ -1,17 +1,17 @@ # pkg_delete -> OpenBSD package manager utility. -> Add packages using `pkg_add`, search for packages using `pkg_info`. +> Remove packages in OpenBSD. +> See also: `pkg_add`, `pkg_info`. > More information: . -- Delete package: +- Delete a package: `pkg_delete {{package}}` -- Delete package, including unused dependencies: +- Delete a package, including it's unused dependencies: `pkg_delete -a {{package}}` -- Dry-run deletion of package: +- Dry-run deletion of a package: `pkg_delete -n {{package}}` diff --git a/pages/openbsd/pkg_info.md b/pages/openbsd/pkg_info.md index 2732b0e0b40594..28d378131a0030 100644 --- a/pages/openbsd/pkg_info.md +++ b/pages/openbsd/pkg_info.md @@ -1,10 +1,10 @@ # pkg_info -> OpenBSD package manager utility. -> Add packages using `pkg_add`, remove packages using `pkg_delete`. +> View information about packages in OpenBSD. +> See also: `pkg_add`, `pkg_delete`. > More information: . -- Search for package using package name: +- Search for a package using the package name: `pkg_info -Q {{package}}` From 25cfb217279da58b9ae8fdef12f21318cd4efde7 Mon Sep 17 00:00:00 2001 From: "K.B.Dharun Krishna" Date: Sat, 21 Oct 2023 22:34:41 +0530 Subject: [PATCH 4/4] Apply suggestions from code review Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com> --- pages/openbsd/pkg_delete.md | 2 +- pages/openbsd/pkg_info.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/openbsd/pkg_delete.md b/pages/openbsd/pkg_delete.md index eac24608f4ef9a..7f42c73d34966e 100644 --- a/pages/openbsd/pkg_delete.md +++ b/pages/openbsd/pkg_delete.md @@ -8,7 +8,7 @@ `pkg_delete {{package}}` -- Delete a package, including it's unused dependencies: +- Delete a package, including its unused dependencies: `pkg_delete -a {{package}}` diff --git a/pages/openbsd/pkg_info.md b/pages/openbsd/pkg_info.md index 28d378131a0030..f6f82de3e374d0 100644 --- a/pages/openbsd/pkg_info.md +++ b/pages/openbsd/pkg_info.md @@ -8,6 +8,6 @@ `pkg_info -Q {{package}}` -- Output list of installed packages for use with `pkg_add -l {{list}}`: +- Output a list of installed packages for use with `pkg_add -l`: `pkg_info -mz`