To install Postman on Linux using the .tar.gz file, follow these steps:
Ensure you've downloaded the postman-linux-x64.tar.gz file from the official Postman website.
Once you have the .tar.gz file, you need to extract it. Open a terminal and navigate to the directory where you downloaded the file. Then run the following command:
tar -xvzf postman-linux-x64.tar.gzThis will extract the contents of the file into a folder named Postman.
Now, move the extracted folder to a location of your choice. A common location is /opt (which is used for installing software). Run the following command to move the folder:
sudo mv Postman /opt/To make it easy to run Postman from the terminal, you can create a symbolic link to the Postman executable:
sudo ln -s /opt/Postman/Postman /usr/local/bin/postmanNow you can run Postman simply by typing postman in the terminal.
To create a desktop shortcut, you can create a .desktop file for Postman. Here's how:
-
Open the terminal and run:
nano ~/.local/share/applications/postman.desktop -
Paste the following content into the file:
[Desktop Entry] Type=Application Name=Postman Icon=/opt/Postman/app/resources/app/assets/icon.png Exec="/opt/Postman/Postman" Comment=Postman Desktop App Categories=Development;Code;
-
Save and exit (press
Ctrl + X, thenY, and pressEnter).
This will create a launcher for Postman in your applications menu.
Now, you can either run Postman from the terminal by typing postman, or find it in your applications menu if you created the desktop shortcut.
Once installed, Postman will remain installed on your system, and you can launch it in the following ways:
- From the terminal: Simply type
postmanto open it. - From the applications menu: Look for the "Postman" icon and click it.
If you ever want to uninstall Postman, just delete the /opt/Postman folder:
sudo rm -rf /opt/PostmanThat's it! You're all set up to use Postman every time you need it.
Here's a cleaner, more organized version of the instructions you provided to install Postman on Elementary OS (7 and above).
- Postman recommends installing using Snap because it includes all the libraries the app needs and they're bundled with the app itself.
- The support of certain Linux distributions depends on if they're supported by Electron.
- Install Electron
$ sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \ libnotify-dev libasound2-dev libcap-dev \ libcups2-dev libxtst-dev \ libxss1 libnss3-dev gcc-multilib g++-multilib curl \ gperf bison python3-dbusmock openjdk-8-jre - Install xdelta3 (support to install postman)
$ sudo apt update $ sudo apt upgrade $ sudo apt install xdelta3
- Install snap
$ sudo apt update $ sudo apt install snapd
- Install postman via snap
$ sudo snap install postman
- Login to postman, before opening the postman app with the same account
$ postman login
When running postman, it often causes "forced quit", so run :
- Purge snap
$ sudo apt purge snapd
- Reinstall snap
$ sudo apt install snapd
- Restart the system
$ sudo reboot
- Install postman via snap
$ sudo snap refresh $ sudo systemctl restart snapd $ sudo snap install postman
- Login to postman, before opening the postman app with the same account
$ postman login
Here's a cleaner, more organized version of the instructions you provided to install Postman on Linux Mint (20 and above), where Snap is no longer supported.
-
Download Postman:
Use
wgetto download the latest version of Postman:wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
-
Extract the archive:
Extract the downloaded
.tar.gzfile to the/optdirectory:sudo tar -xzf postman.tar.gz -C /opt
-
Create a symlink:
Create a symbolic link so you can run Postman from the terminal with the
postmancommand:sudo ln -s /opt/Postman/Postman /usr/bin/postman
-
Optional: Remove the downloaded file:
If you want to clean up, remove the
postman.tar.gzfile:rm postman.tar.gz
-
Create a desktop icon:
Create a
.desktopentry for Postman to make it available in your application launcher:sudo nano /usr/share/applications/postman.desktop
In the editor, add the following content:
[Desktop Entry] Type=Application Name=Postman Icon=/opt/Postman/app/resources/app/assets/icon.png Exec="/opt/Postman/Postman" Comment=Postman Desktop App Categories=Development;Code;
-
Save and exit:
Save the file (
ctrl + xinnano) and then exit (ctrl + cinnano). And you should now be able to launch Postman from the application menu.