LinuxCommandLibrary

debsign

GPG signing tool for Debian packages

TLDR

Sign a .changes file

$ debsign [package.changes]
copy
Sign with specific key
$ debsign -k [KEYID] [package.changes]
copy
Sign .dsc file only
$ debsign [package.dsc]
copy
Sign using specified maintainer identity
$ debsign -m "[Name <email@example.com>]" [package.changes]
copy
Re-sign with different key
$ debsign -e "[newemail@example.com]" [package.changes]
copy
Sign without verifying checksums
$ debsign --no-conf [package.changes]
copy

SYNOPSIS

debsign [options] changes-or-dsc-file

DESCRIPTION

debsign is used to sign Debian .changes and .dsc (Debian Source Control) files with a GPG key. 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.

PARAMETERS

FILE

.changes or .dsc file to sign.
-k KEYID
GPG key ID to use for signing.
-m MAINTAINER
Specify maintainer for signing.
-e EMAIL
Email address to match key.
-p COMMAND
GPG command to use (default: gpg).
-S
Sign source-only upload.
--no-conf
Skip configuration file.
--help
Display help information.

CONFIGURATION

~/.devscripts

Configuration file for default GPG key ID and signing behavior.

CAVEATS

Requires a valid GPG key. The signing key must be trusted by the repository. Changing file contents after signing invalidates the signature. Private key must be available for signing.

HISTORY

debsign is part of the devscripts package, developed for Debian package maintenance. It has been a core tool in the Debian upload process since GPG signatures became required for package uploads.

SEE ALSO

dpkg-sig(1), gpg(1), dput(1), debuild(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community