From a9fe6aa982d962b59cfdd5b07eb8eff0d268a235 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 8 Apr 2025 22:14:20 +0200 Subject: [PATCH] Update Linux installation instructions Closes #1502 --- README.rst | 36 ++++++++++-------------------------- 1 file changed, 10 insertions(+), 26 deletions(-) diff --git a/README.rst b/README.rst index 231de2c0..b7c222fe 100644 --- a/README.rst +++ b/README.rst @@ -209,43 +209,27 @@ If pip is not installed check if easy_install is available on the system. Linux: ====== -In depth getting started guide for ``pip`` - https://pip.pypa.io/en/latest/installation/ - -Check if pip is already available in your system. - -:: - - $ which pip - -If it doesn't exist, use your linux package manager to install `pip`. This -might look something like: - -:: - - $ sudo apt-get install python-pip # Debian, Ubuntu, Mint etc - - or +Many distributions have ``pgcli`` packages. +Refer to https://repology.org/project/pgcli/versions or your distribution to check the available versions. - $ sudo yum install python-pip # RHEL, Centos, Fedora etc +Alternatively, you can use tools such as `pipx`_ or `uvx`_ to install the latest published package to an isolated virtual environment. -``pgcli`` requires python-dev, libpq-dev and libevent-dev packages. You can -install these via your operating system package manager. +.. _pipx: https://pipx.pypa.io/ +.. _uvx: https://docs.astral.sh/uv/guides/tools/ +Run: :: - $ sudo apt-get install python-dev libpq-dev libevent-dev + $ pipx install pgcli - or - - $ sudo yum install python-devel postgresql-devel - -Then you can install pgcli: +to install ``pgcli`` with ``pipx``, or run: :: - $ sudo pip install pgcli + $ uvx pgcli +to run ``pgcli`` by installing on the fly with ``uvx``. Docker ======