Zip-3.0

Introduction to Zip

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

[Note]

Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

Package Information

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