httpie is a command line app that allows you to send http requests. With httpie you can create http or https requests, submit forms, pull data from API and much more, all this can be done directly from your terminal.
httpie can also be used for testing purposes, you can use httpie to test and debug your web application.
httpie can also be installed on any Linux distro.
In this tutorial, you will learn how to install httpie on Linux.
Step 1 - Download httpie GPG key
In order to be able to install httpie from httpie repository, you must first import the GPG key on your system.
To do this, simply run the command below
curl -SsL https://packages.httpie.io/deb/KEY.gpg | sudo gpg --dearmor -o /usr/share/keyrings/httpie.gpg
Step 2 - Add httpie repository
Once you have imported http GPG key on your system, proceed to add httpie repository on the repository database of your system.
sudo echo "deb [arch=amd64 signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" > /etc/apt/sources.list.d/httpie.list
The command above, will create
sources.list.d directory. This is the repository from where httpie will be downloaded from.
Step 3 - Update your system
Now you can proceed to update your system, so the httpie repository is added on your system and it can be used to download httpie.
sudo apt update
Step 4 - Install httpie
Once you have completed all steps above, you can now finally install httpie on your system.
sudo apt install httpie
In this tutorial, you learned how to install httpie, by manually adding its GPG key and repository on Linux.
We used Debian 12 for this tutorial. However, this tutorial applies also to any Debian based linux distro.