Skip to content

Instantly share code, notes, and snippets.

@Yazan-Stash
Created March 10, 2019 14:33
Show Gist options
  • Save Yazan-Stash/3f58ff1f33f2f36b2ca1ddf5a0af1582 to your computer and use it in GitHub Desktop.
Save Yazan-Stash/3f58ff1f33f2f36b2ca1ddf5a0af1582 to your computer and use it in GitHub Desktop.
Tired of a installing Postman the manual way, made this humble script to install in on Ubuntu
#!/bin/sh
# make sure and old installation file is not present
rm linux64
# download the latest version for a 64bit system
wget https://dl.pstmn.io/download/latest/linux64
# extract the downloaded file
tar -xzf linux64
# make sure and old installation is not present
sudo rm -rf /opt/Postman
# move the Postman app to the /opt directory
sudo mv Postman/ /opt/
# delete the downloaded installation file
rm linux64
# create a 'Desktop' file, this will help Ubuntu pick it up in the launcher
echo "[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=/opt/Postman/app/Postman %U
Icon=/opt/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;" > ~/.local/share/applications/Postman.desktop
# create a desktop shortcut
ln -s /opt/Postman/app/Postman ~/Desktop/Postman
# print a success message
echo "Postman installed to [/opt/Postman] and a launcher link added to the Desktop."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment