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