FreeBSD -- pkg tips and tricks
This commit is contained in:
parent
387420d750
commit
6f08e0850d
1 changed files with 29 additions and 0 deletions
|
@ -65,3 +65,32 @@ Since FreeBSD 14, FreeBSD has excellent support for Wireguard VPNs. I just had t
|
|||
wireguard_enable="YES"
|
||||
wireguard_interfaces="wg0"
|
||||
```
|
||||
|
||||
# `pkg` package manager
|
||||
|
||||
During my adventures I stumbled upon some useful commands for the builtin `pkg` package manager that I feel like could be useful to others.
|
||||
|
||||
Reinstall all packages from the repository (in case you want to sync your system state to the repositories, including downgrading packages if needed, similar to Arch's `pacman -Suu`):
|
||||
```
|
||||
pkg upgrade -f
|
||||
```
|
||||
|
||||
Show packages that depend on the given package (reverse dependencies):
|
||||
```
|
||||
pkg info -r PACKAGE
|
||||
```
|
||||
|
||||
Show dependencies of a given package:
|
||||
```
|
||||
pkg info -d PACKAGE
|
||||
```
|
||||
|
||||
Install a package from a given repository:
|
||||
```
|
||||
pkg install -r REPOSITORY PACKAGE
|
||||
```
|
||||
|
||||
Update the system from a given repository:
|
||||
```
|
||||
pkg upgrade -r REPOSTIORY
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue