Skip to content

Commit 4c6d169

Browse files
authored
Update Linux installation instructions (#1503)
Closes #1502
1 parent e47dc62 commit 4c6d169

File tree

1 file changed

+10
-26
lines changed

1 file changed

+10
-26
lines changed

README.rst

+10-26
Original file line numberDiff line numberDiff line change
@@ -209,43 +209,27 @@ If pip is not installed check if easy_install is available on the system.
209209
Linux:
210210
======
211211

212-
In depth getting started guide for ``pip`` - https://pip.pypa.io/en/latest/installation/
213-
214-
Check if pip is already available in your system.
215-
216-
::
217-
218-
$ which pip
219-
220-
If it doesn't exist, use your linux package manager to install `pip`. This
221-
might look something like:
222-
223-
::
224-
225-
$ sudo apt-get install python-pip # Debian, Ubuntu, Mint etc
226-
227-
or
212+
Many distributions have ``pgcli`` packages.
213+
Refer to https://repology.org/project/pgcli/versions or your distribution to check the available versions.
228214

229-
$ sudo yum install python-pip # RHEL, Centos, Fedora etc
215+
Alternatively, you can use tools such as `pipx`_ or `uvx`_ to install the latest published package to an isolated virtual environment.
230216

231-
``pgcli`` requires python-dev, libpq-dev and libevent-dev packages. You can
232-
install these via your operating system package manager.
217+
.. _pipx: https://pipx.pypa.io/
218+
.. _uvx: https://docs.astral.sh/uv/guides/tools/
233219

220+
Run:
234221

235222
::
236223

237-
$ sudo apt-get install python-dev libpq-dev libevent-dev
224+
$ pipx install pgcli
238225

239-
or
240-
241-
$ sudo yum install python-devel postgresql-devel
242-
243-
Then you can install pgcli:
226+
to install ``pgcli`` with ``pipx``, or run:
244227

245228
::
246229

247-
$ sudo pip install pgcli
230+
$ uvx pgcli
248231

232+
to run ``pgcli`` by installing on the fly with ``uvx``.
249233

250234
Docker
251235
======

0 commit comments

Comments
 (0)