How to upgrade Atom Editor on Linux?

前端 未结 16 677
醉梦人生
醉梦人生 2021-01-30 15:32

What is the best way to upgrade atom on Linux Ubuntu ? I install atom using official doc

  git clone https://github.com/atom/atom
  cd atom
  script/build
  sudo         


        
16条回答
  •  孤独总比滥情好
    2021-01-30 16:12

    I upgraded from

    Atom : 1.26.1 Electron: 1.7.11 Chrome : 58.0.3029.110 Node : 7.9.0

    to

    Atom : 1.40.1 Electron: 3.1.10 Chrome : 66.0.3359.181 Node : 10.2.0

    I followed these simple steps,

    1. create a file

    sudo nano /usr/local/bin/atom-update

    1. copy following snippet and save with Ctrl+o and "enter" and Ctrl+x

    your code

    #!/bin/bash
    wget -q https://github.com/atom/atom/releases/latest -O /tmp/latest
    wget --progress=bar -q 'https://github.com'$(cat /tmp/latest | grep -o -E 'href="([^"#]+)atom-amd64.deb"' | cut -d'"' -f2 | sort | uniq) -O /tmp/atom-amd64.deb -q --show-progress
    dpkg -i /tmp/atom-amd64.deb
    
    1. Make it executable

    sudo chmod +x /usr/local/bin/atom-update

    1. Run the script to upgrade atom

    sudo atom-update

提交回复
热议问题