How to Install Atom Text Editor on Ubuntu 22.04
Whether you are a software engineer or system admin, you cannot deny the importance of a good text editor. Though there are many old and established options available to install today, like Vim and Emacs, today we will be discussing a much more modern option. Designed and developed by GitHub, the Atom text editor is touted as a “hackable text editor for the 21st century”.
Compared to many others, Atom is very easy to use and comes with the capability to add many extensions to expand on the base set of functionalities. You can add plugins to get syntax highlighting for many programming languages, integrate third-party debuggers as well as runtime environments, music and video player controls, along with dynamic linting among many others.
Atom text editor is available to install across all major operating systems. So, if you are an experienced Atom user and having issues installing it on Ubuntu 22.04, or if you are a new user, don’t worry. In this guide, I will walk you through the process of installing Atom and its development versions on Ubuntu 22.04.
Update system repositories
Before any installation, it’s always recommended to update the existing packages in order to avoid any conflicts during the installation process. We can start the process through the following in the terminal.
$sudo apt upgrade -y
$sudo apt update -y
You can run these commands separately or combined as shown in the screenshot.
After this completes, you need to resolve dependencies.
Install the dependencies
You need to run the following in order to install the package and resolve dependency issues on your Ubuntu 22.04.
$sudo apt install software-properties-common apt-transport-https wget -y
This is a common software package, readily bundled with many other Linux distros.
Install Atom Text Editor
Before we can get started with the Atom installation, we need to download the GPG Key. We can acquire it through the following:
$wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add –
Import the repository
Once the key has been imported, we need to import the atom repository using the following:
$sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
Update the repositories
Once the repository has been imported, you need to update the system repository list to reflect the changes.
$sudo apt update
Install Atom Stable
After successfully completing the previous steps, you are now ready to install the Atom text editor.
$sudo apt install atom -y
Depending on your Internet bandwidth, it will take time to complete the installation accordingly. It took me 11 minutes to complete. As soon as you get the prompt back, you can run the following to ensure that the installation has succeeded.
With this output, you now have the stable atom text editor installed on your Ubuntu 22.04.
If you want to stay at the cutting edge of the technology and test out the new features being developed for Atom, you can install the nightly package. Just remember that it is prone to crash, so you should also have the stable version to fall back on. You can install nightly with:
$sudo apt install atom-nightly -y
As discussed, once you get the prompt back, you can run the following to verify your atom-nightly installation.
Launch Atom Text Editor
Once the installation has been completed, it’s not difficult running Atom. You can go into the applications and search for Atom and Atom-Nightly.
Or if you want, you can simply type the following and run Atom through the terminal.
Uninstall Atom Text Editor
If you are moving away from Atom, you can use the following command to remove Atom-stable from your Ubuntu 22.04.
$sudo apt autoremove atom -y
And if you are fed up with the frequent crashes of the nightly version, you can use:
$sudo apt autoremove atom-nightly -y
Atom is one of, if not the best text editor available to download right now. I hope, with my guide, you are able to install Atom and its development version. It’s a What You See Is What You Get sort of editor that doesn’t divert your attention to fancy bells and whistles. Depending on your needs, you can install any plugin to extend the functionality to achieve your objective.
If you face any issues during the installation, let me know in the comments below.