How to upgrade Atom Editor on Linux?

前端 未结 16 668
醉梦人生
醉梦人生 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:06

    It's now even easier with the APT package.

    sudo add-apt-repository ppa:webupd8team/atom
    sudo apt update
    sudo apt install atom
    

    And now you can upgrade / dist-upgrade as usual

    sudo apt upgrade
    
    0 讨论(0)
  • 2021-01-30 16:08

    Currently the preferred procedure is described at the atom pages Installing Atom - Platform-linux

    When using the add-apt-repository suggested in the top answer, this URL is suggested.

    The apt repository mentioned at the Atom pages:

    curl -sL https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
    sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
    sudo apt-get update
    
    0 讨论(0)
  • 2021-01-30 16:10

    As of this writing, the best option to upgrade to the latest released version of Atom is to check out the most recent tag and build it, especially if you built it in the first place.

    1. cd atom
    2. git pull
    3. git checkout v0.115.0 (or whatever the latest release is: https://github.com/atom/atom/releases)
    4. script/build
    5. sudo script/grunt install
    0 讨论(0)
  • 2021-01-30 16:10

    For debian I have created a bash script which does the following:

    • Check with https://api.github.com and dpkg if atom is installed and/or up-to date.
    • Download and install the atom.deb from github if needed.
    • Provide a --beta switch if somebody wants to maintain the beta version as well.

    Fell free to use it, it is located here: https://gist.github.com/rumpelsepp/8a953d6c092cbeb043695cfada114bef

    0 讨论(0)
  • 2021-01-30 16:11

    If anybody is interested, I wrote a small atom package for this purpose.

    The package is meant to timely inform the user of new versions being available (stable or beta, configurable via settings) and uses GitHub API under the hood. It is platform independent, so it should work with any linux distro, but also with Windows or other systems.

    It does not perform the upgrade automatically as I wrote it for my needs and I was not interested in such feature. I may add it in the future should strong interest for it manifest itself, though.

    Feedback is welcome, best as tickets on github.

    0 讨论(0)
  • 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

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