dpkg-scanpackages Basic tool to generate a Packages file. Syntax is: dpkg-scanpackages [] This generates an index of the packages in with the overrides in .An optional extra prefix can be added as well.