How to Install Insomnia on Ubuntu 24.04
Insomnia is a free desktop tool that lets you build, test, and debug APIs—the code connections that different software programs use to talk to each other. Installing Insomnia on Ubuntu 24.04 requires adding the official software source to your system before you can download and run the app. Setting it up this way ensures you get the newest version straight from the developers.
The app supports popular protocols like REST and GraphQL, making it a great choice for web developers and testers. You can get everything up and running in just a few minutes using the command line.
Install Insomnia on Ubuntu 24.04 by adding its APT repository and then installing the package. First, run curl -1sLf ‘https://packages.konghq.com/public/insomnia/setup.deb.sh’ | sudo -E distro=ubuntu codename=focal bash. Then, update your package list with sudo apt update and install Insomnia with sudo apt install insomnia.
Prepare Ubuntu
Before installing Insomnia, gather a few prerequisite packages (additional software the application depends on).
Execute the following command to install them.
sudo apt update && sudo apt upgrade
sudo apt install apt-transport-https
Add Insomnia repository
With your system package list updated, add the official Insomnia repository so your machine knows where to fetch the software.
Use the command below.
curl -1sLf
'https://packages.konghq.com/public/insomnia/setup.deb.sh'
| sudo -E distro=ubuntu codename=focal bash
Install Insomnia
Install Insomnia on Ubuntu 24.04 using the apt package manager. First, refresh your system package list by running sudo apt update, then install Insomnia with sudo apt install insomnia. This method ensures you pull the latest version directly from Ubuntu's official software sources.
Launch Insomnia, a free API design and testing tool, from the Ubuntu 24.04 command line by typing insomnia and pressing Enter. This action opens the application immediately so you can start designing and testing requests.
Open the application by navigating through the desktop Activities menu. Click "Activities" in the top-left corner of the screen, select "Show Applications" to view all installed programs, and click "Insomnia" to start the program.

Install Insomnia via Snap
Installing Insomnia on Ubuntu 24.04 using Snap provides a rapid deployment option. If the Snap package manager is missing, run sudo apt install snapd first. Then, finish the setup with a single command.
First, verify that the Snap package manager is present on your system. If not, execute this command.
sudo apt install snapd
Next, pull and install Insomnia via Snap.
sudo snap install insomnia
Once installation finishes, search for Insomnia using the Dock on the left sidebar.
Terminal users can also start the application with the command below.
sudo snap run insomnia
Remove the application using the command below if needed.
sudo snap remove insomnia
That completes the setup process.
Conclusion:
Wrapping up, Ubuntu 24.04 gives you multiple ways to get Insomnia running depending on your workflow preferences. Here's a quick recap of what we covered:
- Powerful Tool: Insomnia is an effective REST API client that simplifies API design, testing, and debugging.
- User-Friendly Interface: Its clean design enhances productivity by making request management intuitive.
- Support for Multiple Protocols: Besides REST, Insomnia supports GraphQL and other protocols.
- Environment Management: You can handle environment variables directly within the application, streamlining workflow.
- Installation Options: Insomnia can be installed via standard package management or the Snap package manager, whichever suits your preference.
Insomnia serves as a valuable addition to any developer's toolkit. Enjoy leveraging its features for your API development needs!
How to install insomnia in Ubuntu?
Once snap is installed, run the following snap command to install Insomnia on your server. After that, wait for the installation process to finish.
Is insomnia free for commercial use?
Development teams working on commercial software projects use Insomnia for cloud sync and API key handling. Paid tiers unlock advanced capabilities, such as community support, automated API tests, and testing tools built for scalability.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!