Print Download PDF Send Feedback

Previous

Next

cppkg

Description Manages the product repository. It is always executed on the Security Management Server.

Important - This command is not supported for gateways running on Gaia OS.

cppkg add

Description Adds a product package to the product repository. You can only add SmartUpdate packages to the product repository.

Add products to the repository by importing a file downloaded from the Download Center. Add the package file to the repository directly from a DVD or from a local or network drive.

Syntax:

> cppkg add {<package-full-path>|<CD drive> [product]}

Parameter

Description

package-full-path

If the package you want to add to the repository is on a local disk or network drive, type the full path to the package.

CD drive

If the package you want to add to the repository is on a DVD:

  • For Windows machines type the DVD drive letter, for example: d:\
  • For UNIX machines, type the DVD root path, for example: /caruso/image/CPsuite-R80.10

You are asked to specify the product and appropriate operating system (OS).

Note - cppkg add does not overwrite existing packages. To overwrite existing packages, you must first delete existing packages.

Example:

[d:\winnt\fw1\ng\bin]cppkg add l:\CPsuite-R80.10\

Enter package name:

----------------------

(1) SVNfoundation

(2) firewall

(3) floodgate

(4) rtm

 

(e) Exit

Enter your choice : 1

Enter package OS :

----------------------

(1) win32

(2) linux

(3) ipso

 

(e) Exit

Enter your choice : 1

You choose to add 'SVNfoundation' for 'win32' OS. Is this correct? [y/n] : y

cppkg delete

Description Deletes a product package from the repository. To delete a product package you must specify a number of options. To see the format of the options and to view the contents of the product repository, use the cppkg print command.

Syntax:

> cppkg delete <vendor> <product> <version> <os> [sp]

Parameter

Description

vendor

Package vendor. For example, checkpoint

product

Package name.

version

Package version.

os

Package Operating System. Options are: win32, solaris, ipso, linux

sp

Package minor version.

Note - It is not possible to undo the cppkg del command.

cppkg get

Description Synchronizes the Package Repository database with the content of the actual package repository under $SUROOT

Syntax:

> cppkg get

cppkg getroot

Description Finds the location of the product repository. The default product repository location on Windows machines is C:\SUroot. On UNIX machines it is /var/SUroot.

Syntax:

> cppkg getroot

Example:

> cppkg getroot

Current repository root is set to : /var/suroot/

cppkg print

Description Lists the contents of the product repository.

Use cppkg print to see the product and OS strings required to install a product package using the cprinstall command, or to delete a package using the cppkg delete command.

Syntax:

> cppkg print

cppkg setroot

Description Creates a new repository root directory location and moves existing product packages into the new repository.

The default product repository location is created when the Security Management Server is installed. On Windows machines the default location is C:\SUroot and on UNIX machines it is /var/SUroot. Use this command to change the default location.

When changing repository root directory:

The repository root directory should have at least 200 Mbyte of free disk space.

Syntax:

> cppkg setroot <repository>

Parameter

Description

<repository>

The full path for the desired location for the product repository.

Note - It is important to reboot the Security Management Server after using this command. This sets the new $SUROOT environment variable.

Example:

cppkg setroot /var/new_suroot

Repository root is set to : /var/new_suroot/

 

Note: When changing repository root directory :

1. Old repository content will be copied into the new repository.

2. A package in the new location will be overwritten by a package in the old
location, if the packages have the same name.

 

Change the current repository root ? [y/n] : y

 

The new repository directory does not exist. Create it ? [y/n] : y

 

Repository root was set to : /var/new_suroot

 

Notice : To complete the setting of your directory, reboot the machine!