Skip to content

Instantly share code, notes, and snippets.

@dipenparmar12
Last active March 21, 2024 10:24
Show Gist options
  • Save dipenparmar12/2a356b4b435e27a40c3bfd4a8d35104b to your computer and use it in GitHub Desktop.
Save dipenparmar12/2a356b4b435e27a40c3bfd4a8d35104b to your computer and use it in GitHub Desktop.
Postman installation guide linux

How to install Postman on Linux (correct way)

Video Tutorial

1. Postman Download Link

Extract .tar.gz Files using Linux Command Line ...

sudo tar -xvzf FileName.tar.gz

Give full permission to Postman folder

sudo chmod -R 777 Postman

2. Create searchable icon

Next step is to Create postman.desktop file in ~/.local/share/applications/ path

  • Goto path

    cd ~/.local/share/applications/

  • Create file

    sudo touch postman.desktop

  • Modify file using nano editor

    sudo nano ~/.local/share/applications/postman.desktop

  • Add the following contents in the file:

    This works in Unity and GNOME desktop environments.

    For Linux Ubuntu

    [Desktop Entry]
    Version=1.0
    Name=Postman
    Comment=Postman Desktop
    Exec=<path-to-postman-executable>
    Path=<path-to-postman-executable-directory>
    Icon=<path-to-postman-logo>
    Terminal=false
    Type=Application
    Categories=Development;
    

    For Linux Mint

    [Desktop Entry]
    Encoding=UTF-8
    Version=1.0
    Type=Application
    Name=Postman
    Exec=<path-to-postman-executable>
    Path=<path-to-postman-executable-directory>
    Icon=<path-to-postman-logo>
    StartupNotify=false
    StartupWMClass=Postman
    OnlyShowIn=Unity;GNOME;
    X-UnityGenerated=true
    
  • To save changes Ctrl+x, y, Enter after editing to save

  • Validates a desktop file and prints warnings/errors for postman.desktop

    desktop-file-validate postman.desktop

  • If we don't get postman Icon in Show applications run following command

    sudo update-desktop-database

3. About Postman

Postman is a great tool when trying to dissect RESTful APIs made by others or test ones you have made yourself. It offers a sleek user interface with which to make HTML requests, without the hassle of writing a bunch of code just to test an API's functionality.

@SeiSenzai
Copy link

thanks dude

@SurendraNadh98
Copy link

i am getting
error while validating the postman.desktop
please help me out

@dipenparmar12
Copy link
Author

i am getting error while validating the postman.desktop please help me out

Dear, How would we know here what's the problem you are facing,
Please provide some context/error_message anything ?

@SurendraNadh98
Copy link

sorry i should have mentioned it
Zsh: exec format error :postman
this is the error i am geetting

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