cppkg setroot

Description

Configures the path to the root directory of the SmartUpdate software packages repository.

Notes:

  • You can run this command only in the Expert mode.

  • On a Multi-Domain Server, you must run this command in the context of the MDS (run the mdsenv command).

  • The default path is: /var/log/cpupgrade/suroot

  • When changing repository root directory:

    • This command copies the software packages from the old repository to the new repository. A package in the new location is overwritten by a package from the old location, if the packages have the same name.

    • This command updates the value of the environment variable $SUROOT in the Check Point Profile shell scripts ($CPDIR/tmp/.CPprofile.sh and $CPDIR/tmp/.CPprofile.csh).

Syntax

cppkg setroot <Full Path to Repository Root Directory>

Example

[Expert@MGMT:0]# cppkg setroot /var/log/my_directory
 
Repository root is set to : /var/log/cpupgrade/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/log/my_directory
 
Notice : To complete the setting of your directory, reboot the machine!
[Expert@MGMT:0]#