Skip to content

Instantly share code, notes, and snippets.

@chetanppatil
Last active June 10, 2023 17:11
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save chetanppatil/4f8e42f43c6a5ada8b43cb79b15c15fe to your computer and use it in GitHub Desktop.
Save chetanppatil/4f8e42f43c6a5ada8b43cb79b15c15fe to your computer and use it in GitHub Desktop.
Install Native Postman On Linux
#!/bin/bash
# Download Postman
cd /tmp || exit
echo "Downloading Postman..."
wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
# Extract and install Postman to /opt
echo "Extracting and installing to /opt..."
sudo tar -xzf postman.tar.gz -C /opt/
rm postman.tar.gz
# Create symbolic link for Postman
echo "Creating symbolic link..."
sudo ln -sf /opt/Postman/Postman /usr/bin/postman
# Create desktop entry for Postman
echo "Creating 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
echo "Installation completed successfully. You can now use Postman!"```
@Seralto
Copy link

Seralto commented Jun 12, 2022

Great! Many thanks ;)

@ubermachine
Copy link

Haha was losing hope you are an angel

@chetanppatil
Copy link
Author

You are most Welcome @Seralto @ubermachine, it's all about sharing and caring.
I faced a challenge, so thought of creating this, to help needy developers 😄

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