安装
The apt repository contains packages for both x86-64 and arm64.
Install the GPG key:
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/sublimehq-archive.gpg > /dev/null
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
If this fails ensure apt is set up to work with https sources:
sudo apt-get install apt-transport-https
卸载
首先查看一下sublime text 3在系统中存在的程序名
dpkg -l | grep sublime
查看到程序名后
sudo dpkg -r sublime-text
卸载sublime text
sudo rm -rf /home/username/.config/sublime-text/
删除配置文件,其中的username为系统的用户名