cas-pm tool

KasperskyOS Community Edition includes the cas-pm tool (the toolchain/bin/cas-pm executable file), which installs KPA packages in a built KasperskyOS-based solution image.

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

cas-pm {-p|--pkgsdir} <DIR> {-d|--dbpath} <PATH> {-a|--appsdir} <DIR>

[--rootdir <DIR>] [{-l|--layout} <PATH>] {-e|--extention} <ARG> {-r|--reinstall}

<-v[v...]> [--sign-ext <ARG>] [--index-ext <ARG>] <PACKAGES>... [--version] [-h|--help]

Parameters:

Examples of shell commands for running the cas-pm tool:

# Reinstall the helloworld.kpa package located in the directory defined by the ${PKG_DIR} variable.

# The package will first be put into the directory ${ROOTFS_DIR}/package before it is written to the image of the

# KasperskyOS-based solution. The directory ${ROOTFS_DIR}/package resides in the file system

# that will be copied to the solution image. The repository.sqlite database containing information about the

# packages installed in the image will reside in the directory defined by the ${ROOTFS_DIR} variable.

# During installation, the actions performed by the tool are logged in detail.

/opt/KasperskyOS-Community-Edition-<version>/toolchain/bin/cas-pm

--pkgsdir ${PKG_DIR}

--reinstall

-vvv

--dbpath ${ROOTFS_DIR}/repository.sqlite

--appsdir ${ROOTFS_DIR}/package

--rootdir ${ROOTFS_DIR}/package

--extension kpa

${PKG_DIR}/helloworld

Page top