Last active
May 29, 2024 18:41
-
-
Save pil0u/b2921969ba5bc2dd55307de0d78df025 to your computer and use it in GitHub Desktop.
Install Postman on Linux through CLI without Snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
thanks it is working