Home >

LunaSH Command Reference Guide > LunaSH Commands > package > package update

package update

Update an existing secure package on the SafeNet appliance. All packages from SafeNet are signed and encrypted and come with an authcode that must be provided to decrypt and use the package. Use this command to update packages that can be seen when using the package listfile command. You can verify a package with the package verify command.

It is strongly recommended that your SafeNet appliance be connected to an Uninterruptable Power Supply (UPS) when you run this command. There is a small chance that a power failure during the update command could leave the SafeNet appliance  in an unrecoverable condition.

If a version of this package is already installed, an error occurs, for example:

Command failed: RPM update for original filename (fwupK6_real-6.0.9-RC1.i386.rpm)

Note:  You might need to log into the HSM before you run this command.  

User Privileges

Users with the following privileges can perform this command:

Admin

Operator

Syntax

package update <filename> -authcode <authcode> [-des3 | -useevp]    

Option Shortcut Description
<filename>     The name of the update package file.  
-authcode <authcode>   -a Specifies the secure package authorization code provided by SafeNet with the secure package - the authorization code is checked during package installation to ensure that the package was encrypted and signed by SafeNet.  
-des3 -d Use DES3 Cipher for backward compatibility with older secure package updates
(cannot be used simultaneously with -useevp).   
-force -f Force the action - useful when scripting; this option causes the command to proceed without confirmation.

Example

lunash:>package update lunasa_update-7.1.0-1.spkg -authcode s5Sb699pTEtPW36N

Command succeeded:  decrypt package

Command succeeded:  verify package certificate 

Command succeeded:  verify package signature
Preparing packages...
enableSFFBackup_lunacuf_update-1.0.1-1.i386
Running update script

BEGINNING UPDATE......
   Updating to Luna SA Release 7.1.0-1 

UNPACKING UPDATE FILES......

VERIFYING SOFTWARE PACKAGES......

1...Passed

INSTALLING SOFTWARE PACKAGES......

1...Passed

SOFTWARE UPDATE COMPLETED!

Package installed successfully.

Update Completed

Command Result : 0 (Success)