Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?


Failed to load latest commit information.
Latest commit message
Commit time

gphoto2-updater Build status

Gphoto2 and libGphoto2 compiler and installer script

This script allows to install last development and last stable releases of gphoto2 and libgphoto2 based on git repositories

This script was initially created for Raspbian and Raspberry Pi currently tested for:

  • Ubuntu Latest
  • Ubuntu 20.04
  • Ubuntu 18.04
  • Debian Bullseye (11)
  • Debian Buster (10)
  • Debian Strech (9)

Created and maintained by Gonzalo Cao Cabeza de Vaca Please send any feedback or comments to gonzalo.cao(at)

Special thanks to @scribblemaniac for his support on this project.

How-to use

To download and compile last script version just be sure you are connected to the Internet and run:

$ wget && wget && chmod +x && sudo ./

This will download both .env and script files and run the script. Then select between stable and development version

Check releases

After installation you still see a previous version of gphoto2 and libgphoto2

You probably have another of libgphoto2 installed from some other source, most likely apt. The script does not remove such packages because of the issues in #57. One thing you can do is run: ldconfig -p | grep libgphoto2 and share the result here. This will show you the locations where libgphoto2 is installed and accessible. It may be that all you need to do is change the ordering of the paths in your LD_LIBRARY_PATH environment variable or move/symlink some files.

Try to remove previous versions with

$ sudo apt-get remove gphoto2 libgphoto2-6 libgphoto2-dev libgphoto2-l10n libgphoto2-port12

Testing script using GitHub Actions

Thanks to amazing work of @scribblemaniac new pulls are automatically tested using GitHub Actions. Successful compilation over Debian should guarantee that it should work over Raspbian.


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see


Gphoto2 compiler and installer script. This script was initially created for Raspbian and Raspberry Pi but it is also tested for Ubuntu and Debian Jessie & Wheezy.






No packages published