Linux Package Manager Repositories

http://www.sublimetext.com/docs/linux_repositories.html

Sublime Text includes an auto-upgrade mechanism on Windows and Mac to make upgrades a snap. Instead of going against the grain of the Linux ecosystem, packages and package repositories are provided for most of the major distributions.

Builds listed in the dev channel are only available to licensed users. Users who are evaluating Sublime Text before purchase will need to use the stable channel.

apt — Ubuntu, Debian

pacman — Arch

yum — CentOS

dnf — Fedora

zypper — openSUSE

apt

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

Select the channel to use:

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

pacman

Install the GPG key:

curl -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

Select the channel to use:

  • Stable x86_64

echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/x86_64" | sudo tee -a /etc/pacman.conf

  • Dev x86_64

echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/dev/x86_64" | sudo tee -a /etc/pacman.conf

  • Stable aarch64

echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/stable/aarch64" | sudo tee -a /etc/pacman.conf

  • Dev aarch64

echo -e "\n[sublime-text]\nServer = https://download.sublimetext.com/arch/dev/aarch64" | sudo tee -a /etc/pacman.conf

Update pacman and install Sublime Text:

sudo pacman -Syu sublime-text

yum

Install the GPG key:

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

Select the channel to use:

  • Stable

sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo

  • Dev

sudo yum-config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo

Update yum and install Sublime Text:

sudo yum install sublime-text

Note there are no RPM packages for ARM currently.

dnf

Install the GPG key:

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

Select the channel to use:

  • Stable

sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo

  • Dev

sudo dnf config-manager --add-repo https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo

Update dnf and install Sublime Text:

sudo dnf install sublime-text

Note there are no RPM packages for ARM currently.

zypper

Install the GPG key:

sudo rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg

Select the channel to use:

  • Stable

sudo zypper addrepo -g -f https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo

  • Dev

sudo zypper addrepo -g -f https://download.sublimetext.com/rpm/dev/x86_64/sublime-text.repo

Update zypper and install Sublime Text:

sudo zypper install sublime-text

Note there are no RPM packages for ARM currently.

以下来自知乎,测试有效:

wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -

sudo apt-get install apt-transport-https

echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list

sudo apt-get update

sudo apt-get install sublime-text

链接:https://www.zhihu.com/question/277375239/answer/398571583

最新文章

  1. Android 环境配置
  2. 【模拟】NEERC15 A Adjustment Office (2015-2016 ACM-ICPC)(Codeforces GYM 100851)
  3. javascript每日一练(八)——事件三:默认行为
  4. mysql 建表 AUTO_INCREMENT , 数据类型 VARCHAR
  5. tableview的reloadData应注意
  6. 技术分享,学术报告presentation 常用的承接句
  7. golang其实也可以优先调度
  8. docker基础及安装
  9. mySQL简单操作(二)
  10. Akka-CQRS(4)- CQRS Writer Actor 示范
  11. 使用SSH命令行传输文件到远程服务器
  12. 初识 GitHub
  13. IDEA配置SVN,Git,GitLab
  14. blog 社会化评论插件 多说for china, disqus for global range
  15. frame自适应
  16. 宏晶STC单片机使用STC-ISP串口烧录失败的原因与解决方法汇总
  17. PAT Battle Over Cities [未作]
  18. http 缓存策略浅析
  19. 从Iris数据集开始---机器学习入门
  20. 【BZOJ5333】荣誉称号(动态规划)

热门文章

  1. Excel 统计函数(五):MINIFS 和 MAXIFS
  2. 【manim】学习路径1-安装篇-windows、macOS
  3. Qt 场景创建
  4. 一篇文章教你学会ASP.Net Core LINQ基本操作
  5. KingbaseES wal(xlog) 日志清理故障恢复案例
  6. 项目管理构建工具——Maven(基础篇)
  7. bean的作用域解析
  8. Ubuntu22.04 安装配置流水账
  9. filebeat测试output连通性
  10. JSP实现登录删除添加星座等(带样式)