Skip to content

Instantly share code, notes, and snippets.

@newbie78
Last active February 19, 2020 11:28
Show Gist options
  • Save newbie78/9111830c96ea70a71830677c78fea7cb to your computer and use it in GitHub Desktop.
Save newbie78/9111830c96ea70a71830677c78fea7cb to your computer and use it in GitHub Desktop.
postman install bash script debian - ubuntu like
#!/usr/bin/env bash
echo "Downloading Postman ..."
wget -q https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
echo "Installing to current user folder ..."
if [ -d "~/Postman" ];then
rm -rf ~/Postman
fi
tar -xzf postman.tar.gz -C ~/Postman
rm postman.tar.gz
echo "Creating symbolic link to user folder bin ..."
if [ -L "~/bin/postman" ];then
rm -f ~/bin/postman
fi
ln -s ~/Postman/Postman/Postman ~/bin/postman
echo "Creating ico ..."
if [ -L "~/.local/share/applications/postman.desktop" ];then
rm -f ~/.local/share/applications/postman.desktop
fi
cat > ~/.local/share/applications/postman.desktop <<EOL
[Desktop Entry]
Name=Postman
Exec=postman
Icon=/home/<USERNAME>/Postman/Postman/app/resources/app/assets/icon.png
Terminal=false
Type=Application
Categories=Development;
EOL
echo "Installation completed successfully."
@newbie78
Copy link
Author

change the to your own

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