From: robert <robert@redcor.ch>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Update: pgAdmin4 3.0 rpm repo for Fedora 28
Date: Sat, 2 Jun 2018 15:22:24 +0200
Message-ID: <96beb6e1-179b-8c67-4441-2e78b2b5fdc6@redcor.ch> (raw)
In-Reply-To: <CAMreHJ+6+=L8pFO1xAnjGH-3sa7JeGB+v4twWB1FZrWg_VQjAg@mail.gmail.com>
References: <CAMreHJ+6+=L8pFO1xAnjGH-3sa7JeGB+v4twWB1FZrWg_VQjAg@mail.gmail.com>
i never used fedora ..
but here is how I use pgadmin4 on ubuntu as non root in non server mode:
1. install virtualenv wrapper
http://virtualenvwrapper.readthedocs.io/en/latest/install.html
2. create a virtual env environment for pgadmin
mkvirtualenv -p python3.6 pgadmin
3. start the virtualenv (if not yet started)
workon pgadmin
4. install pgadmin
pip install pgadmin4
5. add some configuration to allow pgdmin4 to run in usermode
cd ~/.virtualenvs/pgadmin/lib/python3.6/site-packages/pgadmin4
- create config_local.py with the following content
import os
DATA_DIR = os.path.realpath(os.path.expanduser(u'~/.pgadmin/'))
LOG_FILE = os.path.join(DATA_DIR, 'pgadmin4.log')
SQLITE_PATH = os.path.join(DATA_DIR, 'pgadmin4.db')
SESSION_DB_PATH = os.path.join(DATA_DIR, 'sessions')
STORAGE_DIR = os.path.join(DATA_DIR, 'storage')
SERVER_MODE = False
6. create an alias in ~/.bash_aliases to start pgadmin
alias pg4="workon pgadmin;python
~/.virtualenvs/pgadmin/lib/python3.6/site-packages/pgadmin4/pgAdmin4.py"
obertHTH
r
step 6 might be different for fedora
pip install pg
On 02.06.2018 13:39, Tal Glozman wrote:
> Hello,
>
> I'm using Fedora 28 and trying to install pgAdmin4 3.0 from the
> repositories. The steps in your homepage for fedora say that I have to
> install an rpm file, after installing the rpm for Fedora 28 that I can
> install pgadmin4 using the DNF command.
>
> I simply can't find and install pgadmin4 using the DNF command. Am I
> missing here something?
>
> Best regards,
> Tal
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: robert@redcor.ch
Subject: Re: Update: pgAdmin4 3.0 rpm repo for Fedora 28
In-Reply-To: <96beb6e1-179b-8c67-4441-2e78b2b5fdc6@redcor.ch>
References: <CAMreHJ+6+=L8pFO1xAnjGH-3sa7JeGB+v4twWB1FZrWg_VQjAg@mail.gmail.com> <96beb6e1-179b-8c67-4441-2e78b2b5fdc6@redcor.ch>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox