如何一次打包多个文件到deb?

时间:2016-08-13 09:45:30

标签: debian deb

我有多个文件要打包到deb,我通常会对我要打包的每个文件使用dpkg-deb -b (folder-name)

1 个答案:

答案 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

What is a Debian control file?

What is a Debian conffile?