https://github.com/gerlero/apt-install
GitHub Action to install and cache APT packages
https://github.com/gerlero/apt-install
apt apt-get cache caching github-actions install
Last synced: 8 months ago
JSON representation
GitHub Action to install and cache APT packages
- Host: GitHub
- URL: https://github.com/gerlero/apt-install
- Owner: gerlero
- License: mit
- Created: 2024-08-23T18:22:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-18T22:37:06.000Z (9 months ago)
- Last Synced: 2025-08-19T00:27:30.338Z (9 months ago)
- Topics: apt, apt-get, cache, caching, github-actions, install
- Homepage:
- Size: 54.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# apt-install
[](https://github.com/gerlero/apt-install/actions/workflows/ci.yml)
[](https://github.com/gerlero/apt-install/actions/workflows/update-tags.yml)
GitHub Action to install and cache APT packages.
## Usage
```yaml
- uses: gerlero/apt-install@v1
with:
packages: curl
```
## Inputs
### `packages`
**Required**. A package name or a whitespace-separated list of package names to install.
### `cache`
Whether to cache installed packages between runs. Default: `true`.
### `install-recommends`
Whether to install optional packages recommended by the packages to install. Default: `true`.
### `install-suggests`
Whether to install optional packages suggested by the packages to install. Default: `false`.
### `update`
Whether to update the package list (i.e., run `apt-get update`) before installing the packages. Default: `true`.
### `upgrade`
Whether to upgrade the listed packages if they are already installed and newer versions are available. Default: `true`.
## Related actions
- [`gerlero/add-apt-repository`](https://github.com/gerlero/add-apt-repository): GitHub Action to add a new APT repository for installing packages.
- [`gerlero/brew-install`](https://github.com/gerlero/brew-install): GitHub Action to install and cache Homebrew packages.