Package lifecycle
pkg search nginx
pkg install -n nginx
pkg audit -F
pkg upgrade -n- -n previews changes for install/upgrade.
- pkg audit -F refreshes vulnerability data and audits installed packages.
Install, upgrade, audit and remove third-party software while understanding binary packages versus source-based ports.
pkg is the normal operational choice for prebuilt third-party software. It maintains package metadata, dependencies and repositories.
The Ports Collection provides source-build recipes and configurable build options. Mixing ad-hoc ports builds with repository packages requires care because dependency choices can diverge.
pkg search nginx
pkg install -n nginx
pkg audit -F
pkg upgrade -nGoal: Install curl, inspect its metadata and remove it cleanly.
pkg install -n curlpkg install -y curl
pkg info curl
which curlpkg audit -F || true
pkg delete -y curlPackage hygiene is part of system security and reproducibility.
Open each answer only after you have tried to answer the question yourself.
Compares installed packages with repository versions and upgrades as required.
Refreshes vulnerability data and checks installed third-party packages.
To see dependency and removal consequences before modifying a production host.
Progress is saved in this browser immediately. When you sign in to My Learning, it can also sync across devices.
Attempt the core lab and knowledge checks before marking the module complete.