From: | robert <robert(at)redcor(dot)ch> |
---|---|
To: | pgsql-admin(at)lists(dot)postgresql(dot)org |
Subject: | Re: Update: pgAdmin4 3.0 rpm repo for Fedora 28 |
Date: | 2018-06-02 13:22:24 |
Message-ID: | 96beb6e1-179b-8c67-4441-2e78b2b5fdc6@redcor.ch |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
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
>
From | Date | Subject | |
---|---|---|---|
Next Message | Stéphane KANSCHINE | 2018-06-04 05:21:37 | Re: Update: pgAdmin4 3.0 rpm repo for Fedora 28 |
Previous Message | Tal Glozman | 2018-06-02 11:39:40 | Update: pgAdmin4 3.0 rpm repo for Fedora 28 |