Skip to content

Instantly share code, notes, and snippets.

@zburgermeiszter
Forked from pil0u/install_postman.sh
Created September 7, 2021 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zburgermeiszter/85b9e6d2dd7228481bc37f2ef7d67790 to your computer and use it in GitHub Desktop.
Save zburgermeiszter/85b9e6d2dd7228481bc37f2ef7d67790 to your computer and use it in GitHub Desktop.
Install Postman on Linux through CLI without Snap
# This script basically automates the official Postman installation guide for Linux:
# https://learning.postman.com/docs/getting-started/installation-and-updates/#installing-postman-on-linux
# 32 or 64-bit?
BIT=$(getconf LONG_BIT)
# Download the appropriate version
wget -O ~/postman.tar.gz "https://dl.pstmn.io/download/latest/linux${BIT}"
# Extract the archive in /opt
sudo tar xvf ~/postman.tar.gz -C /opt/
# Remove the downloaded archive
rm ~/postman.tar.gz
# Make the app accessible from a launcher icon
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment