How To Install Sublime Text Editor In Linux

How To Install Sublime Text Editor In Linux - techfirex

How To Install Sublime Text Editor In Linux

Hello friends,
In this article, I'm going to installing a sublime text editor in Linux with a license.
First of all, I will show you installation in Kali Linux, and then after I will show you how you can install sublime text editor in different Linux distributions.

How To Install Sublime Text Editor In Kali Linux

For that run below commands,
┌──(tushar㉿techfire)-[~]
└─$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
┌──(tushar㉿techfire)-[~]
└─$ sudo apt-get install apt-transport-https
Reading package lists... Done
Building dependency tree
Reading state information... Done
apt-transport-https is already the newest version (2.1.11).
0 upgraded, 0 newly installed, 0 to remove and 198 not upgraded.
┌──(tushar㉿techfire)-[~]
└─$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
deb https://download.sublimetext.com/ apt/stable/
┌──(tushar㉿techfire)-[~]
└─$ sudo apt-get update
Get:2 https://download.sublimetext.com apt/stable/ InRelease [2,562 B]
Get:3 https://download.sublimetext.com apt/stable/ Packages [1,026 B]
Hit:1 http://ftp.harukasan.org/kali kali-rolling InRelease
Fetched 3,588 B in 7s (529 B/s)
Reading package lists... Done
┌──(tushar㉿techfire)-[~]
└─$ sudo apt-get install sublime-text
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
sublime-text
0 upgraded, 1 newly installed, 0 to remove and 198 not upgraded.
Need to get 9,835 kB of archives.
After this operation, 34.8 MB of additional disk space will be used.
Get:1 https://download.sublimetext.com apt/stable/ sublime-text 3211 [9,835 kB]
Fetched 9,835 kB in 8s (1,274 kB/s)
Selecting previously unselected package sublime-text.
(Reading database ... 300974 files and directories currently installed.)
Preparing to unpack .../sublime-text_3211_amd64.deb ...
Unpacking sublime-text (3211) ...
Setting up sublime-text (3211) ...
Processing triggers for kali-menu (2020.4.0) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for mime-support (3.64) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1) ...
┌──(tushar㉿techfire)-[~]
└─$ subl
after running subl command it will open the sublime text editor.
Now go to Help >> Enter License in a sublime text editor.

Copy below license and paste there and you will purchase sublime text editor for free.
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
5653E0A0 BACE3948 BB2EE45E 422D2C87
DD9AF44B 99C49590 D2DBDEE1 75860FD2
8C8BB2AD B2ECE5A4 EFC08AF2 25A9B864
------ END LICENSE ------​

How To Install Sublime Text Editor In Linux

APT (Ubuntu, Debian)

Install the GPG key:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

Ensure APT is set up to work with HTTPS sources:

sudo apt-get install apt-transport-https

Select the channel to use:

Stable
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
Dev
echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

Update apt sources and install Sublime Text

sudo apt-get update
sudo apt-get install sublime-text

PacMan (ArchLinux)

Install the GPG key:

curl -O https://download.sublimetext.com/sublimehq-pub.gpg && sudo pacman-key --add sublimehq-pub.gpg && sudo pacman-key --lsign-key 8A8F901A && rm sublimehq-pub.gpg

Select the channel to use:

Stable
echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64" | sudo tee -a /etc/pacman.conf
Dev
echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/dev/x86_64" | sudo tee -a /etc/pacman.conf

Update Pacman and install Sublime Text

sudo pacman -Syu sublime-text

Yum (CentOS/RHEL)

Install the GPG key:

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

Select the channel to use:

Stable
sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
Dev
sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo

Update yum and install Sublime Text

sudo yum install sublime-text

DNF (Fedora)

Install the GPG key:

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

Select the channel to use:

Stable
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
Dev
sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo

Update DNF and install Sublime Text

sudo dnf install sublime-text

Zypper (openSUSE)

Install the GPG key:

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

Select the channel to use:

Stable
sudo zypper addrepo -g -f https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
Dev
sudo zypper addrepo -g -f https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo

Update Zypper and install Sublime Text

sudo zypper install sublime-text
Once you are done with installation open a sublime text editor and go to Help >> Enter Licence and you're done.
----- BEGIN LICENSE -----
Member J2TeaM
Single User License
EA7E-1011316
D7DA350E 1B8B0760 972F8B60 F3E64036
B9B4E234 F356F38F 0AD1E3B7 0E9C5FAD
FA0A2ABE 25F65BD8 D51458E5 3923CE80
87428428 79079A01 AA69F319 A1AF29A4
A684C2DC 0B1583D4 19CBD290 217618CD
5653E0A0 BACE3948 BB2EE45E 422D2C87
DD9AF44B 99C49590 D2DBDEE1 75860FD2
8C8BB2AD B2ECE5A4 EFC08AF2 25A9B864
------ END LICENSE ------​