我应该学习什么来创建 deb 包?
答案1
不。如果你不进一步解释,你唯一能做的就是需要是 DEBIAN 文件夹中具有正确权限的控制文件。以下是所有内容,您可以从中挑选所需的内容:https://www.debian.org/doc/debian-policy/
$ ls -R mypkg
mypkg:
DEBIAN
mypkg/DEBIAN:
control
$ cat mypkg/DEBIAN/control
Package: mypackage
Version: 1.0
Architecture: all
Maintainer: Me
Description: This is a test package which provides nothing.
$ dpkg -b mypkg/ mypackage_1.0_all.deb
dpkg-deb: building package `mypackage' in `mypackage_1.0_all.deb'.
$ sudo dpkg -i mypackage_1.0_all.deb
Selecting previously unselected package mypackage.
(Reading database ... 364918 files and directories currently installed.)
Preparing to unpack mypackage_1.0_all.deb ...
Unpacking mypackage (1.0) ...
Setting up mypackage (1.0) ...