Skip to content

Instantly share code, notes, and snippets.

@sureshamk
Created March 6, 2018 05:24
Show Gist options
  • Save sureshamk/4bb853d9a13b889e0deb9fbaa234ffce to your computer and use it in GitHub Desktop.
Save sureshamk/4bb853d9a13b889e0deb9fbaa234ffce to your computer and use it in GitHub Desktop.
Install the Postman Native App in Ubuntu 16.04
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
rm postman.tar.gz
sudo ln -s /opt/Postman/Postman /usr/bin/postman
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
@harryi3t
Copy link

harryi3t commented Sep 12, 2018

⚠️ ⚠️ ⚠️
Please do not use this gist. We have seen users having issues when following similar instructions. There is no write permission in /opt/ directory. Please use the home directory or any other directory where write permission is there.

Also, 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

A similar gist has been updated accordingly, please see https://gist.github.com/aviskase/e642248c35e400b56e2489430952369f

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