Skip to content

Instantly share code, notes, and snippets.

@ba11b0y
Last active August 31, 2023 19:21
Show Gist options
  • Save ba11b0y/ecc1c6e32b581b68932ac7452f4c911c to your computer and use it in GitHub Desktop.
Save ba11b0y/ecc1c6e32b581b68932ac7452f4c911c to your computer and use it in GitHub Desktop.
Installing Postman on Ubuntu/Gnome

Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux

Although I highly recommend using a snap

sudo snap install postman

Installing Postman

tar -xzf Postman-linux-x64-5.3.2.tar.gz

If any version is installed before, remove it.

sudo rm -rf /opt/Postman

Move Postman

sudo mv Postman /opt/Postman

Create a symbolic link

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

Create a desktop file

cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
# Before v6.1.2
# Icon=/opt/Postman/resources/app/assets/icon.png
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
EOL

Remove the tar:

rm Postman-linux-x64-5.3.2.tar.gz
@kazemimorteza68
Copy link

Thanks

@superdevofficial
Copy link

Thanks !

@bguillotin
Copy link

Thanks and helpfull for desktop file !

@nuviyao
Copy link

nuviyao commented Oct 29, 2019

Thanks!

@chiefmasta
Copy link

Thanks man !
I just want to add that for the Postman's last version (Version 7.11.0 at the moment of writing this comment), the icon is located at /opt/Postman/app/resources/app/assets/icon.png
and not
/opt/Postman/resources/app/assets/icon.png

@Moriort
Copy link

Moriort commented Dec 12, 2019

Gracias

@amiteshore
Copy link

Thank you

@web3coach
Copy link

Thanks! Very helpful. Worked like charm. Can't understand why this is not part of official docs.

@morjuax
Copy link

morjuax commented Feb 3, 2020

thank you bro

@LuisReyes98
Copy link

thanks a lot

@ishanajmeri
Copy link

It works !!!. Thank you :)

@giallon
Copy link

giallon commented Mar 23, 2020

Thanks. Can you remove white space at the end of Icon line in postman.desktop

@tioguil
Copy link

tioguil commented Mar 26, 2020

Thanks

@adovbos
Copy link

adovbos commented Mar 28, 2020

If you still have trouble with icon like I had, please check "space" in the end of Icon=/opt/Postman/app/resources/app/assets/icon.png line and delete it)

@kosalamoon
Copy link

If you still have trouble with icon like I had, please check in the end of Icon=/opt/Postman/app/resources/app/assets/icon.png line and delete it)

wow that's a nice observation & thanks for the help

@KoofNG
Copy link

KoofNG commented Apr 12, 2020

If you still have trouble with icon like I had, please check in the end of Icon=/opt/Postman/app/resources/app/assets/icon.png line and delete it)

wow that's a nice observation & thanks for the help

What exactly is to be done.
My Icon isn't showing too

@adovbos
Copy link

adovbos commented Apr 12, 2020

If you still have trouble with icon like I had, please check in the end of Icon=/opt/Postman/app/resources/app/assets/icon.png line and delete it)

wow that's a nice observation & thanks for the help

What exactly is to be done.
My Icon isn't showing too

just delete space on end of line)

@KoofNG
Copy link

KoofNG commented Apr 12, 2020

If you still have trouble with icon like I had, please check in the end of Icon=/opt/Postman/app/resources/app/assets/icon.png line and delete it)

wow that's a nice observation & thanks for the help

What exactly is to be done.
My Icon isn't showing too

just delete space on end of line)

I deleted it, yet it didn't come on.
Probably when I restart my PC it would be fine.
But POSTMAN does work

@KoofNG
Copy link

KoofNG commented Apr 12, 2020

If you still have trouble with icon like I had, please check in the end of Icon=/opt/Postman/app/resources/app/assets/icon.png line and delete it)

wow that's a nice observation & thanks for the help

What exactly is to be done.
My Icon isn't showing too

just delete space on end of line)

I deleted it, yet it didn't come on.
Probably when I restart my PC it would be fine.
But POSTMAN does work

Thanks it worked after restarting the PC

@Jihane1992
Copy link

thanks

@XxBatfaIla7
Copy link

Thanks ${buddy}

Copy link

ghost commented Jul 6, 2020

thanks bro

@AyeMiSan
Copy link

AyeMiSan commented Sep 3, 2020

@invinciblycool
invinciblycool
Hey....
Thanks a lot, that is helpful for me?!

Copy link

ghost commented Sep 16, 2020

@invinciblycool Can you update your gist to

  1. Use some other directory than /opt/, since we have seen people having permission issues in this location. Because there is no write permission, auto-updates does not work when installed in this directory. Here's the link to the issue that people are facing because of this postmanlabs/postman-app-support#5039
  2. Include the information that Postman now supports auto-updates, and people should be using that instead of manually updating the app

More details:
The problem with using the command sudo tar -xzf postman.tar.gz -C /opt is that it does not remove the old files, just put the new files over the old. Doing this might make the Postman end up in an inconsistent state leading issues which are very difficult to debug and fix

Here's a link to a similar popular gist file, which has been updated accordingly https://gist.github.com/aviskase/e642248c35e400b56e2489430952369f

Postman tries to download new update every time the app is open and due to permission issues it fails and retries.

@jbl31
Copy link

jbl31 commented Oct 20, 2020

If you still have trouble with icon like I had, please check in the end of Icon=/opt/Postman/app/resources/app/assets/icon.png line and delete it)

wow that's a nice observation & thanks for the help

What exactly is to be done.
My Icon isn't showing too

just delete space on end of line)

Aha, thanks you very much for this one !! :-D

@ba11b0y
Copy link
Author

ba11b0y commented Oct 21, 2020

If you still have trouble with icon like I had, please check "space" in the end of Icon=/opt/Postman/app/resources/app/assets/icon.png line and delete it)

Thanks!
I have updated the gist accordingly

@debbysa
Copy link

debbysa commented Nov 19, 2020

thank you

@KyunKyuu
Copy link

thanks

@abbasshams
Copy link

ممنون از راهنماییت

@WahidinAji
Copy link

Thanks

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