hdeb is a simple Bash script that simplifies the process of downloading and installing .deb
packages from a remote URL. It provides a convenient way to fetch and install packages directly from the command line.
- Downloads
.deb
packages from a specified URL usingcurl
- Automatically installs the downloaded package using
dpkg
- Cleans up by removing the downloaded
.deb
file after installation - Supports silent mode with a progress bar for
curl
downloads - Offers an optional
-k
flag to bypass SSL certificate verification
hdeb <deb_url> [-k]
<deb_url>
: The URL of the.deb
package to download and install.-k
(optional): Bypasses SSL certificate verification forcurl
downloads.
Download and install a .deb
package:
hdeb 'http://example.com/package_1.0_amd64.deb'
Download and install a .deb
package with SSL certificate verification bypassed:
hdeb 'https://example.com/package_1.0_amd64.deb' -k
- Bash shell
curl
command-line tooldpkg
package manager
curl -sSL https://github.com/Anankke/hdeb/raw/master/hdeb -o /tmp/hdeb && sudo mv /tmp/hdeb /usr/local/bin/hdeb && sudo chmod +x /usr/local/bin/hdeb
- Download the
hdeb
script. - Make the script executable using the following command:
chmod +x hdeb
- Move the script to a directory in your system's
PATH
(e.g.,/usr/local/bin
) to make it accessible from anywhere:
sudo mv hdeb /usr/local/bin/
Now you can use the hdeb
command from anywhere in your terminal to easily download and install .deb
packages from remote URLs.