Skip to content

Instantly share code, notes, and snippets.

@wirtaw
Last active November 2, 2023 18:45
Show Gist options
  • Save wirtaw/b62e1c56aa105e02b008d09436bea9cf to your computer and use it in GitHub Desktop.
Save wirtaw/b62e1c56aa105e02b008d09436bea9cf to your computer and use it in GitHub Desktop.
Linux shell script to update Postman one-command line
#!/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