適切なsource.listを最小化する方法

適切なsource.listを最小化する方法

行を複数行にカットできると思います。だからアドバイスが必要です。これらのsource.listをどのように改善できますか?

apt/sources.list、最新の Debian バージョン:

deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib
deb http://ftp.debian.org/ wheezy-updates main contrib
deb-src http://ftp.debian.org/ wheezy-updates main contrib
deb http://ftp.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.debian.org/debian/ wheezy main contrib non-free
deb http://ftp.debian.org/debian sid main

ベストアンサー1

resources.listの構造は"最小化するこの行をさらに圧縮しても実質的な利点はありません。リストされているすべてのリポジトリには次のものが必要です。

type [ options ] uri suite [component1] [component2] [...]

またはrfc822形式

Types: deb deb-src
URIs: http://example.com
Suites: stable testing
Sections: component1 component2
Description: short
 long long long
[option1]: [option1-value]

あなたのsource.listは、すでにソースを一覧表示できる最も短く効率的な方法の利点を享受しています。もちろん、異なるコンポーネントで同じ行を繰り返して別々に処理することもできます。

deb http://security.debian.org/ wheezy/updates main
deb http://security.debian.org/ wheezy/updates contrib

ただし、APTの場合、これは次のようになります。

deb http://security.debian.org/ wheezy/updates main contrib

解析中。

これらのsource.listをどのように改善できますか?

「改善」の余地はありません。ファイルが有効な限り、APTは文句を言いません。

おすすめ記事