Translation(s): English - Français


Introduction

Read how to ?create an empty package, if you don't know

We will now see how to make a package containing some files.

Be aware that for free and open source software, you have to package with the data:

  • a copyright file
  • the source of the files

eg. LibreOffice files or TeX files can be the source for a PDF file

files in /usr/share/doc

Every package that is on your debian computer has a directory in /usr/share/doc/

In order to create a package to put files in this directory, here

the equivs-control file must be like :

$ more package-trivial-1.0 
Package: package-trivial
Version: 1.0
Maintainer: a a <a@a.a>
Extra-Files: file.odt, file.pdf, README

The directory must contain those files :

$ ls
file.odt  file.pdf  package-trivial-1.0  README

files in other directories

In order to create a package to put files in this directory, here

the equivs-control file must be like :

$ more package-trivial-1.1 
Package: package-trivial
Version: 1.1
Maintainer: a a <a@a.a>
Extra-Files: file.odt, README
Files: file.sh /root/file.sh
 file.pdf /var/tmp/file.pdf

The directory must contain those files :

$ ls
file.odt  file.pdf  file.sh  package-trivial-1.1  README

What's next

You can create a local repository

First read the excellent Introduction to Debian Packaging.

Return to packaging if you seek more information.