Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Postman

WARNING! WARNING! WARNING! I no longer use Postman and don't test these instructions.

WARNING: this gist is only for installation and should not be used to update Postman. Please use auto-update feature. WARNING: script was updated to use ~ instead of /opt. Make sure that you have write permissions for location, because otherwise it can cause some problems

How to:

  1. Run install-postman.sh . Make sure that it has execute permissions =)
chmod +x install-postman.sh
./install-postman.sh`
  1. Create Postman.desktop file, so that you could see it the laucher.
touch ~/.local/share/applications/Postman.desktop

And copy-paste data from Postman.desktop . Don't forget to replace USERNAME with your user for Icon: line (it can't expand ~ :( )

#!/bin/bash
cd /tmp || exit
echo "Downloading Postman ..."
wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
tar -xzf postman.tar.gz
rm postman.tar.gz
echo "Installing to opt..."
if [ -d "~/Postman" ];then
rm -rf ~/Postman
fi
mv Postman ~/Postman
echo "Creating symbolic link..."
if [ -L "/usr/bin/postman" ];then
sudo rm -f /usr/bin/postman
fi
sudo ln -s ~/Postman/Postman /usr/bin/postman
echo "Installation completed successfully."
echo "You can use Postman!"
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
@pierremonico

This comment has been minimized.

Copy link

pierremonico commented Apr 10, 2017

Was looking how to install Postman in a clean fashion on Ubuntu since they lack clear docs on the website.
I have added a few lines to include copying the desktop file to the right location.
Let me know what you think.

@paulintrognon

This comment has been minimized.

Copy link

paulintrognon commented Apr 22, 2017

Thank you Pierre, worked for me :)

@pedzed

This comment has been minimized.

Copy link

pedzed commented May 25, 2017

I found something that creates a deb file. Check it out: https://gist.github.com/SanderTheDragon/1331397932abaa1d6fbbf63baed5f043

@damianlattenero

This comment has been minimized.

Copy link

damianlattenero commented Jun 13, 2017

Genius!!! Thanks so much. Genia, capa total, ídola hahaha, muy buen post, te amo.

@Tset-Noitamotua

This comment has been minimized.

Copy link

Tset-Noitamotua commented Sep 4, 2017

What to do with Postman.desktopfile ? Where do I need to place it?

EDIT: I found the answer here. Just copy below line into terminal and execute it

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

... this will create postman.desktop file in ~/.local/share/applications/

@pablo384

This comment has been minimized.

Copy link

pablo384 commented Dec 9, 2017

Excellent Thanks so much!

@edanShavit

This comment has been minimized.

Copy link

edanShavit commented Jan 4, 2018

Working like a charm !!!
10x

@EricPSU

This comment has been minimized.

Copy link

EricPSU commented Jan 10, 2018

Just what I needed, thanks!!

@pendyala

This comment has been minimized.

Copy link

pendyala commented Jan 16, 2018

Awesome. Thanks

@limberlost88

This comment has been minimized.

Copy link

limberlost88 commented Feb 19, 2018

Thanks

@hmedkouri

This comment has been minimized.

Copy link

hmedkouri commented Mar 22, 2018

Great, thank you

@claudiosikeda

This comment has been minimized.

Copy link

claudiosikeda commented Apr 26, 2018

Thanks

@sathvikc

This comment has been minimized.

Copy link

sathvikc commented May 29, 2018

For Ubuntu 18.04,

Icon path is /opt/Postman/app/resources/app/assets/icon.png

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

This comment has been minimized.

Copy link

odysseopi commented Jun 1, 2018

Highly appreciated! Thank you!

@krinkere

This comment has been minimized.

Copy link

krinkere commented Jun 20, 2018

if you were to run into
postman: error while loading shared libraries: libgconf-2.so.4: cannot open shared object file: No such file or directory
make sure to run
yum install GConf2

@harryi3t

This comment has been minimized.

Copy link

harryi3t commented Sep 12, 2018

Thank you for updating the gist file and putting those warning messages. 👍

@caiocesar7

This comment has been minimized.

Copy link

caiocesar7 commented Oct 30, 2018

Thank you very much, it helped a lot!!

@CodingInfinite

This comment has been minimized.

Copy link

CodingInfinite commented Nov 1, 2018

I've followed all your steps it successfully installed in my OS. The Postman icon shows in my applications but when I click on it nothing happened. The Postman did not open.

Below is my Kali Linux Version.
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: kali-rolling
Codename: kali-rolling

@flangofas

This comment has been minimized.

Copy link

flangofas commented Dec 8, 2018

Nice, thank you!

@naufaldi

This comment has been minimized.

Copy link

naufaldi commented Jan 7, 2019

Thanks!

@DamianRivas

This comment has been minimized.

Copy link

DamianRivas commented Feb 3, 2019

What's the point of the symbolic link? @aviskase

@UnixFriend

This comment has been minimized.

Copy link

UnixFriend commented Jun 14, 2019

I've followed all your steps it successfully installed in my OS. The Postman icon shows in my applications but when I click on it nothing happened. The Postman did not open.

Below is my Kali Linux Version.
No LSB modules are available.
Distributor ID: Kali
Description: Kali GNU/Linux Rolling
Release: kali-rolling
Codename: kali-rolling

Do apt-get install gconf2

@andre-bahia

This comment has been minimized.

Copy link

andre-bahia commented Sep 22, 2019

Nice, thank you!

@MaBbKhawaja

This comment has been minimized.

Copy link

MaBbKhawaja commented Sep 27, 2019

sudo snap install postman
just run this command and installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.