Skip to content

Instantly share code, notes, and snippets.

@pil0u
Last active March 17, 2024 09:25
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save pil0u/b2921969ba5bc2dd55307de0d78df025 to your computer and use it in GitHub Desktop.
Save pil0u/b2921969ba5bc2dd55307de0d78df025 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
@BrunoRwanda
Copy link

thanks it is working

@lbreuss
Copy link

lbreuss commented Jan 20, 2024

Thanks.
This step was necessary too for xdg-open to open postman:
sudo ln -sf /opt/Postman/app/Postman /usr/bin/postman

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