From 905c59c0be65cf86f9aa7ba162bf90c2278702fc Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 29 2019 13:44:18 +0000 Subject: Port the README to dnf and python3 (but note that it still works with py2) Signed-off-by: Pierre-Yves Chibon --- diff --git a/README.rst b/README.rst index 2739b97..1049288 100644 --- a/README.rst +++ b/README.rst @@ -18,7 +18,7 @@ Install Prerequisites :: - yum install python-requests + dnf install python3-requests Get and Run the Source @@ -28,7 +28,7 @@ Get and Run the Source git clone https://pagure.io/is-it-in-rhel.git cd is-it-in-rhel - python is-it-in-rhel.py + python3 is-it-in-rhel.py Arguments @@ -38,7 +38,7 @@ Use the ``--release`` option to restrict searching to a specific RHEL release: :: - $ python is-it-in-rhel.py kernel --release 7 + $ python3 is-it-in-rhel.py kernel --release 7 kernel is in RHEL 7; version: 3.10.0; archs: noarch, ppc64, x86_64 @@ -46,7 +46,7 @@ Use the ``--search`` option to allow imperfect match: :: - $ python is-it-in-rhel.py turbogears --search --release 6 + $ python3 is-it-in-rhel.py turbogears --search --release 6 TurboGears2 is in RHEL 6; version: 2.0.3; arch: noarch @@ -54,5 +54,7 @@ Use the ``--channel`` option to see in which channel the package can be found: :: - $ python is-it-in-rhel.py gnome-terminal --channel --release 7 + $ python3 is-it-in-rhel.py gnome-terminal --channel --release 7 gnome-terminal is in RHEL 7; version: 3.8.4; archs: ppc64, x86_64; channels: rhel-7-for-power-rpms, rhel-7-server-rpms + +* Note that is-it-in-rhel also works with python 2.7