## page was renamed from HenriLeFoll/Tricks/Packaging/Minimal/Instructions ## page was renamed from Packaging/Minimal/Instructions <> Here I use dh_make. But for simple packages it is best to use equivs ! = Description = You will have to create and install an empty debian package with the minimal number of instructions. = Details = == step 1 : preparation == * 1 - create a directory for the package : package-minimal * 2 - control that the package is not installed with [[Aptitude]] == step 2 : create the source package == * 3 - create the source package with [[dh_make]] == step 3 : build the deb file == * 4 - build the package with [[dpkg-buildpackage]] == step 4 : install the package == * 5 - install the package with [[dpkg]] == step 5 : test == * 6 - control that the package was correctly installed * 7 - find where are the files that were created after the installation of the package. * 8 - remove the package with [[aptitude]] * 9 - control that the package was removed * 10 - remove the files created in package-minimal = Solution = == step 1 : preparation == * 1 - create a directory for the package : package-minimal-instructions We want to create a directory package-minimal-instructions where all the files will go. We have to create an package-minimal-instructions-1 with a version number where the source file is. {{{#!highlight console numbers=disable $ mkdir -p package-minimal/package-minimal-1.0 $ cd package-minimal/package-minimal-1.0 }}} * 2 - control that the package is not installed with [[Aptitude]] {{{#!highlight console numbers=disable # aptitude show package-minimal E: Unable to locate package package-minimal }}} == step 2 : create the source package == * 3 - create the source package with [[dh_make]] {{{#!highlight console numbers=disable $package-minimal/package-minimal-1.0# dh_make -s -n }}} == step 3 : build the deb file == * 4 - build the package with [[dpkg-buildpackage]] {{{#!highlight console numbers=disable $package-minimal/package-minimal-1.0# dpkg-buildpackage -rfakeroot }}} == step 4 : install the package == 5 - install the package with [[dpkg]] {{{#!highlight console numbers=disable $package-minimal/package-minimal-1.0# cd .. $package-minimal# dpkg -i p*.deb }}} == step 5 : test == 6 - control that the package was correctly installed {{{#!highlight console numbers=disable # aptitude show package-minimal Package: package-minimal New: yes State: installed Automatically installed: no Version: 1.0 }}} * 7 - find where are the files that were created after the installation of the package. {{{#!highlight console numbers=disable # cd / $/# find -name "package-minimal*" ./usr/share/doc/package-minimal ./var/lib/dpkg/info/package-minimal.md5sums ./var/lib/dpkg/info/package-minimal.list }}} 8 - remove the package with [[aptitude]] {{{#!highlight console numbers=disable # aptitude remove package-minimal }}} 9 - control that the package was removed {{{#!highlight console numbers=disable # aptitude show package-minimal E: Unable to locate package package-minimal }}} * 10 - remove the files created in package-minimal {{{#!highlight console numbers=disable $package-minimal# rm p* rm: cannot remove `package-minimal-1.0': Is a directory package-minimal# ls package-minimal-1.0 }}}