How To Install python3-gphoto2 on Fedora 36

In this tutorial we learn how to install python3-gphoto2 in Fedora 36. python3-gphoto2 is A Python interface to libgphoto2

Introduction

In this tutorial we learn how to install python3-gphoto2 on Fedora 36.

What is python3-gphoto2

python-gphoto2 is a comprehensive Python interface (or binding) to libgphoto2. It is built using SWIG to automatically generate the interface code. This gives direct access to nearly all the libgphoto2 functions, but sometimes in a rather un-Pythonic manner.

We can use yum or dnf to install python3-gphoto2 on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-gphoto2.

Install python3-gphoto2 on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-gphoto2 using dnf by running the following command:

sudo dnf -y install python3-gphoto2

Install python3-gphoto2 on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-gphoto2 using yum by running the following command:

sudo yum -y install python3-gphoto2

How To Uninstall python3-gphoto2 on Fedora 36

To uninstall only the python3-gphoto2 package we can use the following command:

sudo dnf remove python3-gphoto2

python3-gphoto2 Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/28
/usr/lib/.build-id/28/5b4dcd0e9dbd4886583068fd87037f6e9b936f
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/3892b86c52ca0bc810b0f8707418def61fa46a
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/c64296cfe1d32ec89792bc8bcfeb8794956e22
/usr/lib/.build-id/86
/usr/lib/.build-id/86/da0026cdde0bc60b0beb4758c528a34450070b
/usr/lib/.build-id/97
/usr/lib/.build-id/97/0e87519fef4332eca7b090e2ae893a972605e4
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/056779f607f69d97fc51df13b1561d2c195436
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/e5734fd786baf2ac9efc9b1036b706488e37c0
/usr/lib/.build-id/be
/usr/lib/.build-id/be/d2fdb23bdb1f2f73789f67f11280b85209e861
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/a2cd660b081f755c70b8001216fba1c5fa04b3
/usr/lib/.build-id/c9
/usr/lib/.build-id/c9/19558a73d7e13b2ce2ef34834aedc695ed3da8
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/002a572a6caa847d6c9f3b0b57a14e08a46cb4
/usr/lib64/python3.10/site-packages/gphoto2
/usr/lib64/python3.10/site-packages/gphoto2-2.0.0-py3.10.egg-info
/usr/lib64/python3.10/site-packages/gphoto2/__init__.py
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/abilities_list.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/abilities_list.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/camera.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/camera.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/context.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/context.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/file.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/file.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/filesys.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/filesys.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/list.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/list.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/port_info_list.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/port_info_list.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/port_log.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/port_log.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/result.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/result.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/version.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/version.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/widget.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/gphoto2/__pycache__/widget.cpython-310.pyc
/usr/lib64/python3.10/site-packages/gphoto2/_abilities_list.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_camera.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_context.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_file.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_filesys.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_list.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_port_info_list.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_port_log.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_result.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_version.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/_widget.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/gphoto2/abilities_list.py
/usr/lib64/python3.10/site-packages/gphoto2/camera.py
/usr/lib64/python3.10/site-packages/gphoto2/context.py
/usr/lib64/python3.10/site-packages/gphoto2/file.py
/usr/lib64/python3.10/site-packages/gphoto2/filesys.py
/usr/lib64/python3.10/site-packages/gphoto2/list.py
/usr/lib64/python3.10/site-packages/gphoto2/port_info_list.py
/usr/lib64/python3.10/site-packages/gphoto2/port_log.py
/usr/lib64/python3.10/site-packages/gphoto2/result.py
/usr/lib64/python3.10/site-packages/gphoto2/version.py
/usr/lib64/python3.10/site-packages/gphoto2/widget.py
/usr/share/doc/python3-gphoto2
/usr/share/doc/python3-gphoto2/CHANGELOG.txt
/usr/share/doc/python3-gphoto2/README.rst
/usr/share/doc/python3-gphoto2/examples
/usr/share/doc/python3-gphoto2/examples/cam-conf-view-gui.py
/usr/share/doc/python3-gphoto2/examples/camera-config-gui-oo.py
/usr/share/doc/python3-gphoto2/examples/camera-config-gui.py
/usr/share/doc/python3-gphoto2/examples/camera-summary-oo.py
/usr/share/doc/python3-gphoto2/examples/camera-summary.py
/usr/share/doc/python3-gphoto2/examples/capture-image.py
/usr/share/doc/python3-gphoto2/examples/choose-camera.py
/usr/share/doc/python3-gphoto2/examples/clear-space.py
/usr/share/doc/python3-gphoto2/examples/context_with_callbacks.py
/usr/share/doc/python3-gphoto2/examples/copy-chunks.py
/usr/share/doc/python3-gphoto2/examples/copy-data.py
/usr/share/doc/python3-gphoto2/examples/copy-files.py
/usr/share/doc/python3-gphoto2/examples/error_handling.py
/usr/share/doc/python3-gphoto2/examples/focus-gui.py
/usr/share/doc/python3-gphoto2/examples/get-camera-clock.py
/usr/share/doc/python3-gphoto2/examples/get-capture-target.py
/usr/share/doc/python3-gphoto2/examples/list-cameras-oo.py
/usr/share/doc/python3-gphoto2/examples/list-cameras.py
/usr/share/doc/python3-gphoto2/examples/list-files-oo.py
/usr/share/doc/python3-gphoto2/examples/list-files.py
/usr/share/doc/python3-gphoto2/examples/log_events.py
/usr/share/doc/python3-gphoto2/examples/preview-image.py
/usr/share/doc/python3-gphoto2/examples/read-exif-exifread.py
/usr/share/doc/python3-gphoto2/examples/read-exif-gexiv2.py
/usr/share/doc/python3-gphoto2/examples/set-camera-clock.py
/usr/share/doc/python3-gphoto2/examples/set-capture-target.py
/usr/share/doc/python3-gphoto2/examples/time_lapse.py
/usr/share/doc/python3-gphoto2/examples/wait-for-event-oo.py
/usr/share/doc/python3-gphoto2/examples/wait-for-event.py
/usr/share/licenses/python3-gphoto2
/usr/share/licenses/python3-gphoto2/LICENSE.txt

References

Summary

In this tutorial we learn how to install python3-gphoto2 on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).