how to install atom in ubuntu code example

Example 1: install atom ubuntu terminal

Install in terminal

Step 1 : Add repository from official Atom Site
wget -qO - 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'
Press Enter if it ask your permission.

Step 2 : Update the Ubuntu System
sudo apt-get update
It will take some time. Be patient.

Step 3 : Install Atom Editor
sudo apt-get install atom

Example 2: install atom ubuntu

wget -qO - 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

 Install Atom
sudo apt-get install atom
# Install Atom Beta
sudo apt-get install atom-beta
Alternatively, you can download the Atom .deb package and install it directly:

# Install Atom
sudo dpkg -i atom-amd64.deb
# Install Atom's dependencies if they are missing
sudo apt-get -f install

Example 3: install atom ubuntu 18

$ wget -O atom-amd64.deb https://atom.io/download/deb
sudo apt install gdebi-core
sudo gdebi atom-amd64.deb

Example 4: download atom for ubuntu 18.04

wget -q https://packagecloud.io/AtomEditor/atom/gpgkey -O- | sudo apt-key add -

Example 5: download atom for ubuntu 18.04

sudo apt updatesudo apt install software-properties-common apt-transport-https wget