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.
-
Open a terminal or connect to the server through SSH.
-
Install the package:
sudo dnf install unzip -
Review the proposed transaction and confirm it.
-
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.zipReplace 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.