To Update FreeBSD sofware package and apply security patches, please follow the following step
Step 1: Upgrade FreeBSD ports collection
1 2 | # portsnap fetch # portsnap extract |
step 2: install FreeBSD portmanager
1 2 | # cd /usr/ports/ports-mgmt/portmanager # make install clean |
Step 3: Check outdated ports list
1 | # pkg_version -vIL= |
Step 4: Update FreeBSD packages / software
1 | portmanager -u -l |
How do I apply update again?
In order to update system again just type the following command:
1 2 3 | # portsnap fetch # portsnap update # portmanager -u -l |
How do I apply binary security updates for FreeBSD?
Latest version includes a tool called freebsd-update (thanks to Bok for pointing out this tool). The freebsd-update tool is used to fetch, install, and rollback binary updates to the FreeBSD base system.
1 | Fetch updates |
Use fetch option to get all available binary updates:
1 | # freebsd-update fetch |
Install Update
Install the most recently fetched updates:
1 | # freebsd-update install |
Rollback updates
Optional: You can uninstall most recently installed updates:
1 | # freebsd-update rollback |
Ref: www.cyberciti.biz