CentOS7 安装 Sublime Text3

贺跃
2023-12-01

在官网下载,下载链接:http://www.sublimetext.com

解压:sublime_text_build_4113_x64.tar.xz
这是两层压缩,外面是xz压缩方式,里层是tar压缩

[root@bogon wwwroot]# xz -d sublime_text_build_4113_x64.tar.xz 

[root@bogon wwwroot]# ls -al
total 48012
drwxrwxrwx. 4 root root       79 Aug 17 11:47 .
drwxr-xr-x. 8 root root       96 Dec 22  2020 ..
-rw-r--r--  1 root root 49162240 Aug 17 11:46 sublime_text_build_4113_x64.tar
drwxr-xr-x  2 root root       22 Aug 17 10:48 test.cc
drwxr-xr-x  3 root root       21 Aug 16 19:08 textlaravel.cc

[root@bogon wwwroot]# tar -xvf sublime_text_build_4113_x64.tar 
sublime_text/
sublime_text/crash_reporter
sublime_text/plugin_host-3.8
sublime_text/Packages/
sublime_text/Packages/Java.sublime-package
sublime_text/Packages/R.sublime-package
sublime_text/Packages/Rust.sublime-package
sublime_text/Packages/Rails.sublime-package
sublime_text/Packages/ActionScript.sublime-package
sublime_text/Packages/YAML.sublime-package
sublime_text/Packages/Graphviz.sublime-package
sublime_text/Packages/Go.sublime-package
sublime_text/Packages/Color Scheme - Default.sublime-package
sublime_text/Packages/CSS.sublime-package
sublime_text/Packages/Textile.sublime-package
sublime_text/Packages/Perl.sublime-package
sublime_text/Packages/LaTeX.sublime-package
sublime_text/Packages/Matlab.sublime-package
sublime_text/Packages/Default.sublime-package
sublime_text/Packages/PHP.sublime-package
sublime_text/Packages/Lisp.sublime-package
sublime_text/Packages/D.sublime-package
sublime_text/Packages/C#.sublime-package
sublime_text/Packages/JSON.sublime-package
sublime_text/Packages/Makefile.sublime-package
sublime_text/Packages/JavaScript.sublime-package
sublime_text/Packages/Pascal.sublime-package
sublime_text/Packages/ASP.sublime-package
sublime_text/Packages/Color Scheme - Legacy.sublime-package
sublime_text/Packages/Text.sublime-package
sublime_text/Packages/Clojure.sublime-package
sublime_text/Packages/Lua.sublime-package
sublime_text/Packages/Ruby.sublime-package
sublime_text/Packages/Diff.sublime-package
sublime_text/Packages/Regular Expressions.sublime-package
sublime_text/Packages/Vintage.sublime-package
sublime_text/Packages/Haskell.sublime-package
sublime_text/Packages/RestructuredText.sublime-package
sublime_text/Packages/Markdown.sublime-package
sublime_text/Packages/TCL.sublime-package
sublime_text/Packages/Theme - Default.sublime-package
sublime_text/Packages/AppleScript.sublime-package
sublime_text/Packages/Batch File.sublime-package
sublime_text/Packages/Language - English.sublime-package
sublime_text/Packages/SQL.sublime-package
sublime_text/Packages/ShellScript.sublime-package
sublime_text/Packages/C++.sublime-package
sublime_text/Packages/Python.sublime-package
sublime_text/Packages/Git Formats.sublime-package
sublime_text/Packages/XML.sublime-package
sublime_text/Packages/Scala.sublime-package
sublime_text/Packages/Objective-C.sublime-package
sublime_text/Packages/Erlang.sublime-package
sublime_text/Packages/HTML.sublime-package
sublime_text/Packages/Groovy.sublime-package
sublime_text/Packages/OCaml.sublime-package
sublime_text/libssl.so.1.1
sublime_text/Icon/
sublime_text/Icon/256x256/
sublime_text/Icon/256x256/sublime-text.png
sublime_text/Icon/128x128/
sublime_text/Icon/128x128/sublime-text.png
sublime_text/Icon/48x48/
sublime_text/Icon/48x48/sublime-text.png
sublime_text/Icon/16x16/
sublime_text/Icon/16x16/sublime-text.png
sublime_text/Icon/32x32/
sublime_text/Icon/32x32/sublime-text.png
sublime_text/sublime_text
sublime_text/libcrypto.so.1.1
sublime_text/sublime_text.desktop
sublime_text/plugin_host-3.3
sublime_text/Lib/
sublime_text/Lib/python33/
sublime_text/Lib/python33/sublime_plugin.py
sublime_text/Lib/python33/sublime.py
sublime_text/Lib/python3/
sublime_text/Lib/python3/certifi/
sublime_text/Lib/python3/certifi/core.py
sublime_text/Lib/python3/certifi/__init__.py
sublime_text/Lib/python3/certifi/__main__.py
sublime_text/Lib/python3/certifi/cacert.pem
sublime_text/Lib/python3/certifi/__pycache__/
sublime_text/Lib/python3/certifi/__pycache__/core.cpython-38.opt-1.pyc
sublime_text/Lib/python3/certifi/__pycache__/__init__.cpython-38.opt-1.pyc
sublime_text/Lib/python3/certifi/LICENSE
sublime_text/Lib/python3.3.zip
sublime_text/Lib/python3.8.zip
sublime_text/Lib/python38/
sublime_text/Lib/python38/sublime_plugin.py
sublime_text/Lib/python38/sublime.py
sublime_text/changelog.txt

[root@bogon wwwroot]# ls -al
total 48016
drwxrwxrwx. 5 root root       98 Aug 17 11:48 .
drwxr-xr-x. 8 root root       96 Dec 22  2020 ..
drwxrwxr-x  5 root root     4096 Jul 14 12:10 sublime_text
-rw-r--r--  1 root root 49162240 Aug 17 11:46 sublime_text_build_4113_x64.tar
drwxr-xr-x  2 root root       22 Aug 17 10:48 test.cc
drwxr-xr-x  3 root root       21 Aug 16 19:08 textlaravel.cc
[root@bogon wwwroot]# 

可以切换的该目录下,直接 ./sublime_text

建立软链接,以方便终端打开ln -s /opt/sublime_text_3/sublime_text /usr/bin/sublime 打开命令就是sublime

建立桌面快捷
#cp /opt/sublime_text/sublime_text.desktop /usr/share/applications
#cd /usr/share/applications
#vim sublime_text.desktop
修改"Icon=/opt/sublime_text/Icon/48x48/sublime-text.png"
应用程序 >编程 > Sublime Text"右键"将此启动器添加到桌面"

去掉更新提示:找到Preferences -> Settings-User(设置用户),找到倒数第三行的//“update_check”: false, 把注释去掉

 类似资料: