how to install submine in ubuntu (18.04)
Method 1: Install Sublime Text via Official APT Repository (Recommended)
This method ensures Sublime Text is installed with its dependencies and receives updates automatically.
1.Update Your System: Ensure your package lists are up-to-date to avoid dependency issues:
sudo apt update && sudo apt upgrade
2.Install Required Dependencies: Install packages needed for adding HTTPS repositories:
3 sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
4 Add Sublime Text GPG Key: Import the official Sublime Text GPG key to verify packages:
curl -fsSL https://download.sublimetext.com/sublimehq-pub.gpg | sudo gpg --dearmor -o /usr/share/keyrings/sublimehq-pub.gpg
5 Add Sublime Text Repository: Add the stable channel repository to your system:
echo “deb [signed-by=/usr/share/keyrings/sublimehq-pub.gpg] https://download.sublimetext.com/ apt/stable/” | sudo tee /etc/apt/sources.list.d/sublime-text.list
6 Update Package Lists: Refresh the package lists to include the Sublime Text repository:
sudo apt update
7 Install Sublime Text: Install the latest version of Sublime Text:
sudo apt install -y sublime-text
8 Verify Installation: Launch Sublime Text from the terminal:
subl
Or find it in your applications menu (search for “Sublime Text”).
Note: Sublime Text is proprietary software. It can be evaluated for free with no time limit, but a license is required for continued use. Updates will be handled automatically via sudo apt upgrade
How to use it simply
Install Package Control (optional): To add plugins, install Package Control:
Open Sublime Text.
Press Ctrl + Shift + P to open the Command Palette.
Type “Install Package Control” and press Enter.
Use Package Control to install plugins like
‘LSP’ or ‘colorpicker’.