How to upgrade Atom Editor on Linux?

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

    Now, it looks like the easiest way is to download the new packaged version (.deb or .rpm) from the official releases and install it over your previous one: https://github.com/atom/atom/releases

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

    I created the following script to update my atom on Ubuntu 14.10.

    #!/bin/bash
    # Update atom from downloaded deb file
    rm -f /tmp/atom.deb
    curl -L https://atom.io/download/deb > /tmp/atom.deb
    dpkg --install /tmp/atom.deb 
    
    echo "***** apm upgrade - to ensure we update all apm packages *****"
    apm upgrade --confirm false
    
    exit 0
    

    The file atom_update is executable and needs to be called using su:

    sudo ./atom_update
    

    The above works, but nowadays I use the following:

    sudo add-apt-repository -y ppa:webupd8team/atom
    sudo apt -y update
    sudo apt -y install atom
    apm install \
    file-icons \
    tabs-to-spaces \
    trailing-spaces \
    xml-formatter
    

    With the above setup

    sudo apt -y upgrade
    

    will update an installed atom to the latest version. The ppa is generally up to date.

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

    Current official documentation seem to recommend another method:

    Atom Github Page

    Debian Linux (Ubuntu)

    Atom is only available for 64-bit Linux systems.

    1. Download atom-amd64.deb from the Atom releases page.
    2. Run sudo dpkg --install atom-amd64.deb on the downloaded package.
    3. Launch Atom using the installed atom command.

    The Linux version does not currently automatically update so you will need to repeat these steps to upgrade to future releases.

    Red Hat Linux (Fedora 21 and under, CentOS, Red Hat)

    Atom is only available for 64-bit Linux systems.

    1. Download atom.x86_64.rpm from the Atom releases page.
    2. Run sudo yum localinstall atom.x86_64.rpm on the downloaded package.
    3. Launch Atom using the installed atom command.

    The Linux version does not currently automatically update so you will need to repeat these steps to upgrade to future releases.

    Fedora 22+

    Atom is only available for 64-bit Linux systems.

    1. Download atom.x86_64.rpm from the Atom releases page.
    2. Run sudo dnf install ./atom.x86_64.rpm on the downloaded package.
    3. Launch Atom using the installed atom command.

    The Linux version does not currently automatically update so you will need to repeat these steps to upgrade to future releases.

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

    Latest Way is to first install $ apm install atom-updater-linux then simply press Alt+Ctrl+U or go to Help and there is option for check for updates

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

    An easier way is to install the atom-updater-linux from the packages on the atom website.

    Go to edit > preferences > install and search for atom-updater-linux

    or from the terminal:

    apm install atom-updater-linux
    

    This should check for updates after every launch and prompt you to install new updates.

    0 讨论(0)
  • 2021-01-30 16:23
      wget https://atom.io/download/deb -O atom64.deb
      sudo dpkg --install atom64.deb
    

    or

      wget https://atom.io/download/rpm -O atom64.rpm
      sudo dnf install atom64.rpm
    

    the above URLs redirect to https://atom-installer.github.com/

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