pavement

Upgrading the system

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m (linked to some topics I'd like to write)
m (mediawiki won't make that link properly)
Line 4: Line 4:
 
*Backup important files
 
*Backup important files
 
*Update the system source code ([[cvsup]] over the internet or install source from a new CD)
 
*Update the system source code ([[cvsup]] over the internet or install source from a new CD)
*Read [[/usr/src/UPDATING]] to look for any gotcha's or recent changes
+
*Read [[UPDATING|/usr/src/UPDATING]] to look for any gotcha's or recent changes
 
*Compile the source for the system except for the kernel (make buildworld)
 
*Compile the source for the system except for the kernel (make buildworld)
 
*Compile the source for the [[kernel]] ([[make buildkernel]])
 
*Compile the source for the [[kernel]] ([[make buildkernel]])

Revision as of 12:08, 17 September 2004

Upgrading a FreeBSD system is relatively painless if the proper steps are followed. The standard way to upgrade a FreeBSD system is to update the source code to the new version then recompile the source and install. There are automatic commands for much of the process.

In overview the steps are:

  • Backup important files
  • Update the system source code (cvsup over the internet or install source from a new CD)
  • Read /usr/src/UPDATING to look for any gotcha's or recent changes
  • Compile the source for the system except for the kernel (make buildworld)
  • Compile the source for the kernel (make buildkernel)
  • Install any critical config files that have been updated (mergemaster -p)
  • Install the new kernel if it has built successfully (make installkernel)
  • Reboot to run the new kernel
  • Drop to single user mode (see init)
  • Install the rest of the system (make installworld)
  • Update the config files (mergemaster)
Personal tools