How to install/start Postman native v4.10.3 on Ubuntu 16.04 LTS 64-bit?

前端 未结 13 582
隐瞒了意图╮
隐瞒了意图╮ 2021-01-30 02:26

I downloaded Postman for Linux (from https://www.getpostman.com/apps), unpacked .tar.gz file into ~/bin/postman and then tried to execute ~/bin/postman/Postma

相关标签:
13条回答
  • 2021-01-30 02:36

    To do the same I did following in terminal-

    $ wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
    $ sudo tar -xzf postman.tar.gz -C /opt
    $ rm postman.tar.gz
    $ sudo ln -s /opt/Postman/Postman /usr/bin/postman
    
    1. Now open file system, move to /usr/bin/ and search form "Postman"
    2. There was a sh file with name 'Postman'
    3. Double clicked on it which opened postman.
    4. Locked icon to launcher on right clicking its icon for further use.

    Hope will hell others too.

    0 讨论(0)
  • 2021-01-30 02:37

    Edit:

    If you have snap or want to install it, just do:

    $ sudo snap install postman
    

    if you don't have it, install it as:

    $ sudo apt update
    $ sudo apt install snapd
    

    Another way is create an script:

    First create this script:

    create a file install-postman.sh, inside of it add:

    #!/bin/bash
    cd /tmp || exit
    echo "Downloading Postman ..."
    wget -q https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz
    tar -xzf postman.tar.gz
    rm postman.tar.gz
    
    echo "Installing to opt..."
    if [ -d "/opt/Postman" ];then
        sudo rm -rf /opt/Postman
    fi
    sudo mv Postman /opt/Postman
    
    echo "Creating symbolic link..."
    if [ -L "/usr/bin/postman" ];then
        sudo rm -f /usr/bin/postman
    fi
    sudo ln -s /opt/Postman/Postman /usr/bin/postman
    
    echo "Installation completed successfully."
    echo "You can use Postman!"
    

    run it in terminal with:

    $ sh install-postman.sh
    

    Then create the desktop launcher:

    Postman.desktop

    [Desktop Entry]
    Encoding=UTF-8
    Name=Postman
    Exec=postman
    Icon=/opt/Postman/resources/app/assets/icon.png
    Terminal=false
    Type=Application
    Categories=Development;
    

    Put this file in your desktop if you want (don't forget give to it execution permissions). Double click, and that's it!

    Forever thanks to Aviskase (github acount name).

    source -> https://gist.github.com/aviskase/e642248c35e400b56e2489430952369f#file-postman-desktop

    0 讨论(0)
  • 2021-01-30 02:42
    sudo snap install postman
    

    This single command worked for me.

    0 讨论(0)
  • 2021-01-30 02:44

    open terminal and type command

    sudo snap install postman
    

    hit enter button if it asks for password enter and proceed it will install postman

    If above solution doesn't work for you then you should install snap first to install it

    sudo apt update
    sudo apt install snapd
    

    when snap is installed successfully then u can use its packages and follow my solution for postman

    0 讨论(0)
  • 2021-01-30 02:44

    don't forget to

    chmod ~/.local/share/applications/postman.desktop +x
    

    otherwise it won't show in the Unity Launcher

    0 讨论(0)
  • 2021-01-30 02:45

    Don't forget to add sudo otherwise you will get postman.tar.gz: Permission denied error. And unlink postman if you get error like failed to create symbolic link /usr/bin/postman: File exists. So below is the full code:

    sudo wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
    sudo tar -xzf postman.tar.gz -C /opt
    sudo rm postman.tar.gz
    
    sudo unlink /usr/bin/postman
    sudo ln -s /opt/Postman/Postman /usr/bin/postman
    

    Then just run postman in the terminal.

    0 讨论(0)
提交回复
热议问题