This guide walks through a self-hosted installation of Pagure.
Install required packages including Git, Python, and Redis.
sudo dnf install -y git python3 python3-pip redis postgresql postgresql-contrib
Install Pagure using pip.
pip3 install pagure
Create the configuration file.
sudo mkdir -p /etc/pagure
sudo cp /usr/share/doc/pagure/pagure.cfg.example /etc/pagure/pagure.cfg
Set up the PostgreSQL database and initialize Pagure.
sudo -u postgres createdb pagure
sudo -u postgres createuser pagure
pagure-admin db-create /etc/pagure/pagure.cfg
Enable and start required services.
sudo systemctl enable redis pagure-worker pagure-message pagure-webhook
sudo systemctl start redis pagure-worker pagure-message pagure-webhook
Prefer automation? See Pagure Ansible Setup for an example playbook.
Note: Pagure does not have an official Docker image. The Pagure project provides a development docker-compose setup in the repository (dev/docker-compose.yml), but production deployments should use traditional installation. See Pagure Docker Setup for development options.
Any questions?
Feel free to contact us. Find all contact information on our contact page.