FreeBSD update software and apply security patch

21 Жов

Upgrade FreeBSD ports collection

Run portsnap as follows:
portsnap fetch update
portsnap fetch
portsnap update

Display outdated ports list

You can list outdated ports list with pkg_version command:
pkg_version -vIL=

Update FreeBSD packages / software

Now run portmanager to upgrade installed ports:
portmanager -u -l

How do I upgrade a single software only?

portmanager allows you to update a single port and all of its dependencies. For example update port called bash i.e. bash shell (shells/bash), enter:
portmanager shells/bash -l -u

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.
Fetch updates

Use fetch option to get all available binary updates:
freebsd-update fetch

Install updates

Install the most recently fetched updates:
freebsd-update install

1 Response to FreeBSD update software and apply security patch



14 Лютого, 2009 at 16:45

Install a tool that with a little script of my own will help make choosing the fastest cvs server on the Internet for us so that downloading the sources take as little time as possible:

cd /usr/ports/sysutils/fastest_cvsup make install clean SERVER=`fastest_cvsup -q -c ua` cvsup -h $SERVER supfile

# Now let's update the ports database...

/usr/local/sbin/portsdb -Uu

# Now let's see how badly we're out of date...

/usr/local/sbin/portversion -vl "<"

Comment Form