A package is a directory formed of several files, from these files, only
build
, checksums
, and version
files are mandatory.
This section talks about files that are interpreted specially by the package manager. Any other file can be added to the package directory at the discretion of the package maintainer. Everything in the package directory will also be added to the package database that is located on ‘/var/db/cpt/installed’. These can be patches, configuration files, etc.
Below is a table that provides a small summary for each file, see the relevant section to learn detailed information on each of them.
File | Language | Executable | Mandatory |
---|---|---|---|
build | any | yes | yes |
checksums | generated by ‘cpt-checksum’ | no | no |
meta | key-value pairs as in RFC8221 | no | no2 |
depends | custom format | no | no |
sources | custom format | no | no |
version | custom format | no | yes |
message | plaintext | no | no |
post-install | any | yes | no |
test | any | yes | no |
https://datatracker.ietf.org/doc/html/rfc822#section-3.2
Not mandatory for the packaging system, but mandatory for inclusion in the repositories