Difference between revisions of "Update Manager/10.1"

From PC-BSD Wiki
Jump to: navigation, search
(Applying a System Update (CLI Method))
(Marked this version for translation)
 
(12 intermediate revisions by one user not shown)
Line 55: Line 55:
 
If your system is fully up-to-date, there will not be any entries in Update Manager.  
 
If your system is fully up-to-date, there will not be any entries in Update Manager.  
  
 +
<!--T:56-->
 
Depending upon the type of update,  an “Update Details” pane may or may not appear when you check the box next to the update.
 
Depending upon the type of update,  an “Update Details” pane may or may not appear when you check the box next to the update.
  
 +
<!--T:57-->
 
To update the system, check the boxes to select the updates to install or check the “Select/Deselect All” box. Once the updates are selected, click the “Install selected updates” button. A progress bar will indicate the progress of the update.  
 
To update the system, check the boxes to select the updates to install or check the “Select/Deselect All” box. Once the updates are selected, click the “Install selected updates” button. A progress bar will indicate the progress of the update.  
  
Line 63: Line 65:
  
 
<!--T:55-->
 
<!--T:55-->
{{note|icon64=System updates are one-way, meaning you cannot unapply an update once it is installed. However, PC-BSD® 10.0.2 and higher automatically creates a boot environment before applying a system update. If there is an issue with the update, reboot the system and select the entry that represents the time the update occurred. This will reboot the version of the operating system before the update was applied. For systems earlier than 10.0.2, create a manual boot environment using {{local|link=Boot Manager}} ''' ''before'' ''' applying any updates}}
+
{{note|icon64=System updates are one-way, meaning you cannot unapply an update once it is installed. However, PC-BSD® 10.0.2 and higher automatically creates a boot environment before applying each system update. If there is an issue with the update, reboot the system and select the entry that represents the time that update occurred. This will reboot the version of the operating system before the update was applied. For systems earlier than 10.0.2, create a manual boot environment using {{local|link=Boot Manager}} ''' ''before'' ''' applying any updates}}
  
====Applying a System Update (CLI Method)====
+
====Applying a System Update (CLI Method)==== <!--T:58-->
  
 +
<!--T:59-->
 
TrueOS® users, or those who prefer to use a command-line utility, can use '''pc-updatemanager''', the command line equivalent to Update Manager, to apply system updates. If you type '''pc-updatemanager''', it will show its available options:   
 
TrueOS® users, or those who prefer to use a command-line utility, can use '''pc-updatemanager''', the command line equivalent to Update Manager, to apply system updates. If you type '''pc-updatemanager''', it will show its available options:   
  
 +
<!--T:60-->
 
{{txtbox|box='''pc-updatemanager'''{{nbsp|64}}
 
{{txtbox|box='''pc-updatemanager'''{{nbsp|64}}
 
/usr/local/bin/pc-updatemanager - Usage
 
/usr/local/bin/pc-updatemanager - Usage
Line 83: Line 87:
 
}}
 
}}
  
 +
<!--T:61-->
 
To determine if any system updates are available, type the following command:  
 
To determine if any system updates are available, type the following command:  
  
 +
<!--T:62-->
 
{{txtbox|box='''sudo pc-updatemanager check'''{{nbsp|58}}
 
{{txtbox|box='''sudo pc-updatemanager check'''{{nbsp|58}}
 
Checking for FreeBSD updates...
 
Checking for FreeBSD updates...
Line 112: Line 118:
 
To install: "pc-updatemanager install pkgng-conflict-03122014"}}
 
To install: "pc-updatemanager install pkgng-conflict-03122014"}}
  
 +
<!--T:63-->
 
This is the command line equivalent of the results seen in Figure 7.2b. Follow the instructions to install each update. For example, this will apply the "Remove fdescfs" patch:
 
This is the command line equivalent of the results seen in Figure 7.2b. Follow the instructions to install each update. For example, this will apply the "Remove fdescfs" patch:
  
 +
<!--T:64-->
 
{{txtbox|box='''sudo pc-updatemanager install fdesc-rollback-02132014'''
 
{{txtbox|box='''sudo pc-updatemanager install fdesc-rollback-02132014'''
 
DOWNLOADING: fdesc-rollback-02132014
 
DOWNLOADING: fdesc-rollback-02132014
Line 129: Line 137:
 
}}
 
}}
  
 +
<!--T:65-->
 
Note that a boot environment is created before the patch is applied as this system is running 10.0.2.
 
Note that a boot environment is created before the patch is applied as this system is running 10.0.2.
  
===Upgrading the Operating System (GUI Method)=== <!--T:44-->
+
===Upgrading from 9.x to 10.x=== <!--T:44-->
 
+
<!--T:45-->
+
Update Manager can be used to upgrade to the latest version of the operating system.
+
  
 
<!--T:50-->
 
<!--T:50-->
{{danger|icon64={{redlight|IMPORTANT--README BEFORE ATTEMPTING AN UPGRADE!}}<br/>
+
{{danger|icon64={{redlight|IMPORTANT--README!}}<br/>
 
* PC-BSD® has switched to ''ZFS-only''. This means that you can not upgrade a system that is either 32-bit or formatted with UFS. If the hardware supports 64-bit, you will need to backup your important data to another system or external drive and then perform a new installation. The new installation will perform a format of the selected disk(s) with ZFS.<br/>
 
* PC-BSD® has switched to ''ZFS-only''. This means that you can not upgrade a system that is either 32-bit or formatted with UFS. If the hardware supports 64-bit, you will need to backup your important data to another system or external drive and then perform a new installation. The new installation will perform a format of the selected disk(s) with ZFS.<br/>
  
 
<!--T:54-->
 
<!--T:54-->
* The boot loader and default ZFS layout changed with the July 23, 2013 image. This change was needed to support {{local|link=Boot Manager|boot environments}} and ZFS snapshot management with {{local|link=Life Preserver}}. This means that you can ''' ''not'' ''' upgrade from a release prior to that date. If you are running a PC-BSD® version prior to July 23, you will need to backup your important data to another system or external drive and then perform a new installation. The new installation will create the required ZFS layout.<br/>
+
* The boot loader and default ZFS layout has changed to support {{local|link=Boot Manager|boot environments}} and ZFS snapshot management with {{local|link=Life Preserver}}. For this reason, we recommend that 9.x users backup their important data to another system or external drive and then perform a new installation which will create the required ZFS layout.}}
  
<!--T:51-->
+
===Upgrading from 10.x to 10.0.2 (GUI Method)=== <!--T:66-->
* The ZFS version changed between 9.2 and 9.1 and ZFS does not support downgrading to an earlier version of ZFS. This means that you cannot downgrade a 9.2 installation to a 9.1 installation.}}
+
 
 +
<!--T:67-->
 +
Upgrading from any 10.x version to 10.0.2 is considered to be a minor, rather than a major, upgrade. This means that the operating system and kernel are fully patched if all patches in Update Manager have been applied.  
 +
 
 +
<!--T:68-->
 +
To update the PC-BSD® utilities to their latest version, use the "Package Updates" tab of Package Manager for earlier 10.x versions or {{local|link=AppCafe®}}, for beta/RC versions of 10.0.2.
  
 
<!--T:47-->
 
<!--T:47-->
''' ''Before performing an operating system upgrade, always back up the data that is important to you. {{local|link=Life Preserver}} can be used to send a system backup to a remote system.'' '''
+
'''NOTE:''' it is a good idea to create a [[Boot Manager|boot environment]] before updating the PC-BSD® utilities. After updating, PC-BSD® will automatically do this for you with any subsequent updates.
 +
 
 +
<!--T:69-->
 +
In the example shown in Figure 7.2c, a user on a 10.0.2 beta system has clicked the "Start Updates" button in {{local|link=AppCafe®}}, then the "Show Details" button. The details indicate the current version of the PC-BSD® utilities and the versions they will be updated to.
  
 
<!--T:52-->
 
<!--T:52-->
[[File:Update4b.png|thumb|393px|'''Figure 7.2c: Upgrading the Operating System''']]
+
[[File:Update4c.png|thumb|393px|'''Figure 7.2c: Upgrading the PC-BSD® Utilities''']]
  
<!--T:24-->
+
<!--T:70-->
Before attempting an upgrade, you should also be aware of the following caveats:
+
Click "Yes" to perform the update. When the update is finished, a reboot is recommended.
  
<!--T:26-->
+
====Upgrading from 10.x to 10.0.2 (CLI Method)==== <!--T:71-->
* it is not possible to upgrade from FreeBSD to PC-BSD®. However, you can {{local|link=Convert_a_FreeBSD_System_to_PC-BSD®|convert a FreeBSD system to PC-BSD®}}.
+
  
<!--T:27-->
+
<!--T:72-->
* 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.
+
Users who prefer to upgrade the PC-BSD utilities from the command line can use the following command:
  
<!--T:30-->
+
<!--T:73-->
* an upgrade will preserve the data in the home directories, any installed PBIs, and user accounts. It also preserves common configuration files and will merge any customizations you have made into the new versions of the following files: ''boot/loader.conf'', ''/etc/rc.conf'', and ''/etc/sysctl.conf.''
+
{{txtbox|box='''sudo pc-updatemanager pkg check'''{{nbsp|44}}
 +
Updating repository catalogue
 +
Updating repository catalogue
 +
Upgrades have been requested for the following 3 packages:
  
<!--T:56-->
+
        <!--T:74-->
Once you have backed up your data and confirmed that your version of PC-BSD® is older than July 23, you can use Update Manager to upgrade the operating system. In the example shown in Figure 7.2c, a system upgrade to 10.0-RELEASE is available.
+
Upgrading pcbsd-utils: 1402404619 -> 1402675082
 +
        Upgrading pcbsd-utils-qt4: 1402404153 -> 1402705215
 +
        Upgrading pcbsd-base: 1401994478 -> 1402603526
  
<!--T:34-->
+
<!--T:75-->
{{note|icon48=If a RELEASE has been announced but the update does not appear 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.}}
+
The upgrade will require 631 KB more space
  
<!--T:35-->
+
<!--T:76-->
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 files that changed with the upgrade.
+
58 MB to be downloaded
  
<!--T:39-->
+
<!--T:77-->
Once the downloads are finished and applied, Update Manager will indicate that the system is fully updated. Close any applications that you have open, then reboot in order to load the latest version of the operating system.
+
To start the upgrade run "/usr/local/bin/pc-updatemanager  pkgupdate"}}
  
====Upgrading the Operating System (CLI Method)====
+
<!--T:78-->
 +
This example is from a 10.0.2 beta system and is the command line equivalent to the screen shown in Figure 7.2c.
  
Users who prefer to upgrade the operating system from the command line can use '''pc-updatemanager''' instead of the graphical Update Manager.
+
<!--T:79-->
 +
To start the upgrade:
  
Once a new RELEASE has been announced, it should appear as available using the following command:
+
<!--T:80-->
 +
{{txtbox|box='''sudo pc-updatemanager pkgupdate'''
 +
Updating repository catalogue
 +
digests.txz                                                                                                                          100% 1091KB  1.1MB/s  1.1MB/s  00:01   
 +
packagesite.txz                                                                                                                      100% 5015KB  1.6MB/s  2.9MB/s  00:03   
 +
Incremental update completed, 23344 packages processed:
 +
0 packages updated, 0 removed and 0 added.
 +
Upgrades have been requested for the following 3 packages:
  
{{txtbox|box='''pc-updatemanager check'''{{nbsp|44}}
+
        <!--T:81-->
The following updates are available:
+
Upgrading pcbsd-utils: 1402404619 -> 1402675082
<nowiki>------------------------------------</nowiki>
+
        Upgrading pcbsd-utils-qt4: 1402404153 -> 1402705215
NAME: System Update to 10.0-RELEASE
+
        Upgrading pcbsd-base: 1401994478 -> 1402603526
TYPE: SYSUPDATE
+
 
TAG: fbsd-10.0-RELEASE
+
<!--T:82-->
VERSION: 10.0-RELEASE
+
The upgrade will require 631 KB more space
 +
 
 +
<!--T:83-->
 +
58 MB to be downloaded
 +
pcbsd-utils-1402675082.txz          100%  16MB  2.1MB/s  2.5MB/s  00:08   
 +
pcbsd-utils-qt4-1402705215.txz      100%  41MB  2.1MB/s  3.0MB/s  00:20   
 +
pcbsd-base-1402603526.txz          100% 3692    3.6KB/s  3.6KB/s  00:00   
 +
Checking integrity... done
 +
Creating new boot-environment...
 +
GRUB configuration updated successfully
 +
Created successfully
 +
Pruning old boot-environments...
 +
Upgrades have been requested for the following 3 packages:
 +
 
 +
        <!--T:84-->
 +
Upgrading pcbsd-utils: 1402404619 -> 1402675082
 +
        Upgrading pcbsd-utils-qt4: 1402404153 -> 1402705215
 +
        Upgrading pcbsd-base: 1401994478 -> 1402603526
  
To install: "pc-updatemanager install fbsd-10.0-RELEASE"}}
+
<!--T:85-->
 +
The upgrade will require 631 KB more space
  
To start the upgrade, follow the "To install" instructions. Messages will indicate the status of the upgrade.
+
<!--T:86-->
 +
0 B to be downloaded
 +
Checking integrity... done
 +
[1/3] Upgrading pcbsd-utils from 1402404619 to 1402675082... done
 +
[2/3] Upgrading pcbsd-utils-qt4 from 1402404153 to 1402705215... done
 +
[3/3] Upgrading pcbsd-base from 1401994478 to 1402603526... done
 +
Extracting desktop overlay data...DONE}}
  
Once the upgrade is complete, a message will indicate that you need to reboot the system in order for the changes to take effect. Close any applications that you have open, then type '''reboot''' in order to load the latest version of the operating system and finish the upgrade.  
+
<!--T:87-->
 +
Once the upgrade is complete, it is recommended to close any applications that you have open, then type '''reboot''' to reboot the system.
  
 
<!--T:18-->
 
<!--T:18-->

Latest revision as of 08:53, 18 June 2014


Contents


Update Manager provides a graphical interface for updating the version of PC-BSD® and for applying security updates. This utility can be started from Control Panel or by typing pc-updategui. It can also be accessed from its icon in the system tray, if you are logged into a desktop that provides a system tray.

The status of the icon lets you determine at a glance if any of your installed applications are out-of-date, if a system update is available, or if a new version of the operating system is available. Table 7.2a summarizes the possible statuses of this icon.

Table 7.2a: Update Manager Status

Updated1.png your system is up-to-date
Working1.png the system is currently checking for updates and patches
Sysupdates1.png your operating system is out-of-date and system update(s) or patch(es) are available
Pkgupdates.png newer versions of installed applications are available
Connecterror1.png the system was unable to check for updates, meaning you should check your Internet connection
Updating.png the system is currently updating
Restart.png the system needs to restart in order for the newly installed update to take effect

If you right-click the icon, you will see the menu shown in Figure 7.2a. As seen in the menu, Update Manager will automatically track updates to software installed using either the graphical or command line equivalents of AppCafe® and Warden®.

Figure 7.2a: Right-click Menu for Update Manager
Figure 7.2b: Applying a System Update

By default, updates are checked every 24 hours or whenever you boot the system. You can check for updates at any time by selecting "Check for updates". To disable the update check when the system boots, uncheck the "Run at startup" box. To disable the pop-up message over the icon when an update becomes available, uncheck the "Display notifications" box. To remove Update Manager from the system tray, click "Quit". You can put the icon back into the tray by typing pc-systemupdatertray.

[edit] Applying a System Update (GUI Method)

Occasionally, the PC-BSD® project releases a system update which addresses a fixed security vulnerability or a bug which impacts the use of the operating system. If the update is based on a FreeBSD security advisory, the update is usually available within 24 hours of the FreeBSD security announcement. To install a system update, open Update Manager and input your password when prompted. Figure 7.2b shows an example of a system where several updates are available .

If your system is fully up-to-date, there will not be any entries in Update Manager.

Depending upon the type of update, an “Update Details” pane may or may not appear when you check the box next to the update.

To update the system, check the boxes to select the updates to install or check the “Select/Deselect All” box. Once the updates are selected, click the “Install selected updates” button. A progress bar will indicate the progress of the update.

If the update requires a reboot, you will be notified to do so after the update has been installed. If a reboot is needed, clicking the "Close" button at the informational message will not automatically reboot the system. Finish whatever you are doing and reboot the computer to finish the update process.

NOTE: System updates are one-way, meaning you cannot unapply an update once it is installed. However, PC-BSD® 10.0.2 and higher automatically creates a boot environment before applying each system update. If there is an issue with the update, reboot the system and select the entry that represents the time that update occurred. This will reboot the version of the operating system before the update was applied. For systems earlier than 10.0.2, create a manual boot environment using Boot Manager before applying any updates

[edit] Applying a System Update (CLI Method)

TrueOS® users, or those who prefer to use a command-line utility, can use pc-updatemanager, the command line equivalent to Update Manager, to apply system updates. If you type pc-updatemanager, it will show its available options:

pc-updatemanager                                                                

/usr/local/bin/pc-updatemanager - Usage ----   branches - List available system branches   chbranch <tag> - Change to new system branch   check - Check for system updates   install <tag>,<tag2> - Install system updates   pkgcheck - Check for updates to packages   pkgupdate - Install packages updates   syncconf - Update PC-BSD pkgng configuration   confcheck - Check PC-BSD pkgng configuration

  -j <jail> - Operate on the jail specified

To determine if any system updates are available, type the following command:

sudo pc-updatemanager check                                                          

Checking for FreeBSD updates... The following updates are available:


NAME: FreeBSD system update TYPE: System Update

Install: "freebsd-update fetch && freebsd-update install"

NAME: Remove fdescfs TYPE: PATCH TAG: fdesc-rollback-02132014 DETAILS: http://trac.pcbsd.org/wiki/patch-20140211-fdesc DATE: 02-13-2014 SIZE: 1Mb

To install: "pc-updatemanager install fdesc-rollback-02132014"

NAME: PKG conflict detection bug fixes TYPE: PATCH TAG: pkgng-conflict-03122014 DETAILS: http://trac.pcbsd.org/wiki/patch-20140312-updater DATE: 03-12-2014 SIZE: 1Mb

To install: "pc-updatemanager install pkgng-conflict-03122014"

This is the command line equivalent of the results seen in Figure 7.2b. Follow the instructions to install each update. For example, this will apply the "Remove fdescfs" patch:

sudo pc-updatemanager install fdesc-rollback-02132014

DOWNLOADING: fdesc-rollback-02132014 /usr/local/tmp/patch-fdesc-rollback-02132014.t100% of 312 B 14 kBps 00m00s DOWNLOADFINISHED: fdesc-rollback-02132014 Creating new boot-environment... GRUB configuration updated successfully Created successfully Pruning old boot-environments... TOTALSTEPS: 3 SETSTEPS: 1 umount: /dev/fd: not a file system root directory SETSTEPS: 3

INSTALLFINISHED: fdesc-rollback-02132014

Note that a boot environment is created before the patch is applied as this system is running 10.0.2.

[edit] Upgrading from 9.x to 10.x

DANGER!  IMPORTANT--README! 
  • PC-BSD® has switched to ZFS-only. This means that you can not upgrade a system that is either 32-bit or formatted with UFS. If the hardware supports 64-bit, you will need to backup your important data to another system or external drive and then perform a new installation. The new installation will perform a format of the selected disk(s) with ZFS.
  • The boot loader and default ZFS layout has changed to support boot environments and ZFS snapshot management with Life Preserver. For this reason, we recommend that 9.x users backup their important data to another system or external drive and then perform a new installation which will create the required ZFS layout.

[edit] Upgrading from 10.x to 10.0.2 (GUI Method)

Upgrading from any 10.x version to 10.0.2 is considered to be a minor, rather than a major, upgrade. This means that the operating system and kernel are fully patched if all patches in Update Manager have been applied.

To update the PC-BSD® utilities to their latest version, use the "Package Updates" tab of Package Manager for earlier 10.x versions or AppCafe®, for beta/RC versions of 10.0.2.

NOTE: it is a good idea to create a boot environment before updating the PC-BSD® utilities. After updating, PC-BSD® will automatically do this for you with any subsequent updates.

In the example shown in Figure 7.2c, a user on a 10.0.2 beta system has clicked the "Start Updates" button in AppCafe®, then the "Show Details" button. The details indicate the current version of the PC-BSD® utilities and the versions they will be updated to.

Figure 7.2c: Upgrading the PC-BSD® Utilities

Click "Yes" to perform the update. When the update is finished, a reboot is recommended.

[edit] Upgrading from 10.x to 10.0.2 (CLI Method)

Users who prefer to upgrade the PC-BSD utilities from the command line can use the following command:

sudo pc-updatemanager pkg check                                            

Updating repository catalogue Updating repository catalogue Upgrades have been requested for the following 3 packages:

       Upgrading pcbsd-utils: 1402404619 -> 1402675082
       Upgrading pcbsd-utils-qt4: 1402404153 -> 1402705215
       Upgrading pcbsd-base: 1401994478 -> 1402603526

The upgrade will require 631 KB more space

58 MB to be downloaded

To start the upgrade run "/usr/local/bin/pc-updatemanager pkgupdate"

This example is from a 10.0.2 beta system and is the command line equivalent to the screen shown in Figure 7.2c.

To start the upgrade:

sudo pc-updatemanager pkgupdate

Updating repository catalogue digests.txz 100% 1091KB 1.1MB/s 1.1MB/s 00:01 packagesite.txz 100% 5015KB 1.6MB/s 2.9MB/s 00:03 Incremental update completed, 23344 packages processed: 0 packages updated, 0 removed and 0 added. Upgrades have been requested for the following 3 packages:

       Upgrading pcbsd-utils: 1402404619 -> 1402675082
       Upgrading pcbsd-utils-qt4: 1402404153 -> 1402705215
       Upgrading pcbsd-base: 1401994478 -> 1402603526

The upgrade will require 631 KB more space

58 MB to be downloaded pcbsd-utils-1402675082.txz 100% 16MB 2.1MB/s 2.5MB/s 00:08 pcbsd-utils-qt4-1402705215.txz 100% 41MB 2.1MB/s 3.0MB/s 00:20 pcbsd-base-1402603526.txz 100% 3692 3.6KB/s 3.6KB/s 00:00 Checking integrity... done Creating new boot-environment... GRUB configuration updated successfully Created successfully Pruning old boot-environments... Upgrades have been requested for the following 3 packages:

       Upgrading pcbsd-utils: 1402404619 -> 1402675082
       Upgrading pcbsd-utils-qt4: 1402404153 -> 1402705215
       Upgrading pcbsd-base: 1401994478 -> 1402603526

The upgrade will require 631 KB more space

0 B to be downloaded Checking integrity... done [1/3] Upgrading pcbsd-utils from 1402404619 to 1402675082... done [2/3] Upgrading pcbsd-utils-qt4 from 1402404153 to 1402705215... done [3/3] Upgrading pcbsd-base from 1401994478 to 1402603526... done

Extracting desktop overlay data...DONE

Once the upgrade is complete, it is recommended to close any applications that you have open, then type reboot to reboot the system.

Other languages:German 8% • ‎English 100%