Skip to content

Instantly share code, notes, and snippets.

@EricPSU
Forked from aviskase/Postman.desktop
Last active October 31, 2020 20:01
Show Gist options
  • Save EricPSU/f8d0a83dd91ef29855033ef56ed6f61a to your computer and use it in GitHub Desktop.
Save EricPSU/f8d0a83dd91ef29855033ef56ed6f61a to your computer and use it in GitHub Desktop.
Install Postman on CentOS 7
cat > ~/Desktop/postman.desktop <<EOL
[Desktop Entry]
Encoding=UTF-8
Name=Postman
Exec=postman
Icon=/opt/Postman/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
EOL
#!/bin/bash
cd /tmp || exit
echo "Downloading Postman ..."
wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
tar -xzf postman.tar.gz
rm postman.tar.gz
echo "Installing to opt..."
if [ -d "/opt/Postman" ];then
sudo rm -rf /opt/Postman
fi
sudo mv Postman /opt/Postman
echo "Creating symbolic link..."
if [ -L "/usr/bin/postman" ];then
sudo rm -f /usr/bin/postman
fi
sudo ln -s /opt/Postman/Postman /usr/bin/postman
echo "Installation completed successfully."
echo "You can use Postman!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment