Tag Archives: freebsd-update

How to update FreeBSD 9.2

Stay Hungry Stay Foolish Sticker
The title a bit strange but I don’t care as I believe on “stay hungry stay foolish” quote :-). My last experience with FreeBSD is FreeBSD 7 and jump to version 9 is make think to relearn all those server stuff I ever knew. I think everything is different know but I prefer to that with experiment way. Document every process that I think interesting. Almost 1 month since I install FreeBSD 9.2 and now I try to update the box. Security update etc.

freebsd-update

I hope this tool still work now.

# freebsd-update fetch
Looking up update.FreeBSD.org mirrors… none found.
Fetching public key from update.FreeBSD.org… failed.
No mirrors remaining, giving up.

Tuning /etc/freebsd-update.conf and change these section :

# BackupKernel yes

# If BackupKernel is enabled, the backup kernel is saved to this
# directory.
# BackupKernelDir /boot/kernel.old

into

BackupKernel yes

# If BackupKernel is enabled, the backup kernel is saved to this
# directory.
BackupKernelDir /boot/kernel.old

save and rerun freebsd-update fetch.

That’s the only thing I care when update or upgrading.

More details available from handbook.

Picture : Stay Hungry Stay Foolish Sticker by Retro_Zombies

7.0-RELEASE-p6 with freebsd-update

freebsd-update is cool

# freebsd-update fetch
Looking up update.FreeBSD.org mirrors… 1 mirrors found.
Fetching metadata signature for 7.0-RELEASE from update1.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 8 patches….. done.
Applying patches… done.

The following files will be updated as part of updating to 7.0-RELEASE-p7:
/boot/kernel/kernel
/boot/kernel/kernel.symbols
/usr/libexec/ftpd
/usr/src/libexec/ftpd/extern.h
/usr/src/libexec/ftpd/ftpcmd.y
/usr/src/libexec/ftpd/ftpd.c
/usr/src/sys/conf/newvers.sh
/usr/src/sys/kern/uipc_domain.c

WARNING: FreeBSD 7.0-RELEASE-p6 is approaching its End-of-Life date.
It is strongly recommended that you upgrade to a newer
release within the next 1 month.
edp# freebsd-update install
Installing updates… done.
#

WARNING: FreeBSD 7.0-RELEASE-p5 is approaching its End-of-Life date

Informative message when I use freebsd-update in recent update progress :

materibasuki# freebsd-update fetch
Looking up update.FreeBSD.org mirrors… 1 mirrors found.
Fetching metadata signature for 7.0-RELEASE from update1.FreeBSD.org… done.
Fetching metadata index… done.
Inspecting system… done.
Preparing to download files… done.
Fetching 7 patches…. done.
Applying patches… done.

The following files will be updated as part of updating to 7.0-RELEASE-p6:
/boot/kernel/kernel
/boot/kernel/kernel.symbols
/boot/kernel/random.ko
/boot/kernel/random.ko.symbols
/usr/src/sys/conf/newvers.sh
/usr/src/sys/dev/random/

randomdev.c
/usr/src/sys/dev/random/randomdev_soft.c

WARNING: FreeBSD 7.0-RELEASE-p5 is approaching its End-of-Life date.
It is strongly recommended that you upgrade to a newer
release within the next 2 months.
materibasuki#

Good …good…good

Looking up update.FreeBSD.org mirrors… none found.

I often to see that message but finally I found my mistake :-)

My mistake is….

I try only once, think if the chance not succeed in first attempt it means I fail.

Definitely wrong :

email# freebsd-update fetch
Looking up update.FreeBSD.org mirrors… none found.
Fetching public key from update.FreeBSD.org… failed.
No mirrors remaining, giving up.
email# freebsd-update fetch
Looking up update.FreeBSD.org mirrors… none found.
Fetching public key from update.FreeBSD.org… failed.
No mirrors remaining, giving up.
email# freebsd-update fetch
Looking up update.FreeBSD.org mirrors… 1 mirrors found.
Fetching public key from update1.FreeBSD.org… done.
Fetching metadata signature for 6.3-RELEASE from update1.FreeBSD.org… done.
Fetching metadata index… done.
Fetching 2 metadata files… done.
Inspecting system… done.
Preparing to download files… done.
Fetching 14 patches. done.
Applying patches… done.
Fetching 14 files…

Fu..fu..fu, my fault guys :-)

Ready for freebsd-update install command.

Updating My 6.3 release box

Use src for many times make me get surprised when using freebsd-update for fix is very easy. Simple though.

mail# freebsd-update fetch
Looking up update.FreeBSD.org mirrors… 1 mirrors found.
Fetching metadata signature for 6.3-RELEASE from update1.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 9 patches….. done.
Applying patches… done.

The following files will be updated as part of updating to 6.3-RELEASE-p2:
/lib/libpthread.so.2
/usr/lib/libpthread.a
/usr/lib/libssh.a
/usr/lib/libssh.so.3
/usr/sbin/sshd
/usr/src/crypto/openssh/channels.c
/usr/src/lib/libpthread/sys/lock.c
/usr/src/lib/libpthread/thread/thr_kern.c
/usr/src/sys/conf/newvers.sh

mail# freebsd-update install
Installing updates… done.
mail#

Cool!