Home >

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

package update

Update an existing secure package on the Luna 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 Luna 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 Luna 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 must log into the HSM before you run this command.  

Syntax

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

Parameter Shortcut Description
-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.
<filename>  

Specifies the name of the package to update. The new version of the package must have been transferred to the Luna appliance using scp.

Example

lunash:>hsm login
Please attend to the PED...
Command Result : 0 (Success)
 
lunash:>package update fwupK6_real-6.0.9-RC1.spkg -authcode pHLJtJ7/xJXS/FFK
Command succeeded:  decrypt package
Command succeeded:  verify package certificate
Command succeeded:  verify package signature
Preparing packages for installation...
fwupK6_real-6.0.9-RC1
Command Result : 0 (Success)