dpkg-scanpackages is the tool that can generate the file with the tool and Packages dpkg-created files scansources Sources.

They can send their departures stout, so to generate compressed files, you can use a chain of command like this:

  deathbian: ~ # dpkg-scanpackages arguments | gzip-9c> Packages.gz 


The two tools work the same way, both take two arguments (actually more, but we do not talk about that you can read the pages of the manual if you want to know more), the first argument is the directory in which packages are, and the second is the predominant file.

In general we do not need to file repositories predominant simple, but it is an argument as required, simply turn to / dev / null. Dpkg-scanpackages scans packages. Deb, but dpkg-scansources scanned files. Dsc by So it is necessary to put the files. orig.gz. diff.gz and. dsc together.

Files. Changes are not necessary. So, if you have a trivial repository such as shown above, you can create two index files as follows:

  deathbian: ~ # cd my-repository 
  deathbian: ~ # dpkg-scanpackages binary / dev / null | gzip-9c> binary / Packages.gz 
  deathbian: ~ # dpkg-scansources source / dev / null | gzip-9c> source / Sources.gz 

However, if you have a repository as complex as shown in the first instance, you have to write some scripts to automate this process. You can also use the argument pathprefix of the two tools to simplify the syntax a bit.

Popularity: 1% [?]