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;
@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