← 返回命令列表

Linux command

debsign 命令

文本

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

常用示例

Sign a .changes file

debsign [package.changes]

Sign with specific key

debsign -k [KEYID] [package.changes]

Sign .dsc file only

debsign [package.dsc]

Sign using specified

debsign -m "[Name <email@example.com>]" [package.changes]

Re-sign with

debsign -e "[newemail@example.com]" [package.changes]

Sign files on a remote host

debsign -r [user@remotehost] [package.changes]

说明

debsign mimics the signing aspects of dpkg-buildpackage(1). It takes a .dsc, .buildinfo, or .changes file and signs it, and any child .dsc, .buildinfo, or .changes files referenced by it, using GPG. Signing is required for uploading packages to Debian repositories, as it verifies the package maintainer's identity. The tool finds the appropriate GPG key based on the maintainer field in the file being signed, or uses an explicitly specified key. It updates the file with GPG signatures that can be verified during package upload and installation. debsign is typically used after building a Debian package with dpkg-buildpackage or debuild, as the final step before uploading to a repository.

参数

-k _KEYID_
GPG key ID to use for signing.
-m _MAINTAINER_
Specify maintainer for signing.
-e _MAINTAINER_
Same as -m but takes precedence over it.
-r _username@__remotehost_
Sign files on specified remote host using scp for transfer.
-p _PROGNAME_
Use specified GPG program instead of the default gpg.
-S
Search for source-only .changes file instead of binary-build .changes file.
-a _ARCH_
Specify the Debian architecture for .changes file search.
--re-sign
Recreate signature if file has been signed already.
--no-re-sign
Use existing signature if file has been signed already.
--debs-dir _DIR_
Look for files to sign in specified directory instead of parent directory.
--no-conf
Do not read any configuration files. Must be the first option.
-h, --help
Display help message and exit.
--version
Display version and copyright information.

FAQ

What is the debsign command used for?

debsign mimics the signing aspects of dpkg-buildpackage(1). It takes a .dsc, .buildinfo, or .changes file and signs it, and any child .dsc, .buildinfo, or .changes files referenced by it, using GPG. Signing is required for uploading packages to Debian repositories, as it verifies the package maintainer's identity. The tool finds the appropriate GPG key based on the maintainer field in the file being signed, or uses an explicitly specified key. It updates the file with GPG signatures that can be verified during package upload and installation. debsign is typically used after building a Debian package with dpkg-buildpackage or debuild, as the final step before uploading to a repository.

How do I run a basic debsign example?

Run `debsign [package.changes]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -k _KEYID_ do in debsign?

GPG key ID to use for signing.