1. 把需要打包的目录/文件打在一个包中。(用绝对目录)
tar cvf /etc/apache2/apache2.conf /var/www/phpmyadmin/* apache2.tar
2.在自己目录下建一个目录,名称随便。
cd ~/
mkdir ubuntu
3.解压缩到目录中,创建control文件
touch ubuntu/DEBIAN/control
4.编辑他,模板如下 把Maintainer 中的 《换作 <
Package: ufont
Version: 1.0.2
Section: utils
Priority: optional
Architecture: i386
Depends:
Installed-Size: 132
Maintainer: Zengpu zhang 《zengpu.zhang@sw-linux.com》
Description: ubuntu chinese fonts
This fonts give you good testing.
5.创建deb包,
dpkg -b ubuntu/ apache_2.0.45_all.deb
6.齐活儿.