208. Printerlib

208.1. Authors

    208.2. Summary of Module Globals

    List of Global Functions

    • ExecuteBashCommand - Wrapper for SCR::Execute to execute a bash command to increase verbosity via y2milestone. It reports the command via y2milestone in any case and it reports exit code, stdout and stderr via y2milestone in case of non-zero exit code.

    • TestAndInstallPackage - Test whether the package is installed (calls 'rpm -q package_name') or test whether the package is available to be installed (Package::Available) and if yes then install it (Package::Install) if it is not yet installed or remove the package (Package::Remove) if it is installed.

    List of Global Variables

      208.3. Global Functions

      208.3.1. ExecuteBashCommand

      Wrapper for SCR::Execute to execute a bash command to increase verbosity via y2milestone. It reports the command via y2milestone in any case and it reports exit code, stdout and stderr via y2milestone in case of non-zero exit code.

      Function parameters

      • string bash_commandline

      Return value

      • boolean - true on success

      208.3.2. TestAndInstallPackage

      Test whether the package is installed (calls 'rpm -q package_name') or test whether the package is available to be installed (Package::Available) and if yes then install it (Package::Install) if it is not yet installed or remove the package (Package::Remove) if it is installed.

      Function parameters

      • string package_name

      • string action

      Return value

      • boolean - true on success

      208.4. Global Variables

      208.5. Module Requirements

      208.5.1. Module Imports

      • Package
      • Popup
      • Service

      208.5.2. Module Includes