package deb
import "tailscale.com/packages/deb"
Package deb extracts metadata from Debian packages.
Index ¶
Types ¶
type Info ¶
type Info struct { // Version is the version of the package, as reported by dpkg. Version string // Arch is the Debian CPU architecture the package is for. Arch string // Control is the entire contents of the package's control file, // with leading and trailing whitespace removed. Control []byte // MD5 is the MD5 hash of the package file. MD5 []byte // SHA1 is the SHA1 hash of the package file. SHA1 []byte // SHA256 is the SHA256 hash of the package file. SHA256 []byte }
Info is the Debian package metadata needed to integrate the package into a repository.
func Read ¶
Read returns Debian package metadata from the .deb file in r.
func ReadFile ¶
ReadFile returns Debian package metadata from the .deb file at path.
Source Files ¶
deb.go
- Version
- v1.84.0 (latest)
- Published
- May 21, 2025
- Platform
- linux/amd64
- Imports
- 14 packages
- Last checked
- 1 day ago –
Tools for package owners.