Atom is a free and open-source text and source code editor that supports many cross-platforms such as macOS, Linux, and Microsoft Windows with support for plug-ins written in JavaScript and embedded Git Control, developed by GitHub.
The catchphrase that Atom calls itself is the “hackable text editor for the 21st century”. Atom, compared to competitors, is more user-friendly, with plenty of options for extensions to add syntax highlighting for languages and formats, add dynamic linting, and integrate debuggers, runtime environments, video and music player controls, and much more.
In the following tutorial, you will learn how to install Atom Text Editor on Ubuntu 22.04 LTS Jammy Jellyfish using the command line terminal, and optional version builds of stable, beta, and nightly.
Table of Contents
Update Ubuntu
First, update your system to ensure all existing packages are up to date. This will ensure no conflicts arise as best as possible during the installation.
sudo apt update && sudo apt upgrade -y
Install Dependencies
To complete the installation, you will need to install the following software packages by using the following command in your terminal.
sudo apt install software-properties-common apt-transport-https wget -y
If you are unsure, run the command; it will not harm you.
These are the most common software packages found on nearly all Linux distributions.
Import Atom Text Edit GPG Key & Repository
Import GPG Key
In the first step, you will need to download the GPG key.
wget -O- https://packagecloud.io/AtomEditor/atom/gpgkey | gpg --dearmor | sudo tee /usr/share/keyrings/atom.gpg
Next, import the repository using the following command.
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/atom.gpg] \
https://packagecloud.io/AtomEditor/atom/any/ any main" \
| sudo tee /etc/apt/sources.list.d/atom.list
Now update your repository list to reflect the new repository changes:
sudo apt update
Install Atom Text Editor
Install Atom Text Editor Stable
Now that you have imported the repository, you can install Atom Text Editor using the following.
sudo apt install atom -y
Confirm the installation and version build with the following command.
atom --version
Example output:
Install Atom Text Editor Beta
For most users, installing the beta is to see the upcoming release for stable; this is often recommended before nightly.
sudo apt install atom-beta -y
Confirm the installation and version build with the following command.
atom-beta --version
Example output:
Install Atom Text Editor Nightly
The Atom nightly is available for those who do not mind using the development branch. This is the most cutting edge version available but beware, this will more than likely be unstable and contain bugs even to break, be sure to install stable to fall back to.
sudo apt install atom-nightly -y
Confirm the installation and version build with the following command.
atom-nightly --version
Example output:
Note that you can install both the stable, beta, and nightly text editors.
How to Launch Atom Text Editor
With the installation complete, you can run Atom in a few different ways.
Remember to replace the atom example with atom-beta or atom-nightly for the terminal launch command.
atom
However, this isn’t practical, and you would use the following path on your desktop.
Activities > Show Applications > Atom.
Example:
The first time you open Atom Text Editor, you will see the following.
Example:
How to Update Atom Text Editor
Updating can be done using the terminal. Run the APT update command in your terminal as you would check your entire system for any updates.
sudo apt update
If one is available, use the upgrade option:
sudo apt upgrade
How to Remove (Uninstall) Atom Text Editor
To remove text editors, use the following command; remember this is the same command for both stable and unstable versions.
Remove Atom Stable
sudo apt autoremove atom -y
Remove Atom Beta
sudo apt autoremove atom -y
Remove Atom Nightly
sudo apt autoremove atom -y
Note unused dependencies will also be removed.
Next, use the following command for users who want to remove Atom Text Editor altogether.
sudo rm /etc/apt/sources.list.d/atom*.list
Finally, delete the GPG key.
sudo rm /usr/share/keyrings/atom*.gpg
Comments and Conclusion
In the tutorial, you have learned how to import the source repository for Atom Text Editor and install it using the apt package manager on Ubuntu 22.04 LTS desktop.
Atom is considered an easy-to-use, straightforward WYSIWYG editor that’s fast as any other competitor, such as Sublime Text. It also has plugins to customize its functionality even more!
For more information on Atom, visit the official documentation.