This article explains how to install Insomnia on Ubuntu 24.04.
Insomnia is a powerful REST API client that helps developers design, debug, and test their APIs. It’s handy for working with RESTful services, as it simplifies sending requests and visualizing responses.
Insomnia offers a clean and intuitive user interface that makes sending requests and organizing your API endpoints a breeze. It is not limited to just REST. It also supports GraphQL and other protocols, allowing you to test various APIs.
With Insomnia, you can manage your environment variables directly within the application, eliminating the need to switch between different development, testing, and production settings.
Prepare Ubuntu
Before you install Insomnia, you will want to install some prerequisite packages.
To do that, run the command below.
sudo apt update && sudo apt upgrade
sudo apt install apt-transport-https
Add Insomnia repository
Once Ubuntu is updated, run the command below to add the Insomnia repository so you can install the package.
To do that, run the command below.
curl -1sLf \
'https://packages.konghq.com/public/insomnia/setup.deb.sh' \
| sudo -E distro=ubuntu codename=focal bash
Install Insomnia
After that, update and install the Insomnia package.
sudo apt update
sudo apt install insomnia
After installing Insomnia, you can launch it from the command line using the below command.
insomnia
You can launch it by going to Activities > Show Applications > Insomnia on the desktop.

Install Insomnia via Snap
Another way to install Insomnia is to use the Snap package manager.
To do that, install the Snap package manager if it’s not already installed.
sudo apt install snapd
Then, run the command below to install Insomnia from the Snap package manager.
sudo snap install insomnia
Once installed, use the Dock on the left sidebar to search and launch the Insomnia app.
You can also run the app using the command below.
sudo snap run insomnia
Remove the app using the command below.
sudo snap remove insomnia
That should do it!
Conclusion:
In summary, installing Insomnia on Ubuntu 24.04 can be accomplished through various methods, providing flexibility to users. Here are the key points to remember:
- 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.
With these benefits, Insomnia stands out as a valuable addition to any developer’s toolkit. Enjoy leveraging its features for your API development needs!
Leave a Reply Cancel reply