← 返回命令列表

Linux command

dch 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Add new changelog entry

dch "[changelog message]"

Increment version

dch -i

Create new changelog

dch -v [1.0.0-1]

Edit changelog

dch -e

Append to current

dch -a "[additional message]"

Create entry for

dch -D [unstable] "[message]"

Set urgency level

dch -u [high] "[message]"

说明

dch (Debian changelog) is a tool for editing Debian package changelog files (debian/changelog). It automates version incrementing, entry formatting, and maintains the strict changelog format required by Debian packaging. The tool handles the tedious formatting requirements of Debian changelogs, including proper date formats, maintainer information from DEBEMAIL/DEBFULLNAME environment variables, and version string manipulation. dch is essential for Debian package maintainers, automating the changelog workflow during package updates, security fixes, and new upstream releases.

参数

-i, --increment
Increment version for new upstream release.
-v _VERSION_
Create entry with specific version.
-a, --append
Append to current changelog entry.
-e, --edit
Open changelog in editor.
-D _DIST_
Set target distribution.
-u _URGENCY_
Set urgency: low, medium, high, emergency, critical.
-n, --nmu
Non-maintainer upload increment.
-b, --force-bad-version
Allow a version that is lower than the current.
-p, --preserve
Preserve directory name for package name.
-r, --release
Finalize entry for release (set distribution and timestamp).
--create
Create a new changelog file.
--help
Display help information.

FAQ

What is the dch command used for?

dch (Debian changelog) is a tool for editing Debian package changelog files (debian/changelog). It automates version incrementing, entry formatting, and maintains the strict changelog format required by Debian packaging. The tool handles the tedious formatting requirements of Debian changelogs, including proper date formats, maintainer information from DEBEMAIL/DEBFULLNAME environment variables, and version string manipulation. dch is essential for Debian package maintainers, automating the changelog workflow during package updates, security fixes, and new upstream releases.

How do I run a basic dch example?

Run `dch "[changelog message]"` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -i, --increment do in dch?

Increment version for new upstream release.