How to upgrade Atom Editor on Linux?

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 script/grunt install

Solution 1:

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.

Solution 2:

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

Solution 3:

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

Solution 4:

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.

Solution 5:

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