# Using a Package Manager in GitHub Actions

DevFeed: [Using a Package Manager in GitHub Actions](<https://devfeed.tech/articles/using-a-package-manager-in-github-actions-4527.md>)

Original publisher: [Read original article](<https://feeds.feedblitz.com/~/924134489/0/baeldung/ops~Using-a-Package-Manager-in-GitHub-Actions>)

Author: Sidrah Abdullah

Published: 2025-08-31T19:08:15Z

Content type: tutorial

Language: en

Sources: [Baeldung - Ops](<https://devfeed.tech/sources/baeldung-ops.md>)

Topics: [ci](<https://devfeed.tech/topics/ci.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>)

Tags: [apt](<https://devfeed.tech/tags/apt.md>), [ci](<https://devfeed.tech/tags/ci.md>), [deployment-tools](<https://devfeed.tech/tags/deployment-tools.md>), [deployment-tools-git-docker-container-github-actions-package-management-ubuntu](<https://devfeed.tech/tags/deployment-tools-git-docker-container-github-actions-package-management-ubuntu.md>), [docker-container](<https://devfeed.tech/tags/docker-container.md>), [git](<https://devfeed.tech/tags/git.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [package-management](<https://devfeed.tech/tags/package-management.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

## AI overview

A tutorial on installing packages with apt-get in GitHub Actions workflows, including why clean Ubuntu runners need setup, a basic lcov example, and potential permission errors.

## Source excerpt

Learn how to safely and wisely use a package manager within GitHub Actions. Related Stories Get Files Modified in a PR in GitHub Actions Use Private Docker Image in GitHub Actions Using GitHub Actions to Create .env File in the Workflow