Skip to content

Instantly share code, notes, and snippets.

@aviskase
Last active November 21, 2023 20:56
Show Gist options
  • Save aviskase/e642248c35e400b56e2489430952369f to your computer and use it in GitHub Desktop.
Save aviskase/e642248c35e400b56e2489430952369f to your computer and use it in GitHub Desktop.
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;
@pendyala
Copy link

Awesome. Thanks

@limberlost88
Copy link

Thanks

@hmedkouri
Copy link

Great, thank you

@claudiosikeda
Copy link

Thanks

@sathvikc
Copy link

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
Copy link

Highly appreciated! Thank you!

@krinkere
Copy link

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
Copy link

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

@caiocesar7
Copy link

Thank you very much, it helped a lot!!

@CodingInfinite
Copy link

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
Copy link

Nice, thank you!

@naufaldi
Copy link

naufaldi commented Jan 7, 2019

Thanks!

@DamianRivas
Copy link

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

@b17fr13nds
Copy link

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
Copy link

Nice, thank you!

@MaBbKhawaja
Copy link

sudo snap install postman
just run this command and installed

@sprytnyk
Copy link

sprytnyk commented Apr 8, 2020

A tad tidy up of all steps in the command below. Installs the latest version of Postman (or upgrades it if exists), libconf-2-4, and creates a desktop entry.

$ cd
$ curl -O https://gist.githubusercontent.com/vald-phoenix/7717a9c2e574aa0ca1ceb6685b4f1429/raw/3287a4670431cfd7ce4601195b910b51b864d847/install-postman.sh && chmod +x install-postman.sh && bash install-postman.sh

@CornerstoneII
Copy link

curl -O https://gist.githubusercontent.com/vald-phoenix/7717a9c2e574aa0ca1ceb6685b4f1429/raw/3287a4670431cfd7ce4601195b910b51b864d847/install-postman.sh && chmod +x install-postman.sh && bash install-postman.sh

Thanks alot @vald-phoenix

@chunibyo-wly
Copy link

Hello, does anybody meet this issue ?
when start in terminal by command, font worked well
but when start by .dektop, font could not worked properly?

desktop.png

start by terminal
startByTerminal.png

start by desktop
startByDesktop.png

@mlumoura
Copy link

Thanks!

@SurendraNadh98
Copy link

i am getting
zsh:exec format error: postman
kindly help me

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