Ubuntu Linux

How to Install Insomnia on Ubuntu 24.04

Richard
Written by
Richard
Dec 24, 2024 Updated Mar 20, 2026 3 min read

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.

🐧Bash / Shell
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.

💻Code
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.

🐧Bash / Shell
sudo apt update
sudo apt install insomnia

After installing Insomnia, you can launch it from the command line using the below command.

💻Code
insomnia

You can launch it by going to Activities > Show Applications > Insomnia on the desktop.

Insomnia on Ubuntu

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.

🐧Bash / Shell
sudo apt install snapd

Then, run the command below to install Insomnia from the Snap package manager.

🐧Bash / Shell
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.

🐧Bash / Shell
sudo snap run insomnia

Remove the app using the command below.

🐧Bash / Shell
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!

Frequently Asked Questions

How do I install Insomnia on Ubuntu 24.04?

To install Insomnia on Ubuntu 24.04, first update your system with 'sudo apt update && sudo apt upgrade'. Then, add the Insomnia repository using 'curl -1sLf https://packages.konghq.com/public/insomnia/setup.deb.sh | sudo -E distro=ubuntu codename=focal bash' and finally install it with 'sudo apt install insomnia'.

Can I install Insomnia using Snap on Ubuntu?

Yes, you can install Insomnia using Snap. First, ensure Snap is installed with 'sudo apt install snapd', then run 'sudo snap install insomnia' to complete the installation.

What are the main features of Insomnia?

Insomnia is a powerful REST API client that simplifies API design, testing, and debugging. It supports multiple protocols, including REST and GraphQL, and offers a user-friendly interface for managing requests and environment variables.

How do I launch Insomnia after installation?

After installing Insomnia, you can launch it from the command line by typing 'insomnia'. Alternatively, you can find it in the Activities menu under Show Applications.

How do I remove Insomnia from my Ubuntu system?

To remove Insomnia, if installed via the standard package manager, use 'sudo apt remove insomnia'. If installed via Snap, run 'sudo snap remove insomnia' to uninstall it.

Was this guide helpful?

Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, the owner and lead writer at Geek Rewind, is a tech enthusiast passionate about simplifying complex IT topics. His years of hands-on experience in system administration and enterprise IT operations have honed his ability to provide practical insights 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version