Download sublime text editor in ubuntu

I just tried it (Kubuntu 20.10) with the apt method - and it worked, with a little caveat:

The install script installs the package in the /opt directory and the executable in /opt/sublime_text/ and does not add these directories to your PATH environment variable.

So I had to add

PATH=$PATH:/opt/sublime_text

to my ~/.bashrc file (and do source ~/.bashrc).

Alternatively, you can do, say

sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin

1 Like