Update or patch your FreeBSD server using FreeBSD-update
Update? CVSUP? make world? arghhh this kind of thing really make update and patching FreeBSD system is a "scary movie" to system admins, not even just for new admin, but seasoned one. Now FreeBSD have a simple and great tools to update your FreeBSD X.X -RELEASE (default cd install ) to -RELEASE -pXX ( to the latest patch ).
REMINDER: This only applied for -RELEASE or -RELEASE-pXX patch level only. Not applied for -STABLE or -CURRENT.
First, u need to run this command, to fetch the updates:
freebsd# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 8.1-RELEASE from update4.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 2 metadata patches.. done.
Applying metadata patches... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 25 patches.....10....20.. done.
Applying patches... done.
The following files will be updated as part of updating to 8.1-RELEASE-p5:
/boot/kernel/kernel
/boot/kernel/kernel.symbols
/rescue/[
/rescue/atacontrol
/rescue/atmconfig
/rescue/badsect
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/rescue/chmod
/rescue/chown
/rescue/chroot
/rescue/clri
/rescue/cp
/rescue/csh
/rescue/date
/rescue/dd
/rescue/devfs
/rescue/df
/rescue/dhclient
/rescue/disklabel
/rescue/dmesg
/rescue/dump
/rescue/dumpfs
/rescue/dumpon
/rescue/echo
/rescue/ed
/rescue/ex
/rescue/expr
/rescue/fastboot
/rescue/fasthalt
/rescue/fdisk
/rescue/fsck
/rescue/fsck_4.2bsd
/rescue/fsck_ffs
/rescue/fsck_msdosfs
/rescue/fsck_ufs
/rescue/fsdb
/rescue/fsirand
/rescue/gbde
/rescue/geom
/rescue/getfacl
/rescue/glabel
/rescue/gpart
/rescue/groups
/rescue/gunzip
/rescue/gzcat
/rescue/gzip
/rescue/halt
/rescue/head
/rescue/hostname
/rescue/id
/rescue/ifconfig
/rescue/init
/rescue/ipf
/rescue/kenv
/rescue/kill
/rescue/kldconfig
/rescue/kldload
/rescue/kldstat
/rescue/kldunload
/rescue/ldconfig
/rescue/link
/rescue/ln
/rescue/ls
/rescue/lzcat
/rescue/lzma
/rescue/md5
/rescue/mdconfig
/rescue/mdmfs
/rescue/mkdir
/rescue/mknod
/rescue/mount
/rescue/mount_cd9660
/rescue/mount_msdosfs
/rescue/mount_nfs
/rescue/mount_ntfs
/rescue/mount_nullfs
/rescue/mount_udf
/rescue/mount_unionfs
/rescue/mt
/rescue/mv
/rescue/newfs
/rescue/newfs_msdos
/rescue/nos-tun
/rescue/pgrep
/rescue/ping
/rescue/ping6
/rescue/pkill
/rescue/ps
/rescue/pwd
/rescue/rcorder
/rescue/rcp
/rescue/rdump
/rescue/realpath
/rescue/reboot
/rescue/red
/rescue/rescue
/rescue/restore
/rescue/rm
/rescue/rmdir
/rescue/route
/rescue/routed
/rescue/rrestore
/rescue/rtquery
/rescue/rtsol
/rescue/savecore
/rescue/sconfig
/rescue/sed
/rescue/setfacl
/rescue/sh
/rescue/spppcontrol
/rescue/stty
/rescue/swapon
/rescue/sync
/rescue/sysctl
/rescue/tail
/rescue/tar
/rescue/tcsh
/rescue/tee
/rescue/test
/rescue/tunefs
/rescue/umount
/rescue/unlink
/rescue/unlzma
/rescue/unxz
/rescue/vi
/rescue/whoami
/rescue/xz
/rescue/xzcat
/rescue/zcat
/rescue/zfs
/rescue/zpool
/usr/bin/compress
/usr/bin/dig
/usr/bin/gunzip
/usr/bin/gzcat
/usr/bin/gzip
/usr/bin/host
/usr/bin/nslookup
/usr/bin/nsupdate
/usr/bin/uncompress
/usr/bin/zcat
/usr/sbin/dnssec-dsfromkey
/usr/sbin/dnssec-signzone
/usr/sbin/lwresd
/usr/sbin/mountd
/usr/sbin/named
/usr/sbin/named-checkconf
/usr/sbin/named-checkzone
/usr/sbin/named-compilezone
/usr/src/contrib/bind9/lib/dns/ncache.c
/usr/src/sys/conf/newvers.sh
/usr/src/sys/kern/uipc_usrreq.c
/usr/src/usr.bin/compress/zopen.c
/usr/src/usr.bin/gzip/zuncompress.c
/usr/src/usr.sbin/mountd/mountd.c
/var/db/mergemaster.mtree
after finish, then we install the patch:
freebsd# freebsd-update install
Installing updates... done.
freebsd# uname -a
FreeBSD freebsd 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Then reboot!!!
freebsd# reboot
Re-login and that's it!!
login as: trunasuci
Using keyboard-interactive authentication.
Password:
Last login: Mon Oct 3 04:35:15 2011 from 10.8.0.33
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 8.1-RELEASE-p5 (GENERIC) #0: Tue Sep 27 16:18:26 UTC 2011
Welcome to FreeBSD!
To see the IP addresses currently set on your active interfaces, type
"ifconfig -u".
-- Dru <genesis@istar.ca>
$ su -
Password:
freebsd# uname -a
FreeBSD freebsd 8.1-RELEASE-p5 FreeBSD 8.1-RELEASE-p5 #0: Tue Sep 27 16:18:26 UTC 2011 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
Written on 3/10/2011
Comments (0)
You don't have permission to comment on this page.