虽然Debian Jessie目前已经是old stable版本了,但它提供的Qt4环境以及默认的JDK7开发环境对于维护一些兼容性应用仍然具有吸引力,而且通过Backports可以获取到较新的软件版本,下面就来介绍下如何启用Backports,用root权限使用vim添加下面这句到/etc/apt/sources.list
deb http://ftp.debian.org/debian jessie-backports main contrib non-free
更新源,然后需要从Backports安装软件时必须明确指定,比如
$ sudo apt-get update
$ sudo apt-get -t jessie-backports install openjdk-8-jdk clang-3.8 clang-format-3.8 clang-tidy-3.8 redis-server redis-sentinel nginx
以上方法对于Stretch
同样适用,在源中添加
deb http://ftp.debian.org/debian stretch-backports main contrib non-free
更新源,然后需要从Backports安装软件时必须明确指定即可。
Debian Jessie默认的Python 3版本为3.4,比较老,而在Ba