Last active
June 10, 2023 17:11
-
-
Save chetanppatil/4f8e42f43c6a5ada8b43cb79b15c15fe to your computer and use it in GitHub Desktop.
Install Native Postman On Linux
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
#!/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!"``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 😄