I want to find out the standard for the deb file names. For example I have file with the name foo_1.0.0-1_all.deb
. As I have found out in Debian FAQ there is such convention:
<foo>_<VersionNumber>-<DebianRevisionNumber>_<DebianArchitecture>.deb
But this is not a standard. It does not answer to a a lot of questions. For example: how long can be ? What are the permitted characters in ? What values can be in ?
Is there any standard that describes deb file name in detail?
Best Answer
Well, as you said, the name
foo_VVV-RRR_AAA.deb
for a deb file is just a convention for naming.deb
files, whereVVV
,RRR
andAAA
are the version, revision and architecture of the packagefoo
.Also, this convention is suggested (dictated) when building packages with debuild or git-buildpackage.
If you agree with this convention is ok, if not, you can rename your
.deb
files as you wish, but only by following these rules (in this case maybe you must to rundpkg --info <deb_file>
to find a simple information that normaly you can get using the above convention for a deb file name).Now, as you can read at Filename - Wikipedia:
So, if there is no standard for file names in general, I am almost sure that there is not a special standard for
.deb
file names. Or, if you are still confused, take the convention as a standard, and follow these rules.