Created
December 28, 2017 21:55
-
-
Save FranLpz/70a762cf9e0eec9ef76d4ce814dc94c3 to your computer and use it in GitHub Desktop.
Postman native instalation on Fedora
This file contains hidden or 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 | |
# Enter /opt folder (common folder for user installed programs) | |
# This script assumes you have proper permissions on /opt | |
cd /opt | |
# Download postman | |
wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz | |
# Extract the Kraken into /opt directory | |
tar -xvzf postman.tar.gz | |
# Remove tar.gz | |
rm postman.tar.gz | |
# Add postman to PATH | |
echo "export PATH=\$PATH:/opt/postman" >> ~/.bashrc | |
source ~/.bashrc | |
# Download postman launcher icon | |
wget https://www.getpostman.com/img/v2/logo-glyph.png | |
mv logo-glyph.png ./Postman/icon.png | |
# Create desktop entry | |
sudo touch /usr/share/applications/postman.desktop | |
# copy the following contents into postman.desktop file: | |
echo " | |
[Desktop Entry] | |
Name=postman | |
Comment=Git Flow | |
Exec=/opt/Postman/Postman | |
Icon=/opt/Postman/icon.png | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Utility;Development;" | sudo tee -a /usr/share/applications/postman.desktop >/dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment