Skip to content

Instantly share code, notes, and snippets.

@oleg-sh-test
Created May 23, 2018 07:58
Show Gist options
  • Save oleg-sh-test/edda642902161da244a5fe523fcbce43 to your computer and use it in GitHub Desktop.
Save oleg-sh-test/edda642902161da244a5fe523fcbce43 to your computer and use it in GitHub Desktop.
Postman install Ubuntu 18.04
#!/bin/bash
# Get postman app
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
sudo tar -xzf postman.tar.gz -C /opt
sudo ln -s /opt/Postman/Postman /usr/bin/postman
#Create a Desktop Entry
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
@harryi3t
Copy link

harryi3t commented Sep 12, 2018

@posemon Can you update your gist to

  1. Use some other directory than /opt/, since we have seen people having permission issues in this location. Because there is no write permission, auto-updates does not work when installed in this directory. Here's the link to the issue that people are facing because of this postmanlabs/postman-app-support#5039
  2. Include the information that 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

Here's a link to a similar popular gist file, which has been updated accordingly https://gist.github.com/aviskase/e642248c35e400b56e2489430952369f

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