mirror of https://github.com/aminya/setup-cpp
1.8 KiB
1.8 KiB
setup-apt
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.