Apache Airflow installation on a Linux system

Karim Faiz
3 min readDec 9, 2023

To install Apache Airflow on a Linux system, you can use the following steps. These instructions assume you have Python and pip installed. If not, you can install them using your system’s package manager.

1. Install Dependencies:

Ubuntu/Debian:

sudo apt-get update
sudo apt-get install -y python3 python3-pip

CentOS/RHEL:

sudo yum install -y epel-release
sudo yum install -y python3 python3-pip

2. Install Apache Airflow:

pip install apache-airflow

if you get an error : “This environment is externally managed” follow the virtual env setup at the end of this post

3. Initialize the Airflow Database:

airflow db init

This command initializes the metadata database required by Airflow. It creates the necessary tables and schema.

4. Start the Airflow Web Server and Scheduler:

airflow webserver -p 8080

In a new terminal, start the scheduler:

airflow scheduler

5. Access the Airflow Web…

--

--

Karim Faiz

Data Architect / Data Engineer - Follow me to stay informed and be the first to benefit from my upcoming articles! 🌟👏 My links 🔗 : https://bio.link/karimfaiz