Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
=Debian Packaging=
+
[[Category:How to]]
 
Notes and other various tutorials on how to package .deb files for Debian based distributions
 
Notes and other various tutorials on how to package .deb files for Debian based distributions
    
==Debian Packaging Tutorial by Gürkan Myczko==
 
==Debian Packaging Tutorial by Gürkan Myczko==
From: https://github.com/alexmyczko/autoexec.bat/blob/master/Documents/debian-packaging.md
+
'''Debian Packaging''' <ref>[https://github.com/alexmyczko/autoexec.bat/blob/master/Documents/debian-packaging.md Debian Packaging]</ref>
 
  −
'''Debian Packaging'''
   
:pretty much the same with Ubuntu
 
:pretty much the same with Ubuntu
 
:2003-2020 Gürkan Myczko <gurkan@phys.ethz.ch>
 
:2003-2020 Gürkan Myczko <gurkan@phys.ethz.ch>
Line 62: Line 60:  
First you need to get the source of the software. Then put it in some directory. There you unpack the software, usually
 
First you need to get the source of the software. Then put it in some directory. There you unpack the software, usually
   −
   $ tar xzvf software-2.1.tar.gz
+
   tar xzvf software-2.1.tar.gz
   $ ln -s software-2.1.tar.gz software_2.1.orig.tar.gz
+
   ln -s software-2.1.tar.gz software_2.1.orig.tar.gz
   $ cd software-2.1/
+
   cd software-2.1/
   $ dh_make
+
   dh_make
    
'''dh_make''' will make a directory called '''debian/''' with a few files in it. Now your task is to fill them. I usually start with '''control''', then edit '''copyright'''. There is also '''changelog''', '''rules''', '''dirs''' and more. In '''rules''' you will find some '''dh''' commands, they are all from debhelper. Each of them has a manpage, please refer to '''man debhelper''' for details, as well as the Debian New Maintainers' Guide. Read more about the Debian Policy Manual. Updating the '''debian/changelog''' is done with '''dch''' or debchange (symlink).
 
'''dh_make''' will make a directory called '''debian/''' with a few files in it. Now your task is to fill them. I usually start with '''control''', then edit '''copyright'''. There is also '''changelog''', '''rules''', '''dirs''' and more. In '''rules''' you will find some '''dh''' commands, they are all from debhelper. Each of them has a manpage, please refer to '''man debhelper''' for details, as well as the Debian New Maintainers' Guide. Read more about the Debian Policy Manual. Updating the '''debian/changelog''' is done with '''dch''' or debchange (symlink).
Line 135: Line 133:     
==Checkinstall==
 
==Checkinstall==
[https://packages.debian.org/checkinstall checkinstall] keeps track of all the files created or modified by your installation script, builds a standard binary package (.deb, .rpm, .tgz) and installs it in your system giving you the ability to uninstall it with your distribution's standard package management utilities.
+
[https://packages.debian.org/checkinstall checkinstall]  
 +
<ref>[http://checkinstall.izto.org/ Checkinstall Home page]</ref> keeps track of all the files created or modified by your installation script, builds a standard binary package (.deb, .rpm, .tgz) and installs it in your system giving you the ability to uninstall it with your distribution's standard package management utilities.
    
You have an archive with software to build.  
 
You have an archive with software to build.  
Line 155: Line 154:     
Refer to the [https://manpages.debian.org/man/8/checkinstall man page] for more information
 
Refer to the [https://manpages.debian.org/man/8/checkinstall man page] for more information
 +
 +
==References==
 +
<references />

Navigation menu