Updating FreeBSD 8.1

After the box that was hosting the old FreeBSD box (version 6.x) finally gave up the ghost and knowing that I wanted to skip 7.x, I just finished a fresh install of 8.1. After setting up my accounts the next step is updating and patching. All material comes from the FreeBSD Handbook.

FreeBSD Update
This updates source, world and kernel.

  • I choose to use the defaults in /etc/freebsd-update.conf
  • Fetch the updates freebsd-update fetch
  • Apply the updates freebsd-update install
  • Reboot the systems shutdown -r now

If a rollback is needed the freebsd-update rollback

Updating Ports Collections

  • Download updated ports portsnap fetch
  • The first time portsnap is executed, you have to use extract to install the downloaded files. portsnap extract
  • Rest of the time portsnap update is OK.

Upgrading Ports
pkgdb -aF
portupgrade -ay

Updating Documentation Sources
cvsup -h cvsup1.us.FreeBSD.org -g -L 2 /usr/share/examples/cvsup/doc-supfile

Cleaning up Obsolete files, Directories and Libraries

  • check for obsolete files and libraries
    cd /usr/src
    make check-old
    make check-old-libs
  • If any obsolete files are found, deleted
    make delete-old
    make delete-old-libs
  • portsclean -D will purge old distfiles.
  • portsclean -C will clean all ‘work’ directories.
  • portsclean -L will clean up unused libraries in /usr/local/lib/compat/pkg.
  • portsclean -P will clean up outdated packages.
This entry was posted in FreeBSD -- General, UNIX. Bookmark the permalink.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.