setup-cpp/packages/setup-apt
Amin Yahyaabadi 1865b24b57
docs: add readme for setup-apt and os-env
2024-08-16 02:01:51 -07:00
..
src feat: add setup-apt package for all the apt utils 2024-08-16 01:50:32 -07:00
.eslintrc.json feat: add setup-apt package for all the apt utils 2024-08-16 01:50:32 -07:00
README.md docs: add readme for setup-apt and os-env 2024-08-16 02:01:51 -07:00
package.json docs: add readme for setup-apt and os-env 2024-08-16 02:01:51 -07:00
tsconfig.json feat: add setup-apt package for all the apt utils 2024-08-16 01:50:32 -07:00

README.md

setup-apt

Version License: Apache--2.0

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

Install

npm install --save setup-apt

Usage

InstallationInfo (type)

aptTimeout (variable)

AptPackage (type)

installAptPack (function)

A function that installs a package using apt

Parameters:

  • packages (AptPackage[])
  • update (boolean)

returns: Promise

hasNala (function)

returns: boolean

getApt (function)

returns: string

addAptKeyViaServer (function)

Parameters:

  • keys (string[])
  • name (string)
  • server (string)

returns: Promise

addAptKeyViaDownload (function)

Parameters:

  • name (string)
  • url (string)

returns: Promise

updateAptAlternatives (function)

Parameters:

  • name (string)
  • path (string)
  • rcOptions (RcOptions)
  • priority (number)

returns: Promise

isAptPackInstalled (function)

Parameters:

  • pack (string)

returns: Promise

isAptPackRegexInstalled (function)

Parameters:

  • regexp (string)

returns: Promise

🤝 Contributing

You can sponsor my work here:

https://github.com/sponsors/aminya

Pull requests, issues and feature requests are welcome. See the Contributing guide.