Creating an empty debian package for Debian/Ubuntu that just installs certain packages you need can be very useful when you install a fresh OS. For instance, if you need Apache2, PHP5, MySQL5, and phpmyadmin on fresh-installed Ubuntu machine, you can install all of them at once by creating an empty package that depends on those packages.
Step 1. You will need root privilege
sudo su
Step 2. Create a folder that will contains content of the package
mkdir myserver
Step 3. Create a DEBIAN folder that stores meta data for the package
Continue reading “How to create deb package – part 1”