ts-apt - v1.1.2
    Preparing search index...

    Function createPackageManager

    APT manager implementations and factory export.

    • Creates a package manager instance.

      Commands executed during setup:

      • Always: no external command (logger and runner are initialized in-process).
      • When enableAptFast is true: dpkg-query -W aria2 to verify apt-fast prerequisites.

      Example output parsed during apt-fast check:

      ii  aria2  1.36.0-1 amd64 High speed download utility
      

      Parameters

      • enableAptFast: boolean

        Whether to enable APT-fast which is a wrapper for apt to speed up package downloads.

      • OptionalappLogger: Logger

        Logger instance for application logs.

      • OptionalcommandExecLogger: Logger

        Logger instance for capturing APT commands execution.

      • simulate: boolean = false

        Whether to simulate mutating operations without making actual changes.

      Returns Promise<PackageManager>

      A configured PackageManager instance.