#### Beyond Linux® From Scratch (System V Edition) - Version 12.3

### Chapter 12. System Utilities

- Prev

  xdotool-3.20211022.1

- Next

  Programming

- Up
- Home

# Zip-3.0

## Introduction to Zip

The Zip package contains Zip utilities. These are useful for compressing files into `ZIP` archives.

This package is known to build and work properly using an LFS 12.3 platform.

### Package Information

- Download (HTTP): https://downloads.sourceforge.net/infozip/zip30.tar.gz

- Download MD5 sum: 7b74551e63f8ee6aab6fbc86676c0d37

- Download size: 1.1 MB

- Estimated disk space required: 6.4 MB

- Estimated build time: 0.1 SBU

## Installation of Zip

Install Zip by running the following commands:

    make -f unix/Makefile generic CC="gcc -std=gnu89"

This package does not come with a test suite.

Now, as the `root` user:

    make prefix=/usr MANDIR=/usr/share/man/man1 -f unix/Makefile install

## Command Explanations

`CC="gcc -std=gnu89"`: This parameter overrides the `CC` variable that is set to cc in the `unix/Makefile` file. On LFS cc is a symlink to gcc, and it uses `-std=gnu17` (ISO 9899:2017 with GNU extensions) as the default but Zip is a “legacy” package where some grammar constructs are invalid in ISO 9899:1999 and newer standards.

`prefix=/usr`: This parameter overrides the `prefix` variable that is set to `/usr/local` in the `unix/Makefile` file.

## Contents

Installed Programs: zip, zipcloak, zipnote, and zipsplit
Installed Libraries: None
Installed Directories: None

### Short Descriptions

zip | compresses files into a `ZIP` archive
zipcloak | is a utility to encrypt and decrypt a `ZIP` archive
zipnote | reads or writes comments stored in a `ZIP` file
zipsplit | is a utility to split `ZIP` files into smaller files

- Prev

  xdotool-3.20211022.1

- Next

  Programming

- Up
- Home