Skip to content

Mercury Specifications

Rahul Chandra edited this page Dec 7, 2024 · 3 revisions

Mercury Specifications

File Format

Mercury packages should be XZ or ZST compressed files ending in .tar.xz

Depends

There should be a file named depends in the root directory of the package

Structure

In the root directory should be a folder with the same name of the package and the tar. Inside that should be any files containing metadata. This folder is also representative of the root filesystem, here is an example tree

- template
 -- depends
 -- usr
  ---lib
    ---- libpackage.so.1
 -- etc
  --- template.conf

Postinst and other metadata

postinst - Run after installation of a package and it's dependencies, as well as after updating a package. DO NOT use this for 'super-base' packages like glibc as those packages are first installed in a limited mercury environment.

Clone this wiki locally