「deb」行でアーカイブ/バンドルを決定します。

「deb」行でアーカイブ/バンドルを決定します。

deb行でのみ「Archive」、「Suite」、「origin」(またはAPTで使用されるその他の項目)を確認する簡単な方法はありますか?

たとえば、誰か(もちろん信頼できる)が私に次のようなDebラインを提供しました。

deb http://myrepo.example.org/debian/ wheezy main contrib non-free whatever

source.listに追加し、GPGの問題を修正、更新し、パッケージをインストールするだけです。ほとんど無人アップグレードも欲しいからです。だから/etc/apt/apt.conf.d/50unattended-upgradesを開き、次のことを確認します。

// Automatically upgrade packages from these origin patterns
Unattended-Upgrade::Origins-Pattern {
        // Archive or Suite based matching:
        // Note that this will silently match a different release after
        // migration to the specified archive (e.g. testing becomes the
        // new stable).
//      "o=Debian,a=stable";
//      "o=Debian,a=stable-updates";
//      "o=Debian,a=proposed-updates";
        "origin=Debian,archive=stable,label=Debian-Security";
};

彼らは「アーカイブまたはコレクションベースのマッチング」を使用したいと思います。

だから、

  • スキーマに必要な情報をどのように書き込んだり検索したりしますか?

  • (好奇心で)source.listに行を追加する前にこれを行うことはできますか?

  • deb ftp://(使用されているかどうかわからない)またはdeb-srcはどうですか?

  • 「パイプライン」ユーティリティはありますか?

私はURIだけでなく、repo構造の一般的な説明とdeb行を読む方法を探しています。現職公務員Debian リポジトリ。

ベストアンサー1

Releaseこの情報はリポジトリファイルにあります。

たとえば、デフォルトのDebianリポジトリの場合:http://ftp.debian.org/debian/dists/wheezy/main/binary-i386/Release

Archive: stable
Origin: Debian
Label: Debian
Version: 7.2
Component: main
Architecture: i386

一部の情報は基本ファイルにもありますReleasehttp://ftp.debian.org/debian/dists/stable/Release

リポジトリの詳細については、次を参照してください。https://wiki.debian.org/RepositoryFormat

おすすめ記事