KasperskyOS Community Edition 1.3

cas-pack tool

KasperskyOS Community Edition includes the cas-pack tool (the toolchain/bin/cas-pack executable file) intended for building a KPA package in a system where the KasperskyOS Community Edition SDK is installed.

Syntax of the shell command for running the cas-pack tool:

cas-pack {-o|--output} <FILE> --manifest <FILE> --verify [--version] [-h|--help] <FILES>...

Parameters:

  • {-o|--output} <FILE>

    Full name of the built KPA package file.

  • --manifest <FILE>

    Full name of the KPA package manifest file.

  • <FILES>

    List of the full names of files that will be included in the KPA package. Use a space to separate list items. You can use the * character to select all files in the directory.

  • --verify

    Verification of the presence of all KPA package components specified in its manifest and the absence of unspecified components, and calculation of the checksums of KPA package components and their comparison with those specified in the KPA package manifest.

  • --version

    Tool version.

  • -h|--help

    Help text.

Example of the shell command for running the cas-pack tool:

# Packages all program source files residing in the # files directory into the KPA package named helloworld.kpa. A KPA package is built # using information from the manifest.json file, which is the # KPA package manifest. The built KPA package is verified. /opt/KasperskyOS-Community-Edition-<version>/toolchain/bin/cas-pack --output ./helloworld.kpa --manifest ./manifest.json --verify ./files/*