以下の内容はhttps://pyopyopyo.hatenablog.com/entry/2021/07/02/180000より取得しました。


debian/changelog からバージョン番号を取り出す方法

debianのソースパッケージから,生成されるバイナリパッケージのバージョン情報を抽出するには dpkg-parsechangelog を使うのが簡単.

dpkg-parsechangelog  --file path/to/changelog  --show-field Version 
dpkg-parsechangelog  --file path/to/changelog  --show-field Source 

"--show-field"で,抽出したい情報のフィールド名を指定する

フィールド名とdebian/changelogの書式の対応は以下の通り

Source (Version) Distribution; Urgency

-- Maintainer (Date)

あと Changelogunix timestamp を取る場合は

dpkg-parsechangelog  --file path/to/changelog  --show-field Timestamp 

とすれば良い.

さすがデビアン.よくできている.




以上の内容はhttps://pyopyopyo.hatenablog.com/entry/2021/07/02/180000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14