[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Packaging Manual ch-conffiles, chap9



鍋谷です。

From: seiji@xxxxxxxxxxxxxxxxxxx (Seiji Kaneko)
Subject: Re: Packaging Manual ch-conffiles, chap9
Date: Wed, 13 May 1998 18:46:15 +0900

> かねこ@ひたちです。
> At 1:59 5/10/98, Motoyasu KOJIMA wrote:
> > >> <!--
> > >> For each file it checks to see whether the version of the file
> > >> included in the package is the same as the one that was included in
> > >> the last version of the package (the one that is being upgraded
> > >> from); it also compares the version currently installed on the system
> > >> with the one shipped with the last version.<P>
> > >> -->
> 
> <kbd>dpkg</kbd> は、パッケージに含まれるそれぞれのファイルについて,
> それが以前のバージョンのパッケージ(今アップグレードしようとしてい
> るもの)に含まれているものと同一のものであるかをチェックします。ま
> た,同時に以前のバージョンのパッケージに含まれていたものと,現在シ
> ステムにインストールされているものとの比較も行います。
> 
> #最後の一文の 2つのバージョンの意味(の違い)が良く分からない。た
> #だ,原訳は確かに変。

1.「the version of the file included in the package」
     新規にインストールしようとしているパッケージに含まれる設定
     ファイルのこと

2.「the one that was included in the last version of the package」
3.「the one shipped with the last version」
     現在インストールされているパッケージが設定ファイルをインストール
     した時点でのバージョン、つまり現在のパッケージのデフォルトの設定
     ファイルのこと(/var/lib/dpkg/info/*.md5sums に記載されている。)

4.「the version currently installed on the system」
     現在システムにある設定ファイル(ユーザにより書き換えられている
     場合、デフォルトの md5sums と異なる)

の違いですかね。要約すると、
「dpkg は、(1)と(2)を比較する。同時に(4)と(3)を比較する」
です。

<kbd>dpkg</kbd> は、それぞれの設定ファイルについて、パッケージに
含まれているものが現在の(つまり、今アップグレードしようとしている)
バージョンのパッケージに最初に含まれていたものと同一のものであるか
をチェックします。同時に、現在のバージョンのパッケージで最初に提供
されていたものと,現在システムにインストールされているものとの比較
も行います。

大阪大学理学研究科物理学専攻 博士後期課程1年 大坪研究室(06-850-5346)
         鍋谷 栄展      nabetani@xxxxxxxxxxxxxxxxxxxxxxxxxxx