freebsd, netbsd: add directory; pkg, pkgin: add page (#11313)

* freebsd: add directory; pkg: add page

* netbsd: add directory; pkgin: add page

* pkg, pkgin: move install and remove examples to the top

* pkgin: add backticks `pkgsrc`

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
pull/23/head
Lena 2023-10-29 03:42:56 +01:00 committed by GitHub
parent 1e4061a495
commit 28a74a924c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 56 additions and 0 deletions

28
pages/freebsd/pkg.md Normal file
View File

@ -0,0 +1,28 @@
# pkg
> FreeBSD package manager.
> More information: <https://man.freebsd.org/cgi/man.cgi?query=pkg&sektion=8>.
- Install a new package:
`pkg install {{package}}`
- Delete a package:
`pkg delete {{package}}`
- Upgrade all packages:
`pkg upgrade`
- Search for a package:
`pkg search {{keyword}}`
- List installed packages:
`pkg info`
- Remove unneeded dependencies:
`pkg autoremove`

28
pages/netbsd/pkgin.md Normal file
View File

@ -0,0 +1,28 @@
# pkgin
> Manage `pkgsrc` binary packages on NetBSD.
> More information: <https://pkgin.net/#usage>.
- Install a package:
`pkgin install {{package}}`
- Remove a package and its dependencies:
`pkgin remove {{package}}`
- Upgrade all packages:
`pkgin full-upgrade`
- Search for a package:
`pkgin search {{keyword}}`
- List installed packages:
`pkgin list`
- Remove unneeded dependencies:
`pkgin autoremove`