Sublime Text is a powerful and versatile text editor beloved by developers for its speed, customization options, and sleek interface. Unlike Windows and Mac, Linux relies on package managers for software installation. This guide will walk you through installing Sublime Text on popular Linux distributions like Ubuntu, Debian, Arch, Fedora, and openSUSE using their respective package managers.
Before We Begin:
- License: Sublime Text offers a free trial, but for continued use, a license is required.
- Channel Selection: Choose the "Stable" channel for a reliable experience or "Dev" for cutting-edge features (licensed users only).
Installation Steps (Choose your distribution):
Ubuntu & Debian:
-
Add GPG Key:
Bashwget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null -
Add Repository (Stable or Dev):
- Stable:
Bash
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list - Dev (Licensed Users):
Bash
echo "deb https://download.sublimetext.com/ apt/dev/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
- Stable:
-
Update & Install:
Bashsudo apt-get update sudo apt-get install sublime-text- If this fails, ensure HTTPS support:
Bash
sudo apt-get install apt-transport-https
- If this fails, ensure HTTPS support:
Arch Linux:
-
Add GPG Key:
Bashcurl -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 -
Add Repository (Stable or Dev - Choose Architecture):
- Stable (x86_64):
Bash
echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64" | sudo tee -a /etc/pacman.conf - Other options: Refer to the official guide for ARM and Dev channel instructions.
- Stable (x86_64):
-
Update & Install:
Bashsudo pacman -Syu sublime-text
Fedora & openSUSE (Similar Process):
-
Add GPG Key:
Bashsudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg -
Add Repository (Stable or Dev - Choose Architecture):
- Instructions vary slightly, refer to the specific commands for your distribution in the provided guide.
- Note: Currently, no ARM RPM packages are available.
-
Update & Install:
- Fedora:
sudo dnf install sublime-text - openSUSE:
sudo zypper install sublime-text
- Fedora:
Get Coding!
Once the installation is complete, launch Sublime Text from your applications menu and start exploring its rich features. Remember, a license is required for continued use after the trial period.
Additional Notes:
- This guide focuses on x86_64 architecture. For ARM or other architectures, refer to the official Sublime Text documentation for specific instructions.
- This is a simplified version. The official Sublime Text documentation provides more detailed explanations and troubleshooting steps:
https://www.sublimetext.com/3
Happy coding!
Post a Comment
Post a Comment