Skip to content

Instantly share code, notes, and snippets.

@programmerShinobi
Last active July 24, 2025 03:18
Show Gist options
  • Select an option

  • Save programmerShinobi/2d7ba89d451304e10f6c1ae42864d414 to your computer and use it in GitHub Desktop.

Select an option

Save programmerShinobi/2d7ba89d451304e10f6c1ae42864d414 to your computer and use it in GitHub Desktop.
Postman Installation Via Snap or Without Snap (Linux OS | Ubuntu | Debian)

Postman Installation

Install Postman on Linux

To install Postman on Linux using the .tar.gz file, follow these steps:

1. Download the Postman .tar.gz file

Ensure you've downloaded the postman-linux-x64.tar.gz file from the official Postman website.

2. Extract the .tar.gz File

Once you have the .tar.gz file, you need to extract it. Open a terminal and navigate to the directory where you downloaded the file. Then run the following command:

tar -xvzf postman-linux-x64.tar.gz

This will extract the contents of the file into a folder named Postman.

3. Move the Extracted Folder

Now, move the extracted folder to a location of your choice. A common location is /opt (which is used for installing software). Run the following command to move the folder:

sudo mv Postman /opt/

4. Create a Symbolic Link (Optional)

To make it easy to run Postman from the terminal, you can create a symbolic link to the Postman executable:

sudo ln -s /opt/Postman/Postman /usr/local/bin/postman

Now you can run Postman simply by typing postman in the terminal.

5. Create a Desktop Shortcut (Optional)

To create a desktop shortcut, you can create a .desktop file for Postman. Here's how:

  • Open the terminal and run:

    nano ~/.local/share/applications/postman.desktop
  • Paste the following content into the file:

    [Desktop Entry]
    Type=Application
    Name=Postman
    Icon=/opt/Postman/app/resources/app/assets/icon.png
    Exec="/opt/Postman/Postman"
    Comment=Postman Desktop App
    Categories=Development;Code;
  • Save and exit (press Ctrl + X, then Y, and press Enter).

This will create a launcher for Postman in your applications menu.

6. Running Postman

Now, you can either run Postman from the terminal by typing postman, or find it in your applications menu if you created the desktop shortcut.

7. Using Postman Every Time

Once installed, Postman will remain installed on your system, and you can launch it in the following ways:

  • From the terminal: Simply type postman to open it.
  • From the applications menu: Look for the "Postman" icon and click it.

Additional Tip:

If you ever want to uninstall Postman, just delete the /opt/Postman folder:

sudo rm -rf /opt/Postman

That's it! You're all set up to use Postman every time you need it.

Here's a cleaner, more organized version of the instructions you provided to install Postman on Elementary OS (7 and above).

Install Postman on Linux Elementary OS (7 and above)

  • Postman recommends installing using Snap because it includes all the libraries the app needs and they're bundled with the app itself.
  • The support of certain Linux distributions depends on if they're supported by Electron.
  1. Install Electron
    $ sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \
                       libnotify-dev libasound2-dev libcap-dev \
                       libcups2-dev libxtst-dev \
                       libxss1 libnss3-dev gcc-multilib g++-multilib curl \
                       gperf bison python3-dbusmock openjdk-8-jre
  2. Install xdelta3 (support to install postman)
    $ sudo apt update
    $ sudo apt upgrade
    $ sudo apt install xdelta3
  3. Install snap
    $ sudo apt update
    $ sudo apt install snapd
  4. Install postman via snap
    $ sudo snap install postman
  5. Login to postman, before opening the postman app with the same account
    $ postman login

When running postman, it often causes "forced quit", so run :

  1. Purge snap
    $ sudo apt purge snapd
  2. Reinstall snap
    $ sudo apt install snapd
  3. Restart the system
    $ sudo reboot
  4. Install postman via snap
    $ sudo snap refresh
    $ sudo systemctl restart snapd
    $ sudo snap install postman
  5. Login to postman, before opening the postman app with the same account
    $ postman login

Here's a cleaner, more organized version of the instructions you provided to install Postman on Linux Mint (20 and above), where Snap is no longer supported.

Install Postman on Linux Mint (20 and above)

  1. Download Postman:

    Use wget to download the latest version of Postman:

    wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
  2. Extract the archive:

    Extract the downloaded .tar.gz file to the /opt directory:

    sudo tar -xzf postman.tar.gz -C /opt
  3. Create a symlink:

    Create a symbolic link so you can run Postman from the terminal with the postman command:

    sudo ln -s /opt/Postman/Postman /usr/bin/postman
  4. Optional: Remove the downloaded file:

    If you want to clean up, remove the postman.tar.gz file:

    rm postman.tar.gz
  5. Create a desktop icon:

    Create a .desktop entry for Postman to make it available in your application launcher:

    sudo nano /usr/share/applications/postman.desktop

    In the editor, add the following content:

    [Desktop Entry]
    Type=Application
    Name=Postman
    Icon=/opt/Postman/app/resources/app/assets/icon.png
    Exec="/opt/Postman/Postman"
    Comment=Postman Desktop App
    Categories=Development;Code;
  6. Save and exit:

    Save the file (ctrl + x in nano) and then exit (ctrl + c in nano). And you should now be able to launch Postman from the application menu.


Source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment