Difference between revisions of "Pc-updatemanager/9.2"

From PC-BSD Wiki
Jump to: navigation, search
(Marked this version for translation)
(Marked this version for translation)
(14 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
<!--T:1-->
 
<!--T:1-->
 
{{NavHeader|back=pkgng and pc-metapkgmanager |forward=Control Panel|custompagename=pc-updatemanager|custompagecategory={{PAGENAME}}}}</noinclude>
 
{{NavHeader|back=pkgng and pc-metapkgmanager |forward=Control Panel|custompagename=pc-updatemanager|custompagecategory={{PAGENAME}}}}</noinclude>
 
<!--T:29-->
 
'''THIS PAGE IS BEING UPDATED'''
 
  
 
<!--T:22-->
 
<!--T:22-->
The '''pc-updatemanager''' command can be used to perform an operating system upgrade from the command line. It can also be used to apply system updates and to update non-PBI software.
+
'''pc-updatemanager''' is the command line equivalent to [[Update Manager]]. It can be used to apply system updates and to perform an operating system upgrade. It can also be used to update packages, providing a command line equivalent to the "Package Updates" tab of [[Package_Manager#Update_Installed_Packages|Package Manager]].
 
+
<!--T:30-->
+
'''NOTE:''' ''' ''before performing any upgrade, be sure to backup your important data.'' ''' You should also be aware of the caveats listed [[Update_Manager#Upgrading_the_Operating_System|here]].
+
  
 
<!--T:31-->
 
<!--T:31-->
If you type the command without any options, it will show its available options:
+
If you type '''pc-updatemanager''', it will show its available options:
  
 
  <!--T:32-->
 
  <!--T:32-->
'''pc-updatemanager'''
+
{{txtbox|box='''pc-updatemanager'''
/usr/local/bin/pc-updatemanager - Usage
+
/usr/local/bin/pc-updatemanager - Usage
----
+
<nowiki>----</nowiki>
  branches              - List available system branches
+
{{nbsp}} branches              - List available system branches{{nbsp|24}}
  chbranch <tag>        - Change to new system branch
+
{{nbsp}} chbranch <tag>        - Change to new system branch
  check                - Check for system updates
+
{{nbsp}} check                - Check for system updates
  install <tag>,<tag2>  - Install system updates
+
{{nbsp}} install <tag>,<tag2>  - Install system updates
  pkgcheck              - Check for updates to packages
+
{{nbsp}} pkgcheck              - Check for updates to packages
  pkgupdate            - Install packages updates
+
{{nbsp}} pkgupdate            - Install packages updates}}
  
===Updating Non-PBI Software=== <!--T:33-->
+
===Upgrading Packages=== <!--T:37-->
 +
 
 +
<!--T:38-->
 +
To determine if newer versions of packages are available, type the following command as the superuser.
 +
 
 +
<!--T:39-->
 +
'''pc-updatemanager pkgcheck'''
 +
Updating repository catalogue
 +
Upgrades have been requested for the following 253 packages:
 +
list of packages snipped
 +
The upgrade will require 70 MB more space
 +
439 MB to be downloaded
 +
To start the upgrade run "/usr/local/bin/pc-updatemanager pkgupdate"
 +
 
 +
<!--T:40-->
 +
In this example, newer versions are available for 253 packages. The list of package names was snipped from the sample output. If no updates were available, the output would have instead said "All packages are up to date!".
 +
 
 +
<!--T:41-->
 +
If updates are available, you can install them with this command:
 +
 
 +
<!--T:42-->
 +
'''pc-updatemanager pkgupdate'''
 +
Updating repository catalogue
 +
snip downloading and reinstalling output
 +
[253/253] Upgrading pcbsd-base from 1374071964 to 1378408836... done
 +
Extracting desktop overlay data...DONE
 +
 
 +
<!--T:43-->
 +
While the output has been snipped from this example, the update process will download the latest versions of the packages which need updating, displaying the download progress for each file. Once the downloads are complete, it will display the reinstallation process for each file. The last step of the update process is to extract the desktop (or server) overlay and then to return the prompt.
 +
 
 +
<!--T:44-->
 +
How long the package upgrade takes depends upon the number of packages and the speed of the Internet connection. If you run this command on a desktop, you should log out and log in again so that you load the latest version of the desktop and its applications. If you run this command on a server while running the tcsh shell, type '''rehash''' in order to tell the shell that new applications have been installed.
  
 
===Applying System Updates=== <!--T:34-->
 
===Applying System Updates=== <!--T:34-->
  
 
<!--T:35-->
 
<!--T:35-->
, become the superuser and use the following command to check to see if an update is available:
+
To determine if any system updates are available, type the following command as the superuser:  
  
 
<!--T:23-->
 
<!--T:23-->
{{txtbox|box='''pc-updatemanager check'''
+
'''pc-updatemanager check'''
The following updates are available:
+
The following updates are available:
<nowiki>-</nowiki>-----------------------------------
+
<nowiki>------------------------------------</nowiki>
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"}}
+
  
 
<!--T:24-->
 
<!--T:24-->
Line 50: Line 68:
  
 
===Upgrading the Operating System=== <!--T:36-->
 
===Upgrading the Operating System=== <!--T:36-->
 +
 +
<!--T:30-->
 +
'''NOTE:''' ''' ''before performing an operating system upgrade, read the caveats listed [[Update_Manager#Upgrading_the_Operating_System|here]]. Be sure to backup your important data to another system or external device before starting the upgrade.'' '''
  
 
<!--T:25-->
 
<!--T:25-->
{{txtbox|box='''pc-updatemanager install release-9.1'''
+
{{txtbox|box='''pc-updatemanager install release-9.1'''{{nbsp|44}}
 
STARTINGUPDATE: 9.1
 
STARTINGUPDATE: 9.1
 
Downloading Master Files...}}
 
Downloading Master Files...}}

Revision as of 06:41, 24 September 2013

(Sorry for the inconvenience)

Contents

pc-updatemanager is the command line equivalent to Update Manager. It can be used to apply system updates and to perform an operating system upgrade. It can also be used to update packages, providing a command line equivalent to the "Package Updates" tab of Package Manager.

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

Upgrading Packages

To determine if newer versions of packages are available, type the following command as the superuser.

pc-updatemanager pkgcheck
Updating repository catalogue
Upgrades have been requested for the following 253 packages:
list of packages snipped
The upgrade will require 70 MB more space
439 MB to be downloaded
To start the upgrade run "/usr/local/bin/pc-updatemanager pkgupdate"

In this example, newer versions are available for 253 packages. The list of package names was snipped from the sample output. If no updates were available, the output would have instead said "All packages are up to date!".

If updates are available, you can install them with this command:

pc-updatemanager pkgupdate
Updating repository catalogue
snip downloading and reinstalling output
[253/253] Upgrading pcbsd-base from 1374071964 to 1378408836... done
Extracting desktop overlay data...DONE

While the output has been snipped from this example, the update process will download the latest versions of the packages which need updating, displaying the download progress for each file. Once the downloads are complete, it will display the reinstallation process for each file. The last step of the update process is to extract the desktop (or server) overlay and then to return the prompt.

How long the package upgrade takes depends upon the number of packages and the speed of the Internet connection. If you run this command on a desktop, you should log out and log in again so that you load the latest version of the desktop and its applications. If you run this command on a server while running the tcsh shell, type rehash in order to tell the shell that new applications have been installed.

Applying System Updates

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

pc-updatemanager check
The following updates are available:
------------------------------------

Follow the instructions to install the update:

Upgrading the Operating System

NOTE: before performing an operating system upgrade, read the caveats listed here. Be sure to backup your important data to another system or external device before starting the upgrade.

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


Other languages:German 59% • ‎English 100% • ‎French 9%
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox