DOTDEB - Debian Servers的另外存储库

时间:2020-03-21 11:43:27  来源:igfitidea点击:

DotDeb为Debian和Ubuntu服务器提供另外的存储库,提供最新的包。
DOTDEB主要为Debian服务器设计,但是,Ubuntu用户也可以使用它。
对于Ubuntu服务器,没有提供任何官方支持。
它目前支持Debian 8.x Jessie,Debian 7.x Wheezy,都是64位和32位架构。

DOTDEB包括许多流行的最新包,包括:

  • nginx,
  • PHP 7.0,5.6,5.5和5.4(过时),
  • 有用的PHP扩展:APCU,Imagick,Mongo,Pinba,Xcache,Xdebug,Xhprof ...
  • mysql 5.6
  • Passenger
  • redis,
  • zabbix,

在Debian中添加dotdeb存储库

要添加dotdeb main存储库,请编辑/etc/apt/sources.list文件:

$sudo vi /etc/apt/sources.list

根据我们使用的debian版本(jessie或者wheezy),添加以下行。

对于Debian 8.x,添加这些行:

deb http://packages.dotdeb.org jessie all
deb-src http://packages.dotdeb.org jessie all

对于Debian 7.x,添加:

deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all

我们还可以选择最近的镜像。
全球各地的所有Dotdeb镜像都列在此链接中。

保存并关闭文件。

如果我们想在Debian 8"Jessie"上的"完整"HTTP2支持(带ALPN协商)上安装Nginx,请激活Jessie-Backports存储库,安装openssl 1.0.0(apt-get install-t jessie-backports libssl1.0.0)并也添加这两行。

deb http://packages.dotdeb.org jessie-nginx-http2 all
deb-src http://packages.dotdeb.org jessie-nginx-http2 all

PHP 5.6在Debian 7"Wheezy"(没有Zend Thread安全),也添加这两行:

deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all

PHP 5.6在Debian 7"Wheezy"(带有Zend Thread Safety),添加这两行,而不是:

deb http://packages.dotdeb.org wheezy-php56-zts all
deb-src http://packages.dotdeb.org wheezy-php56-zts all

PHP 5.5在Debian 7"Wheezy"上,也添加了这两行:

deb http://packages.dotdeb.org wheezy-php55 all
deb-src http://packages.dotdeb.org wheezy-php55 all

然后,导入和添加dotdeb gpg键:

$wget https://www.dotdeb.org/dotdeb.gpg
$sudo apt-key add dotdeb.gpg

最后,使用命令更新存储库列表:

$sudo apt-get update

现在,我们可以像往常一样安装包。

$sudo apt-get install <package_name>