The unzip utility lists and extracts files from ZIP archives. This guide installs it on supported RPM-based Linux systems such as Fedora, AlmaLinux, Rocky Linux and CentOS Stream.

Install unzip

Use an account with sudo access on a supported release.

  1. Open a terminal or connect to the server through SSH.

  2. Install the package:

    sudo dnf install unzip
  3. Review the proposed transaction and confirm it.

  4. Check that the command is available:

    command -v unzip
    unzip -v

CentOS Linux 7 and 8 are retired. If you still use one of those releases, plan a move to a supported operating system rather than treating package installation as a support fix.

Check an archive

To list an archive’s contents without extracting them:

unzip -l archive.zip

Replace archive.zip with the actual file name. Review its contents and choose an appropriate destination before extraction, especially if existing files may have the same names.