How to Install Sublime Text on Ubuntu Linux
Sublime Text is well known for its fast and lightweight performance. In addition, it supports many programming languages. By default, Sublime Text supports 43 programming languages and plain text. This editor can be used on both Windows and Linux operating systems. Although a paid version is available, you can still use it for free.
In this tutorial, we will explain how to install Sublime Text on Ubuntu easily and quickly. You can install it using the terminal or other available methods. This guide works for all Ubuntu versions.
Preparation Before Installation
Before starting the Sublime Text installation on Ubuntu, there are several things you need to prepare to ensure the process runs smoothly.
First, make sure your Ubuntu system is connected to a stable internet connection. An internet connection is required to download the necessary packages during the installation process.
Next, ensure you have access to the terminal with sudo privileges. These privileges are required to run installation commands that need administrator permissions.
In addition, we need to install a supporting package called apt-transport-https. This package allows APT to access repositories using the HTTPS protocol. Although newer Ubuntu versions already include HTTPS support by default, installing this package is still recommended to ensure compatibility across all Ubuntu versions.
Lastly, we need to add the GPG (GNU Privacy Guard) key from Sublime Text. This key is used to verify the authenticity of downloaded packages, ensuring they come from an official and trusted source.
Adding the Sublime Text Repository
One of the most important steps in installing Sublime Text on Ubuntu is adding the official repository to the system. This allows the APT package manager to install Sublime Text easily and receive automatic updates.
Sublime Text provides two repository channels: stable and dev. The stable channel contains well-tested versions with minimal bugs, while the dev channel includes the latest features that may still have some issues. In this guide, we will use the stable channel.
Adding the GPG Key
Add the official Sublime Text GPG key by running the following command:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
Adding Set Source with HTTPS
Using the following command:
sudo apt-get install apt-transport-https
After adding the repository, update the package list with the following command:
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
Install Sublime Text on Ubuntu
Once the repository has been added, you can install Sublime Text by running the command below:
sudo apt-get update
sudo apt-get install sublime-text
This command will install Sublime Text directly from the official repository.
Conclusion
By following the steps above, you have successfully installed Sublime Text on your Ubuntu Linux system. The installation process is simple and provides access to a fast, lightweight, and powerful text editor. With support for 43 programming languages, Sublime Text remains a favorite choice among professional developers.
Read More: How to Check Linux OS Version on Any Distro
Sublime Text can be installed using two main methods: the APT repository or Snap. The repository method is generally recommended for optimal performance, while Snap is suitable for users who prefer easier package management. In addition, using the subl command in the terminal allows you to launch Sublime Text quickly and efficiently.






Post a Comment for "How to Install Sublime Text on Ubuntu Linux"
Post a Comment