UNPKG

setup-apt

Version:

Setup apt packages and repositories in Debian/Ubuntu-based distributions

13 lines (12 loc) 466 B
/** * Check if a package is installed * @param pack The package to check * @returns `true` if the package is installed, `false` otherwise */ export declare function isAptPackInstalled(pack: string): Promise<boolean>; /** * Check if a package matching a regexp is installed * @param regexp The regexp to check * @returns `true` if a package is installed, `false` otherwise */ export declare function isAptPackRegexInstalled(regexp: string): Promise<boolean>;