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:
/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 packagespkgupdate - Install packages updates
To determine if newer versions of packages are available, type the following command as the superuser.
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 downloadedTo 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:
Updating repository catalogue snip downloading and reinstalling output [253/253] Upgrading pcbsd-base from 1374071964 to 1378408836... doneExtracting 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:
The following updates are available: ------------------------------------ NAME: Update PKGNG repository configuration TYPE: PATCH TAG: pkgng-1.2.3-12112013 DETAILS: http://trac.pcbsd.org/wiki/patch-20131211-pkg SIXE: 2MbTo install: "pc-updatemanager install pkgng-1.2.3-12112013"
Follow the instructions to install the update:
Upgrading the Operating System
before performing an operating system upgrade, read the caveats listed in Update manager. Be sure to backup your important data to another system or external device before starting the upgrade.
STARTINGUPDATE: 9.1Downloading Master Files...
The upgrade will then proceed as usual and you will be prompted when the system is ready to reboot.