How To Install gphoto2 on Fedora 34

gphoto2 is Software for accessing digital cameras

Introduction

In this tutorial we learn how to install gphoto2 on Fedora 34.

What is gphoto2

The gPhoto2 project is a universal, free application and library framework that lets you download images from several different digital camera models, including the newer models with USB connections. Note that a) for some older camera models you must use the old “gphoto” package. b) for USB mass storage models you must use the driver in the kernel This package contains the command-line utility gphoto2. Other (GUI) frontends are available separately.

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

Install gphoto2 on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install gphoto2

Install gphoto2 on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install gphoto2

How To Uninstall gphoto2 on Fedora 34

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

sudo dnf remove gphoto2

gphoto2 Package Contents on Fedora 34

/usr/bin/gphoto2
/usr/lib/.build-id
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/3c005c3f3d596439df837fe9dc6c1421f103f3
/usr/share/doc/gphoto2
/usr/share/doc/gphoto2/NEWS
/usr/share/doc/gphoto2/README
/usr/share/doc/gphoto2/TODO
/usr/share/licenses/gphoto2
/usr/share/licenses/gphoto2/COPYING
/usr/share/locale/az/LC_MESSAGES/gphoto2.mo
/usr/share/locale/cs/LC_MESSAGES/gphoto2.mo
/usr/share/locale/da/LC_MESSAGES/gphoto2.mo
/usr/share/locale/de/LC_MESSAGES/gphoto2.mo
/usr/share/locale/en_GB/LC_MESSAGES/gphoto2.mo
/usr/share/locale/es/LC_MESSAGES/gphoto2.mo
/usr/share/locale/eu/LC_MESSAGES/gphoto2.mo
/usr/share/locale/fi/LC_MESSAGES/gphoto2.mo
/usr/share/locale/fr/LC_MESSAGES/gphoto2.mo
/usr/share/locale/hu/LC_MESSAGES/gphoto2.mo
/usr/share/locale/id/LC_MESSAGES/gphoto2.mo
/usr/share/locale/is/LC_MESSAGES/gphoto2.mo
/usr/share/locale/it/LC_MESSAGES/gphoto2.mo
/usr/share/locale/ja/LC_MESSAGES/gphoto2.mo
/usr/share/locale/nl/LC_MESSAGES/gphoto2.mo
/usr/share/locale/pa/LC_MESSAGES/gphoto2.mo
/usr/share/locale/pl/LC_MESSAGES/gphoto2.mo
/usr/share/locale/pt_BR/LC_MESSAGES/gphoto2.mo
/usr/share/locale/ro/LC_MESSAGES/gphoto2.mo
/usr/share/locale/ru/LC_MESSAGES/gphoto2.mo
/usr/share/locale/rw/LC_MESSAGES/gphoto2.mo
/usr/share/locale/sk/LC_MESSAGES/gphoto2.mo
/usr/share/locale/sr/LC_MESSAGES/gphoto2.mo
/usr/share/locale/sv/LC_MESSAGES/gphoto2.mo
/usr/share/locale/uk/LC_MESSAGES/gphoto2.mo
/usr/share/locale/vi/LC_MESSAGES/gphoto2.mo
/usr/share/locale/zh_CN/LC_MESSAGES/gphoto2.mo
/usr/share/locale/zh_TW/LC_MESSAGES/gphoto2.mo
/usr/share/man/man1/gphoto2.1.gz

References

Summary

In this tutorial we learn how to install gphoto2 on Fedora 34 using yum and dnf.