---
syntax: markdown
tags: [tldr, freebsd]
source: https://github.com/tldr-pages/tldr.git
---
# pkg

> FreeBSD package manager.
> More information: <https://man.freebsd.org/cgi/man.cgi?pkg>.

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