Install gallery-dl on Ubuntu 24.04

Install gallery-dl on Ubuntu 24.04

The gallery-dl is a command line tool designed to download image galleries and collections from various websites. It supports many popular image hosting platforms, art communities, and social media sites, allowing you to batch-download images. The list of all the supported websites can be found in the GitHub repository. This tutorial explains how to install gallery-dl on Ubuntu 24.04.

Install gallery-dl

First, download the latest precompiled binary directly from the official GitHub releases page:

sudo wget -qO /usr/local/bin/gallery-dl https://github.com/mikf/gallery-dl/releases/latest/download/gallery-dl.bin

Set execute permission for a file:

sudo chmod a+x /usr/local/bin/gallery-dl

Finally, verify the installation by checking the version of gallery-dl:

gallery-dl --version

Testing gallery-dl

To test if gallery-dl is working correctly, try downloading images from a gallery. For example, the following command downloads the first 10 images from an Unsplash search results page while emulating a real Chrome browser by using its default HTTP headers and TLS settings for the requests:

gallery-dl -o browser=chrome --range 1-10 "https://unsplash.com/s/photos/nature"

Uninstall gallery-dl

If you want to uninstall gallery-dl, simply remove the binary file:

sudo rm -rf /usr/local/bin/gallery-dl

Leave a Comment

Cancel reply

Your email address will not be published.