sudo apt update
sudo apt upgrade

Install The Following Dependencies:

sudo apt install git make autoconf libltdl-dev libusb-dev libexif-dev libpopt-dev libxml2-dev libjpeg-dev libgd-dev gettext autopoint

Download And Install The Following Software:

git clone https://github.com/gphoto/libgphoto2.git

cd ~/libgphoto2
autoreconf --install --symlink
./configure
make
sudo make install

Download And Install The Following Software:

cd ~
git clone https://github.com/gphoto/gphoto2.git

cd ~/gphoto2
autoreconf --install --symlink
./configure
make
sudo make install

sudo nano /etc/ld.so.conf.d/libc.conf

Add The Following To Conf, If Empty. Save And Exit

# libc default configuration
/usr/local/lib

Run The Following Command:

sudo ldconfig

/usr/local/lib/libgphoto2/print-camera-list udev-rules version 201 group plugdev mode 0660 | sudo tee /etc/udev/rules.d/90-libgphoto2.rules

/usr/local/lib/libgphoto2/print-camera-list hwdb | sudo tee /etc/udev/hwdb.d/20-gphoto.hwdb

Run The Following Command, If It Comes Back Showing Info About The Software. You Should Be Good To Move On. 

gphoto2 --version

Now We Need To See If The Pi Can Find Your Camera. It Should Show Info About The Camera.

gphoto2 --auto-detect

The Following Command Will Take A Photo And Save It To The Camera.

gphoto2 --capture-image

The Following Command Will Take A Photo And Download It To The Pi.

gphoto2 --capture-image-and-download

The Following Website Has More Information About The Software: “Click Here”