Download location (HTTP): http://www.mirror.ac.uk/sites/ftp.info-zip.org/pub/infozip/src/unzip550.tar.gz Download location (FTP): ftp://ftp.info-zip.org/pub/infozip/src/unzip550.tar.gz Version used: 5.50 Package size: 1.1 MB Estimated Disk space required: 5.8 MB Estimated build time: 0.42 SBU |
The unzip package contains ZIP extraction utilities. These are useful for extracting files from ZIP archives. ZIP archives are created with PKZIP or Info-ZIP utilities primarily in a ms-dos environment.
Download the two patches from http://downloads.linuxfromscratch.org/blfs-patches. The patches begin with unzip-5.50.
Install unzip by running the following commands:
patch -Np1 -i ../unzip-5.50-fix-Makefile.patch && patch -Np1 -i ../unzip-5.50-fix-libz.patch && cp unix/Makefile . && make prefix=/usr linux && make prefix=/usr linux_shlibz && make prefix=/usr install && cp -a libunzip.so* /usr/lib |
make prefix=/usr linux : This command overrides the prefix variable that is set to /usr/local in the Makefile and builds the executables for a linux system. The alternatives to 'linux' can be seen with a 'make list' command.
make prefix=/usr linux_shlibz : Build shared libunzip and link unzip against it and zlib.
The unzip package contains unzip, funzip, unzipfsx, zipgrep and zipinfo.
unzip lists, tests or extracts files from a ZIP archive.
funzip allows the output of unzip commands to be redirected.
unzipfsx is the self-extracting stub that can be prepended to a ZIP archive. Files in this format allow the recipient to decompress the archive without installing unzip.
zipgrep is a grep for ZIP archives.
zipinfo produces technical information about the files in a ZIP archive, including file access permissions, encryption status, type of compression, etc.