不安定なリポジトリを使用し、デフォルトでテストされているパッケージのみをインストールする方法(AptConf経由)?

不安定なリポジトリを使用し、デフォルトでテストされているパッケージのみをインストールする方法(AptConf経由)?

以下の指示に従いました。debian-handbook.info/browse/stable/apt.html(そしてそこにリンクされたページ)は基本的に次のテキストを入れることを意味します。/etc/apt/sources.list

# Unstable
deb http://ftp.debian.org/debian unstable main contrib non-free
deb-src http://ftp.debian.org/debian unstable main contrib non-free

# Testing
deb http://ftp.debian.org/debian testing main contrib non-free
deb-src http://ftp.debian.org/debian testing main contrib non-free

# Stable
deb http://ftp.debian.org/debian stable main contrib non-free
deb-src http://ftp.debian.org/debian stable main contrib non-free

# Security updates
deb http://security.debian.org/ stable/updates main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ stable/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free

次に、テスト中のパッケージのみをダウンロードするAPT::Default-Release "testing";には、追加します。まあ、それはうまくいきませんでした。私も提案したように追加しようとしました。/etc/apt/apt.conf.d/local

APT::Default-Release "testing";/etc/apt/apt.conf.d/70debconfhttps://wiki.debian.org/AptConfしかし、apt dist-upgradeまだUnstableパッケージをインストールしたいと思います。

ベストアンサー1

テストで特定のパッケージをインストールするには、次のようにします。

apt-get install pckg_name/testing

または

apt-get -t testing install pckg_name

apt-listbugsパッケージを直接ビルドすることもできます。まず、およびをインストールする必要があります debhelperdevscriptsbuild-essential

apt-get update
apt-get build-dep pckg_name
apt-get -b source pckg_name
dpkg -i pckg_name

新しいファイルを作成して/etc/apt/preferences.d/testing優先順位を設定する900と、aptテストパッケージの優先順位が高いことがわかります。

Package: *
Pin: release a=testing
Pin-Priority: 900

その後、更新

おすすめ記事