Install Postman in Linux Desktop

glow in the dark keyboard
Photo by seppe machielsen on Pexels.com

I should rename the title to “Install Postman in POP OS” as recently I have been working on a POP OS. This thing is sleek. I love the workflow. It comes with default FLATPAK and no SNAP. I did not want to use snap.

So here I am, installing Postman from their binary compressed file.

Here is the script I have used to install postman.

#!/bin/bash
#
# C: Fahad Ahammed
# Purpose: Install POSTMAN in linux Desktop
# D: 2022-11-11 14-36
#
if [ -z "$1" ]
then
read -p "Give the install directory:" INSTALL_DIRECTORY
else
INSTALL_DIRECTORY="$1"
fi
CURDIR=$(pwd)
curl -s https://dl.pstmn.io/download/latest/linux64 –output $INSTALL_DIRECTORY/postman.tar.gz
cd $INSTALL_DIRECTORY;
tar -zxvf postman.tar.gz
chmod a+x -R $INSTALL_DIRECTORY/*
POSTMAN_EXEC="$INSTALL_DIRECTORY/Postman/Postman"
POSTMAN_ICON="$INSTALL_DIRECTORY/Postman/app/icons/icon_128x128.png"
cat <<EOF >>$INSTALL_DIRECTORY/postman.desktop
[Desktop Entry]
Type=Application
Name=Postman
Icon=$POSTMAN_ICON
Exec="$POSTMAN_EXEC"
Comment=Postman Desktop App
Categories=Development;Code;
EOF
ln -s $INSTALL_DIRECTORY/postman.desktop /usr/share/applications/postman.desktop

After running this script, You should be able to find POSTMAN searching on application menu.