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

### Chapter 12. System Utilities

- Prev

  System Utilities

- Next

  AccountsService-23.13.9

- Up
- Home

# 7zip-24.09

## Introduction to 7zip

7zip is a file archiver that archives with high compression ratios. It handles 7z, ZIP, GZIP, Brotli, BZIP2, XZ, TAR, APM, ARJ, CAB, CHM, CPIO, CramFS, DEB, DMG, FAT, HFS, ISO, Lizard, LZ5, LZFSE, LZH, LZMA, LZMA2, MBR, MSI, MSLZ, NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR, Z, and Zstd formats.

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

### Package Information

- Download (HTTP): https://github.com/ip7z/7zip/archive/24.09/7zip-24.09.tar.gz

- Download MD5 sum: 41d0d31a3b0e39a1cbd848c10574fb0b

- Download size: 2.1 MB

- Estimated disk space required: 39 MB

- Estimated build time: 2.3 SBU (with tests)

### 7zip Dependencies

#### Optional

UASM

## Installation of 7zip

Install 7zip by running the following commands:

    for i in Bundles/{Alone,Alone7z,Format7zF,SFXCon} UI/Console; do
        make -C CPP/7zip/$i -f ../../cmpl_gcc.mak
    done

This package does not have a test suite.

Now, as the `root` user:

    install -vDm755 CPP/7zip/Bundles/Alone{/b/g/7za,7z/b/g/7zr} \
                    CPP/7zip/Bundles/Format7zF/b/g/7z.so        \
                    CPP/7zip/UI/Console/b/g/7z                  \
                    -t /usr/lib/7zip/                              &&

    install -vm755 CPP/7zip/Bundles/SFXCon/b/g/7zCon \
                   /usr/lib/7zip/7zCon.sfx           &&

    (for i in 7z 7za 7zr; do
        cat > /usr/bin/$i << EOF || exit
    #!/bin/sh
    exec /usr/lib/7zip/$i "\$@"
    EOF
        chmod 755 /usr/bin/$i || exit
    done) &&

    cp -rv DOC -T /usr/share/doc/7zip-24.09

## Contents

Installed Programs: 7z, 7za, and 7zr
Installed Libraries: None
Installed Directory: /usr/lib/7zip and /usr/share/doc/7zip-24.09

### Short Descriptions

7z | is a file archiver utility
7za | is a stand-alone executable handling less archive formats than 7z
7zr | is a minimal version of 7za that handles only 7z archives

- Prev

  System Utilities

- Next

  AccountsService-23.13.9

- Up
- Home