Saturday, September 30, 2023
 Popular · Latest · Hot · Upcoming
rated 0 times [  6] [ 0]  / answers: 1 / hits: 1326  / 5 Months ago, wed, may 3, 2023, 6:44:26

I am experimenting with creating a .deb package and am unsure about the file structure of a package. Is the directory that contains control, changelog, rules, etc supposed to be named DEBIAN or debian?

I am using dpkg-deb to package it, and it seems to require DEBIAN, and I am trying to use Lintian to check it, and it isn't recognizing the changelog or copyright files. Lintian throws the errors debian-changelog-file-missing and no-copyright-file but later warns unknown-control-file changelog and unknown-control-file copyright. Looking at this page, it suggests using debian, and I rename the directory to that but it causes dpkg-deb to fail. Reading through the Debian Policy Manual, it usually uses debian in examples, but occasionally uses DEBIAN, which makes me wonder if in certain circumstances both may be needed. What is the right way to do this?

More From » packaging


When creating the package, you have a debian directory, which contains the data needed for making the package (the control file, the rules, the changelog, etc.). dpkg-deb is not the usual way to make a package - it just offers a quick way to assemble one. You usually usedpkg-buildpackage instead.

[#1874] Friday, May 5, 2023, 5 Months  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.

Total Points: 121
Total Questions: 108
Total Answers: 107

Location: United States Minor Outlying Island
Member since Sat, May 28, 2022
1 Year ago