libzip-1.11.4

#### Supplemental Linux® From Scratch - Version 13.0

### Chapter 2. General Libraries

- Prev

  libutempter-1.2.3

- Next

  libzmq-4.3.5

- Up
- Home

# libzip-1.11.4

## Introduction to libzip

The libzip package contains a library and utilities for handling zip archives.

- Download: https://libzip.org/download/libzip-1.11.4.tar.xz

### libzip Dependencies

#### Required

CMake

#### Optional

GnuTLS and Mbed-TLS-3.6.5

## Installation of libzip

Install libzip by running the following commands:

    mkdir build &&
    cd    build &&

    cmake -D CMAKE_INSTALL_PREFIX=/usr   \
          -D CMAKE_BUILD_TYPE=Release    \
          -D CMAKE_SKIP_INSTALL_RPATH=ON \
          -G Ninja .. &&

    ninja

Now, as the `root` user:

    ninja install

## Command Explanations

`-D CMAKE_SKIP_INSTALL_RPATH=ON`: This switch makes cmake remove hardcoded library search paths (rpath) when installing a binary executable file or a shared library. This package does not need rpath once it's installed into the standard location, and rpath may sometimes cause unwanted effects or even security issues.

## Contents

Installed Programs: zipcmp, zipmerge, and ziptool
Installed Libraries: libzip
Installed Directories: /usr/lib/cmake/libzip

### Short Descriptions

zipcmp | compares contents of zip archives
zipmerge | merges zip archives
ziptool | modifies zip archives
`libzip` | contains functions that can modify and compare zip archives

- Prev

  libutempter-1.2.3

- Next

  libzmq-4.3.5

- Up
- Home