Debian软件包构建器Skill deb-package-builder

Debian软件包构建器是一款专为Linux系统设计的自动化打包工具,能够快速生成符合Debian/Ubuntu规范的.deb安装包。该工具核心功能包括自动生成DEBIAN控制文件、智能配置软件依赖关系、创建安装/卸载维护脚本、设置桌面环境集成以及使用GPG进行包签名验证。适用于软件开发者、系统管理员和DevOps工程师,实现Linux软件分发的标准化和自动化,提升软件部署效率。关键词:Debian打包、Linux软件分发、dpkg构建、依赖管理、维护脚本、GPG签名、Ubuntu软件包、自动化部署。

DevOps 0 次安装 0 次浏览 更新于 2/23/2026

名称: deb-package-builder 描述: 为Ubuntu、Debian及其衍生系统构建具有正确控制文件、依赖项和维护脚本的Debian软件包(.deb) 允许使用的工具: Read, Write, Edit, Bash, Glob, Grep 标签: [linux, debian, 打包, deb, 发行版]

deb-package-builder

为Ubuntu、Debian及其衍生系统构建具有正确控制文件、依赖项和维护脚本的Debian软件包(.deb)。

能力

  • 生成DEBIAN/control控制文件
  • 配置软件包依赖项
  • 创建维护脚本(postinst、prerm等)
  • 设置桌面集成
  • 配置文件权限
  • 使用dpkg-deb构建软件包
  • 使用GPG签名软件包

输入模式

{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "packageName": { "type": "string" },
    "version": { "type": "string" },
    "dependencies": { "type": "array" },
    "architecture": { "enum": ["amd64", "arm64", "all"] }
  },
  "required": ["projectPath", "packageName", "version"]
}

DEBIAN/control 示例

Package: myapp
Version: 1.0.0
Section: utils
Priority: optional
Architecture: amd64
Depends: libc6 (>= 2.17), libgtk-3-0
Maintainer: Your Name <email@example.com>
Description: My Application
 A longer description of my application
 that can span multiple lines.

构建命令

dpkg-deb --build --root-owner-group myapp_1.0.0_amd64

相关技能

  • rpm-spec-generator
  • linux-gpg-signing