Skip to content

Installing pgadmin4 to Red Hat, CentOS, and Fedora

After about 100 hours of packaging and testing work, pgadmin4 RPMs hit PostgreSQL 9.4, 9.5 and 9.6 repos, for RHEL/CentOS 7 and Fedora 23, 24!

First of all, I'd like to write down the list of packages that entered git repo for pgadmin4 dependency:
python-flask-principal
python-flask-babel
python-flask
python-flask-wtf
python-flask-security
python-flask-gravatar
python-flask-mail
python-dateutil
django-htmlmin
babel
python-flask-login
python-wsgiref
python-fixtures
python-pbr
python-mimeparse
python-flask-sqlalchemy
python-pyrsistent
python-simplejson
python-wtforms
python-beautifulsoup4
python-itsdangerous
python-sqlalchemy
python-werkzeug
python-markupsafe
pytz
python-sqlparse
python-jinja2


I had to write spec files of, say, half of these from scratch, as they were not available before. I also had to edit the rest for unified spec file on Fedora and RHEL distros.

Anyway, these are just some random lovely data. What about installing pgadmin4? First of all: RHEL/CentOS/etc, users have to enable EPEL repo. Even though I've added lots of packages to repo already, some packages depend on EPEL. So, please first enable EPEL repo in your OS.

If you are already using our repo, then running just:

yum -y install pgadmin4
on RHEL/CentOS 7

or

dnf -y install pgadmin4
on Fedora 23 and 24

wiil be enough, if you have EPEL repo installed. What if you are not using our repo? Download the PostgreSQL YUM repo RPMs to add PGDG repo to OS. Then follow the instructions above to install pgadmin4.

pgadmin4 comes with a unit file to start the service, which is
pgadmin4.service.
. To start the service, run

systemctl start pgadmin4.service


If you want to enable pgadmin4 to run after reboot, make sure you enable it:

systemctl enable pgadmin4.service


Use disable instead of enable if you don't want it, and "stop" to stop the service.

For questions, please email pgsql-pkg-yum@postgresql.org

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Form options