For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
      • AstroFully-managed data operations, powered by Apache Airflow.
      • Astro Private CloudRun Airflow-as-a-service in your environment.
      • Professional ServicesExpert Airflow services for your enterprise's success.
    • Tools
      • Cosmos
      • Orbiter
      • CLI
      • AI SDK
      • Agents
      • Blueprint
      • UpdatesThe State of Airflow 2026See the insights from over 5,800 data practitioners in the full report. Download Now ➔
  • Customers
  • Docs
    • Insights
      • Blog
      • Webinars
      • Resource Library
      • Events
    • Education
      • Academy
      • What is Airflow?
  • Pricing
Get Started Free
        • Single-node install
        • Image architecture
        • Install Python packages
        • Upgrade Astronomer Certified
        • CVE policy
        • Support policy
      • User roles and permissions
      • System components
      • Helm chart configuration reference
      • Support
      • Version compatibility reference
      • Release and lifecycle policy
      • FAQ
      • Astro CLI command reference
    • Book Office Hours

Product

  • Platform Overview
  • Astro
  • Astro Observe
  • Astro Private Cloud
  • Security & Trust
  • Pricing

Tools & Services

  • Cosmos
  • Docs
  • Professional Services
  • Product Updates

Use Cases

  • AI Ops
  • Data Observability
  • ETL/ELT
  • ML Ops
  • Operational Analytics
  • All Use Cases

Industries

  • Financial Services
  • Gaming
  • Retail
  • Manufacturing
  • Healthcare
  • All Industries

Resources

  • Academy
  • eBooks & Guides
  • Blog
  • Webinars
  • Events
  • The Data Flowcast Podcast
  • All Resources

Airflow

  • What is Airflow
  • Airflow on Astro
  • Airflow 3.0
  • Airflow Upgrades
  • Airflow Use Cases
  • Airflow 2.x End of Life

Company

  • Our Story
  • Customers
  • Newsroom
  • Careers
  • Contact

Support

  • Knowledge Base
  • Status
  • Contact Support
GitHubYouTubeLinkedInx
  • Legal
  • Privacy
  • Terms of Service
  • Consent Preferences

  • Do Not Sell or Share My Personal information
  • Limit the Use Of My Sensitive Personal Information

Apache Airflow®, Airflow, and the Airflow logo are trademarks of the Apache Software Foundation. Copyright © Astronomer 2026. All rights reserved.

LogoLogo
On this page
  • Install packages to the Docker image
  • Install packages on a virtual machine
  • Install packages using Astronomer
ReferenceAstronomer Certified (Deprecated)

Install packages on Astronomer Certified images

Edit this page
Built with
No versions of Astronomer Certified (AC) are currently supported by Astronomer. Astronomer stopped releasing new versions of AC with the release of Apache Airflow 2.4. Astronomer recommends creating all new Deployments with Astro Runtime, as well as migrating existing Deployments from AC to Astro Runtime as soon as your organization is ready. See Migrate to Runtime and Runtime image architecture.

By default, the Astronomer Certified Docker image is distributed with a collection of pre-installed Python and OS-level packages to help users integrate with popular applications. Python-level packages are dependencies that Airflow uses, while OS-level packages are dependencies required for the underlying Debian OS. For the full list of built-in packages, read Image Architecture.

Depending on your use case and distribution of Astronomer Certified, you might want to install additional packages to your environment. This guide provides steps for installing dependencies to both Astronomer’s Docker image and Python wheel.

Install packages to the Docker image

If you use the Astronomer Certified Docker image to run Airflow, you can install packages directly onto your image via your Dockerfile. To install OS-level packages, you can specify them using a RUN directive with apt-get. For example, the following Dockerfile would install your-os-package on the image:

1FROM quay.io/astronomer/ap-airflow:2.2.0-buster-onbuild
2RUN apt-get update \
3 && apt-get install -y --no-install-recommends \
4 <your-os-package> \
5 && apt-get autoremove -yqq --purge \
6 && apt-get clean \
7 && rm -rf /var/lib/apt/lists/*

To install a specific version of an OS-level package, use the following format for your installation command:

apt-get install <your-os-package>=<version> -V

To install a Python-level package, specify the package using a RUN directive with pip install instead. For example:

1FROM quay.io/astronomer/ap-airflow:2.2.0-buster-onbuild
2RUN pip install --no-cache-dir --user <your-python-package>

To install a specific version of a Python-level package, include your package version in a pip constraints file and copy it into your Dockerfile.

The process for installing dependencies is different if you are using the Astro CLI to deploy your Docker image to Astronomer. For an Astronomer platform-based setup, see [Install packages via the Astro CLI](customize-image#add-python-and-os-level-dependencies.

Once you rebuild your image with docker-build, the image will have access to any packages that you specified. To confirm that a package was installed:

  1. Run docker ps and retrieve the container ID of your scheduler container.

  2. Run the following command:

    docker exec -it <scheduler-container-id> pip freeze | grep <package-name>

    If the package was successfully installed, you should see the following output:

    <package-name>==<version>

Install packages on a virtual machine

To build Python and OS-level packages into a machine running the Python wheel distribution of Astronomer Certified, run the following command:

1sudo -u astro ~astro/airflow-venv/bin/pip install --extra-index-url=https://pip.astronomer.io/simple/ 'astronomer-certified[<your-package>]==<airflow-version>.*'

You can also create your own Python packages and install them into your Airflow environment via a Python wheel, or you can configure an environment variable to automatically add the packages to your Astro project directory. For more information on this setup, read the Apache Airflow documentation on managing modules.

Install packages using Astronomer

If you’re using the Astro CLI to deploy the Astronomer Certified Docker image, there are alternative workflows for installing packages and other dependencies to your image. For more information, see Customize images.