我有多个文件要打包到deb,我通常会对我要打包的每个文件使用dpkg-deb -b (folder-name)
。
答案 0 :(得分:0)
Let's assume you have the required files : control
, conffiles
and pckg_name
and pckg_name.conf
under /home/user_name/
packg_name/package_name_1/DEBIAN/control
packg_name/package_name_1/DEBIAN/conffiles
packg_name/usr/bin/packg_name
packg_name/etc/packg_name.conf
packg_name_1
= the version 1 of packg_name
The control file will contain some information like:
Package: packg_name
Version: 1
Maintainer: Mox
Depends: e,g : dkms
Priority: optional
Architecture: all
Description: Put the description here
change the ownership of all files to root:
chown -R root:root packg_name/package_name_1
Then, build the package using dpkg-deb
:
dpkg-deb --build packg_name/package_name_1