This is a simple bash script, which allows you to update the Postman Linux app, straight from the terminal.
$ npm install -g postman-updater-linux
Copy the postman-updater
script
to your $PATH, and make it executable. Remember to change the path, if you
do not want to install it to /usr/local/bin
:
# curl -o /usr/local/bin/postman-updater https://github.com/czardoz/postman-updater-linux/blob/master/bin/postman-updater
# chmod +x /usr/local/bin/postman-updater
By default, postman-updater
assumes that the installation happens in /opt/postman
. You can
override this by providing a command line flag, -l /your/path
. If you are not installing to any
system directory, you will not have to use sudo in any of the following commands.
You can check if updates are available:
sudo postman-updater check
Or, with a custom install location:
postman-updater check -l /your/custom/path
You can install Postman to a path:
sudo postman-updater install # by default, installs to /opt/postman
Or, with a custom install location:
postman-updater install -l /your/custom/path
This will update Postman, with default installation directory set to /opt/postman
.
sudo postman-updater update
You can change the default location with the -l
flag:
postman-updater update -l /your/custom/path