DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 13th September 2010
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Cool HOWTO: FreeBSD Binary Upgrade (base system + packages)

There are many ways to upgrade FreeBSD along with installed packages to the newest version(s), most of them include compilation (buildworld/portmaster), this HOWTO will provide simple and fast way to upgrade FreeBSD system without needless compilation.

Upgrade if the base system is relatively easy, its about to type 4 commands, read and UNDERSTAND on screen comunicates, if it goes to packages, we will use the fact, that all packages are build to newest version along with newest *-RELEASE version.

0. CONFIGURATION BACKUP (rather not needed, but ...)
root # tar -czf /root/ETC.tar.gz /etc /usr/local/etc

1. BASE SYSTEM UPGRADE (I assume that 8.1-RELEASE is the current latest version)
root # freebsd-update upgrade -r 8.1-RELEASE
root # freebsd-update install
root # shutdown -r now
root # freebsd-update install

While doing the base system procedure we will be asked for installed 'datasets' and about modifications in config files, we only need to read and UNDERSTAND the on screen comunicats.


2. PACKAGES UPGRADE
root # pkg_info -qoa > /root/packagelist
root # pkg_delete -a -f
root # rm -r -f /boot/modules /usr/local /var/db/pkg
root # while read PKG; do pkg_add -r $( basename ${PKG} ); done < /root/packagelist

At this point all old packages have been removed, and latest pacakges have been installed on their place, it works automatically, unless port nam has changed, like with VirtualBox, when its port name changed from emulators/virtualbox into emulators/virtualbox-ose, so the only 'risk' here, is that some packages will not be added automatically.


2.1. SEARCHING FOR MISSED PACKAGES
root # pkg_info -qoa > /root/packagelist.NEW
root # diff -u /root/packagelist*

This way is probable the fastest and easiest to find missed packages.


3. CLEANUP
root # rm -r -f /root/packagelist*
root # rm -r -f /root/ETC.tar.gz

If we had made some bigger changes in the configuration, we may keep the old configuration (/root/ETC.tar.gz).

__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
 

Tags
binary, buildworld, freebsd-update, packages, portmaster, update, upgrade

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modular xorg binary packages for i386? GullibleJones NetBSD Package System (pkgsrc) 14 10th August 2019 10:53 PM
Removal of BIND from FreeBSD base system J65nko News 8 3rd April 2010 10:02 PM
Saving automatically downloaded binary packages IdOp NetBSD Package System (pkgsrc) 6 23rd November 2009 06:00 PM
Java JDK & JRE binary packages available for FBSD 6.3 & 7.0 J65nko FreeBSD Ports and Packages 3 20th August 2008 08:09 PM
howto change 'uname -a' after base system U/G fallen FreeBSD Installation and Upgrading 8 16th July 2008 01:24 AM


All times are GMT. The time now is 09:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick