DRA is an open-source command-line utility for downloading assets from GitHub releases. It is commonly used for automation, CI workflows, and system setup tasks. This tutorial explains how to install DRA GitHub release asset downloader on Ubuntu 26.04.
Install DRA
First, determine the latest available version from GitHub:
DRA_VERSION=$(curl -s "https://api.github.com/repos/devmatteini/dra/releases/latest" | grep -Po '"tag_name": "\K[0-9.]+')
Now download and extract the binary directly into /usr/local/bin:
curl -sSL https://github.com/devmatteini/dra/releases/latest/download/dra-$DRA_VERSION-x86_64-unknown-linux-gnu.tar.gz \
| sudo tar xz --strip-components=1 -C /usr/local/bin --wildcards '*/dra'
Verify installation by checking DRA version:
dra --version
Testing DRA
One of the most practical uses of DRA is downloading release assets without manually navigating GitHub. For example, downloading and installing a binary such as ccache:
sudo dra download -s ccache*linux-x86_64-glibc.tar.gz -I ccache -o /usr/local/bin ccache/ccache
Example output:
Saved to: /tmp/dra-808ce51beaf249efbee8881642a96727
Extracted archive executable to '/usr/local/bin/ccache'
Uninstall DRA
To remove DRA from the system, simply delete the binary:
sudo rm -rf /usr/local/bin/dra
Leave a Comment
Cancel reply