install sublime text in linux

How to Install Sublime Text in Linux

Sublime Text Editor is a popular source code editor that is lightweight, open source and cross-platform. It supports popular languages such as C, C++, C#, CSS, HTML, Java, JavaScript, PHP, Groovy, LaTeX, Python. It is available in Windows, MacOS and Linux, and offers useful features such as syntax highlighting, UI themes, apt/yum repositories and more. In this article, we will look at how to install Sublime Text in Linux.


How to Install Sublime Text in Linux

Sublime Text is a well-maintained, mature and robust application that keeps adding new features and improving existing ones, with every release. Here is how to install sublime text on different Linux distributions.


Install Sublime Text in Ubuntu/Debian

Open Terminal and run the following commands to install sublime text in Ubuntu/Debian systems.

$ wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
$ sudo apt-get install apt-transport-https
$ echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
$ sudo apt-get update
$ sudo apt-get install sublime-text


Install Sublime in Redhat/CentOS

Open Terminal and run the following commands to install sublime text in Redhat/CentOS/Fedora.

$ sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
$ sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
$ sudo yum install sublime-text 


Install Sublime on Fedora

Open terminal and run the following commands to install sublime text in Fedora.

$ sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
$ sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
$ sudo dnf install sublime-text

Once you installed sublime in your Linux distribution, you can easily open it with the following command.

$ sublime

That’s it. In this short article, we have learnt how to install sublime editor in different Linux distributions. If you use a different Linux distribution than the ones mentioned above, visit their site for detailed instructions.

Also read:

HAProxy Load Balancer Configuration in Linux
How to Clone Partition or Hard Disk in Linux
How to Assign Multiple IP Addresses to Network Interface
How to Find Public IP Address of Linux Server
How to Find Folder By Name in Linux

Leave a Reply

Your email address will not be published. Required fields are marked *