Skip to content

Instantly share code, notes, and snippets.

@minazou67
Last active September 21, 2020 14:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minazou67/b8fa88c982d5b887b716 to your computer and use it in GitHub Desktop.
Save minazou67/b8fa88c982d5b887b716 to your computer and use it in GitHub Desktop.
How to use the testing distribution of Debian

How to use the testing distribution of Debian

Debian のテスト版 (testing) のディストリビューションを使用する方法です。

Environment

  • Debian wheezy

Why use

安定版 (stable) やバックポート (backports) より新しいバージョンのパッケージを使用したい。 テスト版 (testing) ではなく、不安定版 (unstable) を使用したい場合でも同様の方法でインストール可能です。

How to use

Specify the default target release

ファイルを新規作成してデフォルトのターゲットリリースを指定します。

# sudo vi /etc/apt/apt.conf.d/99target
APT::Default-Release "stable";

Add apt-line

ファイルを新規作成して apt-line にテスト版 (testing) のディストリビューションを追加します。 source.list に直接追加しても問題ありません。

# sudo vi /etc/apt/sources.list.d/testing.list
deb http://ftp.jp.debian.org/debian/ testing main
deb-src http://ftp.jp.debian.org/debian/ testing main

Install testing package

テスト版 (testing) のディストリビューションを指定して可能インストールします。 この状態ではテスト版 (testing) のパッケージがバージョンアップされても、インストール時のバージョンがキープされます。

# sudo aptitude install nginx/testing

Setting package priority

テスト版 (testing) のパッケージをアップグレード対象にしたい場合は、preferences を設定します。

# sudo vi /etc/apt/preferences.d/testing
Package: *
Pin: release a=testing
Pin-Priority: 110
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment