MatterLinux package management library
Go to file
2024-08-10 00:06:42 +03:00
examples update: add path section to MPTP packet 2024-08-09 22:13:43 +03:00
include update: add path section to MPTP packet 2024-08-09 22:13:43 +03:00
locale/tr/LC_MESSAGES fix: init data buffer before using 2024-08-10 00:06:42 +03:00
src fix: init data buffer before using 2024-08-10 00:06:42 +03:00
.clang-format first commit 2024-06-20 03:34:32 +03:00
.gitignore first commit 2024-06-20 03:34:32 +03:00
Dockerfile new: add dockerfile 2024-07-20 01:53:30 +03:00
LICENSE.txt update: recvfile and sendfile callbacks and more ctx function implementations 2024-07-05 16:27:11 +03:00
Makefile update: LM_VERSION 2024-08-07 04:54:42 +03:00
README.md update: example programs 2024-08-04 16:00:18 +03:00

libmp | MatterLinux package management library

The core library for matt, it has components for transferring, installing, updating and removing packages.

Installation

If you are using MatterLinux, this package is most likely already installed, as it's a core component of the system. If you are not, then you can build it from the source and install it.

To this you will need the following tools and libraries:

  • gcc
  • make
  • openssl
  • libarchive
  • libinih
  • gettext
  • sqlite3
  • gpgme

After installing these dependencies, you should download the latest release. If you are building this library for development purposes, then you may also build from the latest commit. However latest commit may not always be compilable.

After obtaining the source code, you can compile the library using the make tool:

make

To install the library you can use the make tool again:

make install

Tutorial and examples

MatterLinux wiki has a tutorial for working with this library. There are also some simple examples under the examples/ directory, you can build these examples using make:

make examples

To run the examples, specify the library path:

LD_LIBRARY_PATH=./dist ./dist/server