![]() ![]() deb package reference a simplified approach as creating an official package will require a more detailed workaround. Please note that the steps followed to create the above. The dpkg-deb tool is needed to create a Debian package, we, therefore, need to point it to the above-created directory structure in the following manner: $ dpkg-deb -build mypackage This program executable needs to be copied to this directory: $ cp debpackage mypackage/usr/bin The created mypackage/usr/bin directory is the installation directory for the executable binary program debpackage we created earlier. Let us create the following final directories: $ mkdir -p mypackage/usr/bin The Debian package structure is almost complete. Populate it with the following info: Package: debpackageĭescription: Acknowledge tutorials The necessary package files need to be hosted under a root package directory: $ mkdir mypackageĬreate a control file inside the DEBIAN directory. The executable binary ( debpackage) created from compiling the above C program is all we need to start creating our Debian package.įirstly, we need a Debian package structure. The above screen capture reveals that we have compiled our C code to an executable called debpackage which now prints the string “ LinuxShellTip’s Simple Debian Package!” on demand. Let us now compile our C program and test the program for the anticipated output: $ g -o debpackage The g compiler needed to compile the above program can be found in the build-essentials package. $ nano Ĭout << "LinuxShellTip's Simple Debian Package! \n" So open your terminal editor and create the following file using nano editor. To be certain that this program works, we will have to compile and test it. ![]() We are going to come up with a simple C program that prints a text string on the standard output. ![]() To cover all the basics needed in creating a Debian package, we will create and package a simple trivial application from scratch. This article will walk us through the creation of a simple Debian package and later demonstrate its installation on any Debian-based system. The first archive file contains control information and the second one installable data. Debian packages are also attributed to two tar archives. The software package format for Debian-based Linux distributions and their associated derivatives can easily be identified by the. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |