Last active
November 2, 2023 18:45
-
-
Save wirtaw/b62e1c56aa105e02b008d09436bea9cf to your computer and use it in GitHub Desktop.
Linux shell script to update Postman one-command line
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 | |
# Go to the | |
cd /tmp | |
# Download the latest Postman source archive | |
wget 'https://dl.pstmn.io/download/latest/linux_64' -O postman.tar.gz | |
# Extract the Postman source archive | |
tar -xzf postman.tar.gz -C /tmp/ | |
# Replace the existing Postman app with the new one from tmp | |
sudo cp -r /tmp/Postman/app /opt/postman | |
# Remove the old Postman source archive | |
rm /tmp/postman.tar.gz && rm -rf /tmp/Postman/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment