Difference between revisions of "Pc-updatemanager/9.2"

From PC-BSD Wiki
Jump to: navigation, search
(Using Update Manager)
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{NavHeader|back=Multiple Boot Environments|forward=Creating an Automated Installation with pc-sysinstall|custompagename=Upgrading PC-BSD{{r}}|custompagecategory={{PAGENAME}}}}</noinclude>
+
<noinclude><translate>
  
 +
<!--T:1-->
 +
{{NavHeader|back=Update Manager |forward=Meta Package Manager|custompagename=Upgrading PC-BSD{{r}}|custompagecategory={{PAGENAME}}}}</noinclude>
 +
 +
<!--T:2-->
 
PC-BSD® makes it easy to upgrade from an earlier version of 9.x (including beta and RC versions) to the latest version of PC-BSD®. When the upgrade is finished, simply reboot to access the new version of your PC-BSD® operating system. The upgrade can be performed using [[Update Manager | the graphical Update Manager]] or from the command line.
 
PC-BSD® makes it easy to upgrade from an earlier version of 9.x (including beta and RC versions) to the latest version of PC-BSD®. When the upgrade is finished, simply reboot to access the new version of your PC-BSD® operating system. The upgrade can be performed using [[Update Manager | the graphical Update Manager]] or from the command line.
  
 +
<!--T:3-->
 
Before attempting an upgrade, be aware of the following caveats:
 
Before attempting an upgrade, be aware of the following caveats:
  
 +
<!--T:4-->
 
* it is not recommended to update between major branches: for example, from a 7.x or 8.x version to a 9.x version of PC-BSD®. Instead, backup your data and do a fresh install of the new version.  
 
* it is not recommended to update between major branches: for example, from a 7.x or 8.x version to a 9.x version of PC-BSD®. Instead, backup your data and do a fresh install of the new version.  
  
 +
<!--T:5-->
 
* it is not possible to upgrade from FreeBSD to PC-BSD®.
 
* it is not possible to upgrade from FreeBSD to PC-BSD®.
  
 +
<!--T:6-->
 
* the temporary files used by the upgrade process require 2GB of free space in ''/usr/''. If you receive an error message indicating that you do not have enough free space to perform the upgrade, you will need to delete some files or move them elsewhere in order to create enough free space.
 
* the temporary files used by the upgrade process require 2GB of free space in ''/usr/''. If you receive an error message indicating that you do not have enough free space to perform the upgrade, you will need to delete some files or move them elsewhere in order to create enough free space.
  
 +
<!--T:7-->
 
* '' '''before performing any upgrade, always back up your important data to an external backup device,''' '' such as a removable USB drive, or to another system using a utility such as [[Life Preserver]]. While it is unlikely that something will go wrong, you will be glad that you made that backup just in case.
 
* '' '''before performing any upgrade, always back up your important data to an external backup device,''' '' such as a removable USB drive, or to another system using a utility such as [[Life Preserver]]. While it is unlikely that something will go wrong, you will be glad that you made that backup just in case.
  
 +
<!--T:8-->
 
* ''' ''when you do an upgrade, programs installed via FreeBSD ports or packages will be removed.'' ''' If you want to preserve these across system updates, you should install these within a ports jail using [[Warden®]]. Better yet, [[Submit PBI Requests | request]] that your favorite port/package is made into a PBI as PBIs are preserved during an upgrade.
 
* ''' ''when you do an upgrade, programs installed via FreeBSD ports or packages will be removed.'' ''' If you want to preserve these across system updates, you should install these within a ports jail using [[Warden®]]. Better yet, [[Submit PBI Requests | request]] that your favorite port/package is made into a PBI as PBIs are preserved during an upgrade.
  
 +
<!--T:9-->
 
* an upgrade will preserve the data in the home directories, any installed PBIs, and user accounts. It also preserves common configuration files--you can view the list of files which are excluded from the upgrade in {{citelink|url=http://trac.pcbsd.org/browser/pcbsd/branches/9.1/build-files/conf/upgrade-excludes|txt=upgrade-excludes}}. The upgrade process will also merge any customizations you have made into the new versions of the following files: ''boot/loader.conf'', ''/etc/rc.conf'', and ''/etc/sysctl.conf.''
 
* an upgrade will preserve the data in the home directories, any installed PBIs, and user accounts. It also preserves common configuration files--you can view the list of files which are excluded from the upgrade in {{citelink|url=http://trac.pcbsd.org/browser/pcbsd/branches/9.1/build-files/conf/upgrade-excludes|txt=upgrade-excludes}}. The upgrade process will also merge any customizations you have made into the new versions of the following files: ''boot/loader.conf'', ''/etc/rc.conf'', and ''/etc/sysctl.conf.''
  
=== Using Update Manager ===
+
=== Using Update Manager === <!--T:10-->
  
 +
<!--T:11-->
 
To start [[Update Manager]], make sure that your Internet connection is active and go to ''[[Control Panel]]'' ➜ ''[[Update Manager]]'' or type '''pc-su pc-updategui''' from a terminal. After inputting the administrative password, Update Manager will look for updates and inform you if a newer version of the operating system is available. In the example shown in Figure 5.4a, the current operating system is 9.0 and Update Manager is indicating that the upgrade to 9.1 is available.
 
To start [[Update Manager]], make sure that your Internet connection is active and go to ''[[Control Panel]]'' ➜ ''[[Update Manager]]'' or type '''pc-su pc-updategui''' from a terminal. After inputting the administrative password, Update Manager will look for updates and inform you if a newer version of the operating system is available. In the example shown in Figure 5.4a, the current operating system is 9.0 and Update Manager is indicating that the upgrade to 9.1 is available.
  
 +
<!--T:12-->
 
[[File:Upgrade1a.png|thumb|393px|'''Figure 5.4a: Using Update Manager to Upgrade the Operating System''']]
 
[[File:Upgrade1a.png|thumb|393px|'''Figure 5.4a: Using Update Manager to Upgrade the Operating System''']]
  
 +
<!--T:13-->
 
{{note|width=46%|icon64=if you know that a new release is available and it is not showing in Update Manager, make sure that any updates that do show are applied first. That way, the system will be fully patched and ready for the system upgrade.}}
 
{{note|width=46%|icon64=if you know that a new release is available and it is not showing in Update Manager, make sure that any updates that do show are applied first. That way, the system will be fully patched and ready for the system upgrade.}}
  
 +
<!--T:14-->
 
To perform the upgrade, check the box for the "System Upgrade" entry and click the "Install selected updates" button. A progress bar will indicate:
 
To perform the upgrade, check the box for the "System Upgrade" entry and click the "Install selected updates" button. A progress bar will indicate:
  
 +
<!--T:15-->
 
* the download status of the ''PCBSD.tbz'' upgrade file
 
* the download status of the ''PCBSD.tbz'' upgrade file
  
 +
<!--T:16-->
 
* the download status of the software packages that are installed with the operating system and which have newer available versions
 
* the download status of the software packages that are installed with the operating system and which have newer available versions
  
 +
<!--T:17-->
 
How long these downloads take depends upon the speed of your network connection: for example, it can take an hour or so over a DSL connection. You can continue to use your PC-BSD® system while Update Manager downloads the files it needs to ''/usr/local/tmp/''.  
 
How long these downloads take depends upon the speed of your network connection: for example, it can take an hour or so over a DSL connection. You can continue to use your PC-BSD® system while Update Manager downloads the files it needs to ''/usr/local/tmp/''.  
  
 +
<!--T:18-->
 
Once the downloads are finished, a pop-up message will indicate that the system is now ready to reboot in order to finish the upgrade. PC-BSD® will not automatically reboot the system, giving you the opportunity to close any applications that you have open before you reboot the system yourself.
 
Once the downloads are finished, a pop-up message will indicate that the system is now ready to reboot in order to finish the upgrade. PC-BSD® will not automatically reboot the system, giving you the opportunity to close any applications that you have open before you reboot the system yourself.
 
{{warning|width=46%|align=right|icon64=it is very important that once you reboot, you do not interrupt the upgrade process. This process may take up to 30 minutes, so plan your reboot for a time when you do not need immediate access to your system.}}
 
{{warning|width=46%|align=right|icon64=it is very important that once you reboot, you do not interrupt the upgrade process. This process may take up to 30 minutes, so plan your reboot for a time when you do not need immediate access to your system.}}
  
 +
<!--T:19-->
 
After rebooting, a series of console messages will appear similar to these (depending upon your choices as described):
 
After rebooting, a series of console messages will appear similar to these (depending upon your choices as described):
  
 +
<!--T:20-->
 
{{txtbox|box=<nowiki>##############################################################</nowiki>
 
{{txtbox|box=<nowiki>##############################################################</nowiki>
 
A system update to PC-BSD is ready to be installed.
 
A system update to PC-BSD is ready to be installed.
Line 68: Line 89:
 
The system will automatically reboot into the new operating system and continue with the application updates. After that has completed, your system will then reboot into the newly-installed operating system.}}
 
The system will automatically reboot into the new operating system and continue with the application updates. After that has completed, your system will then reboot into the newly-installed operating system.}}
  
=== Using the Command Line ===
+
=== Using the Command Line === <!--T:21-->
  
 +
<!--T:22-->
 
To start a system upgrade from the command line, become the superuser and use the following command to check to see if an update is available:
 
To start a system upgrade from the command line, become the superuser and use the following command to check to see if an update is available:
  
 +
<!--T:23-->
 
{{txtbox|box='''pc-updatemanager check'''
 
{{txtbox|box='''pc-updatemanager check'''
 
The following updates are available:
 
The following updates are available:
Line 83: Line 106:
 
To install this update run "/usr/local/bin/pc-updatemanager install release-9.1"}}
 
To install this update run "/usr/local/bin/pc-updatemanager install release-9.1"}}
  
 +
<!--T:24-->
 
Follow the instructions to install the update:
 
Follow the instructions to install the update:
  
 +
<!--T:25-->
 
{{txtbox|box='''pc-updatemanager install release-9.1'''
 
{{txtbox|box='''pc-updatemanager install release-9.1'''
 
STARTINGUPDATE: 9.1
 
STARTINGUPDATE: 9.1
 
Downloading Master Files...}}
 
Downloading Master Files...}}
  
 +
<!--T:26-->
 
The upgrade will then proceed as usual and you will be prompted when the system is ready to reboot.
 
The upgrade will then proceed as usual and you will be prompted when the system is ready to reboot.
  
<noinclude>{{refheading}}</noinclude>
+
<!--T:27-->
 
<noinclude>
 
<noinclude>
[[category:handbook]]
+
{{refheading}}
[[category:Advanced Installation Topics]]
+
 
[[Category:Upgrading PC-BSD®]]
 
[[Category:Upgrading PC-BSD®]]
 +
[[category:Advanced Installation Topics]]
 +
[[category:handbook]]
 +
</translate>
 +
<languages/>
 
</noinclude>
 
</noinclude>

Revision as of 21:12, 23 April 2013

(Sorry for the inconvenience)

Contents

PC-BSD® makes it easy to upgrade from an earlier version of 9.x (including beta and RC versions) to the latest version of PC-BSD®. When the upgrade is finished, simply reboot to access the new version of your PC-BSD® operating system. The upgrade can be performed using the graphical Update Manager or from the command line.

Before attempting an upgrade, be aware of the following caveats:

  • it is not recommended to update between major branches: for example, from a 7.x or 8.x version to a 9.x version of PC-BSD®. Instead, backup your data and do a fresh install of the new version.
  • it is not possible to upgrade from FreeBSD to PC-BSD®.
  • the temporary files used by the upgrade process require 2GB of free space in /usr/. If you receive an error message indicating that you do not have enough free space to perform the upgrade, you will need to delete some files or move them elsewhere in order to create enough free space.
  • before performing any upgrade, always back up your important data to an external backup device, such as a removable USB drive, or to another system using a utility such as Life Preserver. While it is unlikely that something will go wrong, you will be glad that you made that backup just in case.
  • when you do an upgrade, programs installed via FreeBSD ports or packages will be removed. If you want to preserve these across system updates, you should install these within a ports jail using Warden®. Better yet, request that your favorite port/package is made into a PBI as PBIs are preserved during an upgrade.
  • an upgrade will preserve the data in the home directories, any installed PBIs, and user accounts. It also preserves common configuration files--you can view the list of files which are excluded from the upgrade in upgrade-excludes[1]. The upgrade process will also merge any customizations you have made into the new versions of the following files: boot/loader.conf, /etc/rc.conf, and /etc/sysctl.conf.

Using Update Manager

To start Update Manager, make sure that your Internet connection is active and go to Control PanelUpdate Manager or type pc-su pc-updategui from a terminal. After inputting the administrative password, Update Manager will look for updates and inform you if a newer version of the operating system is available. In the example shown in Figure 5.4a, the current operating system is 9.0 and Update Manager is indicating that the upgrade to 9.1 is available.

Figure 5.4a: Using Update Manager to Upgrade the Operating System
NOTE: If you know that a new release is available and it is not showing in Update Manager, make sure that any updates that do show are applied first. That way, the system will be fully patched and ready for the system upgrade.

To perform the upgrade, check the box for the "System Upgrade" entry and click the "Install selected updates" button. A progress bar will indicate:

  • the download status of the PCBSD.tbz upgrade file
  • the download status of the software packages that are installed with the operating system and which have newer available versions

How long these downloads take depends upon the speed of your network connection: for example, it can take an hour or so over a DSL connection. You can continue to use your PC-BSD® system while Update Manager downloads the files it needs to /usr/local/tmp/.

Once the downloads are finished, a pop-up message will indicate that the system is now ready to reboot in order to finish the upgrade. PC-BSD® will not automatically reboot the system, giving you the opportunity to close any applications that you have open before you reboot the system yourself.

WARNING It is very important that once you reboot, you do not interrupt the upgrade process. This process may take up to 30 minutes, so plan your reboot for a time when you do not need immediate access to your system.

After rebooting, a series of console messages will appear similar to these (depending upon your choices as described):

##############################################################

A system update to PC-BSD is ready to be installed. This may take 30 minutes or more. If you wish to postpone the update, type 'skip' and press enter. You will be prompted again during the next system boot. The update will begin automatically in 20 seconds.

>
Since this portion of the updating process can make your system unavailable for as long as half an hour, this message allows you to skip completing the update for now if you need to reboot into the system.
# PC-BSD System Upgrade

# Updating to 9.1 # Please do NOT reboot the system until the update is finished ##############################################################   Cleaning old system pkgs..... Extracting updated world environment...DONE! Extracting kernel and boot environment...DONE Cleaning up old files...DONE

Rebooting for stage 2 of upgrade...Shutdown NOW!
If you are ready to leave the system alone while it completes the update, do not do anything and the update will begin in 20 seconds. It is important to not reboot the system until this portion of the upgrade completes.
# PC-BSD System Upgrade

# Updating to 9.1 # Please do NOT reboot the system until the update is finished ##############################################################   Installing system packages... Cleaning up...DONE

Update finished! Rebooting...
The system will automatically reboot into the new operating system and continue with the application updates. After that has completed, your system will then reboot into the newly-installed operating system.

Using the Command Line

To start a system upgrade from the command line, become the superuser and use the following command to check to see if an update is available:

pc-updatemanager check

The following updates are available: ------------------------------------ NAME: System Update to 9.1 TYPE: SYSUPDATE VERSION: 9.1 DATE: 2012-12-03 TAG: release-9.1 DETAILS: http://www.pcbsd.org

To install this update run "/usr/local/bin/pc-updatemanager install release-9.1"

Follow the instructions to install the update:

pc-updatemanager install release-9.1

STARTINGUPDATE: 9.1

Downloading Master Files...

The upgrade will then proceed as usual and you will be prompted when the system is ready to reboot.


References


  1. http://trac.pcbsd.org/browser/pcbsd/branches/9.1/build-files/conf/upgrade-excludes
Other languages:German 59% • ‎English 100% • ‎French 9%