How To Install 7-Zip on Fedora 44

Install 7-Zip on Fedora 44

Modern Linux workflows almost always touch archives. Whether you are backing up configs, moving logs between servers, or unpacking a vendor tarball, you need a reliable tool. On Fedora 44, that tool is usually 7-Zip or its p7zip / 7zip package. This guide walks you through installing 7-Zip on Fedora 44 in a way that fits both desktop and server environments, with clear explanations for each command.

You will see two main paths:

  • Use Fedora’s official 7zip package (preferred for most users).
  • Or install the upstream 7-Zip Linux console build if you want the very latest release.

All steps assume you are running Fedora 44 Workstation or Server and have basic terminal experience. The same commands apply whether you are on a cloud VPS, a local laptop, or a lab system.

Prerequisites

Before you start, confirm these points:

  • Operating system: Fedora 44 (any supported architecture: x86-64, aarch64, etc.).
  • User account with sudo privileges or root access.
  • A working terminal and internet connection so DNF can download packages.
  • A basic text editor (nano, vim, or gedit) if you later want to tweak settings or scripts.

If you are on a headless server, you can follow this whole flow over SSH. If you are on a desktop, you can also run these commands in GNOME Terminal or Konsole.

Step 1: Update Your System

Before installing new software, always update the system. This keeps dependencies in sync and reduces the chance of conflicts later.

sudo dnf update -y
  • What this does: DNF refreshes the package metadata and upgrades all installed packages to the latest versions in the enabled repositories.
  • Why this matters: Fedora 44 ships with rolling updates for many components. Running dnf update first ensures that the 7-Zip on Fedora 44 setup does not hit a dependency mismatch or broken repository state. It also pulls in any security fixes for the package manager itself.

Expected output contains lines like:

Last metadata expiration check: 0:01:12 ago
Dependencies resolved.
...
Updated: package-A-1.2.x86_64

If you see any errors at this stage, fix them first (for example, disable problematic third-party repos) before continuing.

Step 2: Decide Your Installation Path

Fedora 44 offers at least two practical ways to run 7-Zip on Fedora 44:

  1. Official Fedora 7zip package. This is the cleanest, most maintainable option. A dedicated Fedora package named 7zip provides the official 7-Zip console version via the standard repos.
  2. Upstream 7-Zip Linux console build. If you need the very latest release or a specific build, you can download the official 7-Zip Linux source or binaries and compile them yourself.

Most users, including sysadmins who care about long-term support, should prefer Method 1. Method 2 is useful only if you specifically need a newer version than Fedora delivers or you are testing a custom build.

Step 3: Install 7-Zip on Fedora 44 Using DNF

This is the recommended way to install 7-Zip on Fedora 44.

Step 3.1: Check What Fedora Offers

Search the package cache to see how 7-Zip appears in your repos:

dnf search 7zip
  • What this does: Queries the DNF metadata for all packages that match “7zip” in their name or description.
  • Why this matters: Different Fedora spins or Copr repos may use slightly different names. Confirming the exact package name prevents typos and failed installs.

On a standard Fedora 44 system, you should see hits for 7zip (or p7zip if you still use the older port). If you see 7zip listed, use that package. If you see only p7zip, you can still install it, but keep in mind that p7zip is an older port of 7-Zip.

Step 3.2: Enable the Copr Repository (If Needed)

If you want the official 7-Zip console version built for Fedora, you can pull it from the errornointernet/7zip Copr repository. This is the same upstream console build that the 7-Zip project distributes, packaged for Fedora.

Enable the Copr repo with:

sudo dnf copr enable errornointernet/7zip
  • What this does: Adds a third-party Copr repository that contains the 7zip package built from the official 7-Zip Linux codebase.
  • Why this matters: Copr lets Fedora packagers provide newer or alternative builds without disrupting the main distro. Here, it bridges the gap between the older p7zip code and the current 7-Zip release.

If DNF warns that you are enabling an external repository, read the message and confirm. You can always disable the repo later with:

sudo dnf copr disable errornointernet/7zip

Step 3.3: Install the 7-Zip Package

Now install 7-Zip on Fedora 44:

sudo dnf install 7zip -y
  • What this does: Downloads and installs the 7zip package and its dependencies, including shared libraries that the 7-Zip console binary depends on.
  • Why this matters: DNF handles dependency resolution automatically. This keeps the system clean and avoids “missing library” errors later. Installing from the official repo also means you can update 7-Zip with the same dnf update command you use for the rest of the system.

If you ever installed p7zip or p7zip-plugins in the past, you can remove them once 7zip is in place:

sudo dnf remove p7zip p7zip-plugins

This step is optional but helps reduce confusion if two different 7-Zip compatible tools are present on the same machine.

Step 4: Verify Your 7-Zip Installation

After installation, confirm that 7-Zip is available and working.

Step 4.1: Check the 7-Zip Binary

Run:

7z --version

or:

7zz --version
  • What this does: Invokes the 7-Zip console tool and prints the version number and build information.
  • Why this matters: A version string proves that the binary is in your PATH and that the install succeeded. If you get a “command not found” error, something is wrong with the package or your environment.

Typical output looks like:

7-Zip [64] 25.01 (x64)

If you see this, the 7-Zip on Fedora 44 setup is complete.

Step 4.2: Confirm the Package Is Installed via DNF

You can also verify the package from the DNF side:

dnf list installed | grep 7zip
  • What this does: Lists all installed packages and filters for lines containing “7zip”.
  • Why this matters: This cross-checks the filesystem binary with the package manager’s database. It is useful if you later need to troubleshoot or reinstall the package.

With this step, you have now installed and confirmed 7-Zip on Fedora 44 using the standard Fedora package workflow.

Step 5: Install Upstream 7-Zip from Source (Advanced Option)

If you ever need the absolute latest 7-Zip release for testing or compatibility, you can build it from the official Linux source. This is an optional path; most users can stop at Step 4 and use the packaged 7zip.

Step 5.1: Install Build Dependencies

Start by installing tools needed to compile 7-Zip:

sudo dnf groupinstall "Development Tools" -y
sudo dnf install wget gcc make cmake -y
  • What this does: Installs the common development toolchain needed for compiling C/C++ programs on Fedora.
  • Why this matters: The 7-Zip Linux console build is written in C++. Without these tools, the compilation step will fail with missing compilers or headers.

Step 5.2: Download the Official 7-Zip Linux Source

Go to the official 7-Zip site and download the Linux console package. As of the latest release, this is a .tar.xz bundle:

mkdir ~/7zip-build
cd ~/7zip-build
wget https://7-zip.org/a/7z2601_linux_x64.tar.xz
  • What this does: Downloads the 64-bit Linux console build of 7-Zip and places it in a dedicated build directory.
  • Why this matters: Using the official site avoids third-party mirrors that may host outdated or modified versions. The .tar.xz contains the compiled 7zz binary and 7zz.so shared library.

Step 5.3: Extract the Archive

Decompress the archive:

tar Jxf 7z*.tar.xz
  • What this does: Uses tar with the -J flag to decompress .tar.xz and extract the contents.
  • Why this matters: The 7zz binary and related files are ready to use once unpacked. You do not need to run make for this console build; the archive contains prebuilt binaries.

Step 5.4: Move the 7-Zip Binary to a Standard PATH Location

Copy the main binary to a system-wide directory:

sudo cp 7zz /usr/local/bin/
  • What this does: Places the 7-Zip console binary where most users expect it (/usr/local/bin) and makes it available to all users.
  • Why this matters: /usr/local/bin is typically in the default PATH on Fedora. This avoids the need to specify the full path every time you run 7zz.

If you want to keep the 7-Zip library in place, you can also copy it:

sudo cp 7zz.so /usr/local/lib/
sudo ldconfig

ldconfig updates the linker cache so the system can find the shared library.

At this point, you can run:

7zz --version

and see the upstream 7-Zip version printed. This manual install path is useful if you specifically need a newer release than Fedora’s 7zip or p7zip provides.

Step 6: Configure 7-Zip on Fedora 44 for Daily Use

Once 7-Zip is installed, you can configure it for your workflow. Here are practical patterns you can adopt.

Step 6.1: Create a Configuration Directory

Although 7-Zip is mostly command-line driven, you can create a small config directory for your scripts:

mkdir -p ~/.config/7zip
  • Why this matters: This folder is a logical place to store helper scripts or shell aliases that wrap common 7-Zip operations. It keeps your home directory tidy and makes it easy to back up your 7-Zip workflow.

Step 6.2: Add Useful Aliases

Edit your shell configuration file (for bash, this is ~/.bashrc):

nano ~/.bashrc

Add a few aliases at the end:

alias 7lz='7z l'
alias 7ez='7z x'
alias 7cz='7z a -t7z'
  • What this does: Creates short commands for listing, extracting, and creating 7-Zip archives.
  • Why this matters: Aliases reduce typing and make your daily workflow more consistent. You can source the file immediately:
source ~/.bashrc

Now 7lz arch.7z is equivalent to 7z l arch.7z, and 7ez arch.7z unpacks the archive recursively, which is often what you want.

Step 6.3: Set Up a Default Compression Level

For scripts or cron jobs that create archives, you can set a default compression level. For example, create a small wrapper script:

nano ~/bin/7zip-backup

Add:

#!/bin/bash
7z a -t7z -mx=7 "$@"

Make it executable:

chmod +x ~/bin/7zip-backup
  • What this does: The -mx=7 flag sets a high compression level (7 of 9), which reduces archive size at the cost of slightly more CPU time.
  • Why this matters: This wrapper is useful for server backups where disk space matters more than speed. You can adjust the -mx level to 5 or 3 if you want faster compression.

By following these steps, you have effectively configured 7-Zip on Fedora 44 for both interactive and scriptable use.

Troubleshooting Common Errors

Even with a clean install, you may see a few issues. Here are typical error patterns and how to fix them.

Error 1: DNF Cannot Find a 7-Zip Package

You run:

dnf search 7zip

and see no results, or DNF complains that no package provides 7zip.

Why this happens: Your system may not have the errornointernet/7zip Copr repo enabled, or your Fedora 44 mirror is temporarily out of sync.

Solution: Re-enable the Copr repo:

sudo dnf copr enable errornointernet/7zip

Then refresh the cache:

sudo dnf clean expire-cache
sudo dnf update

Try the search again:

dnf search 7zip

If you still see no 7zip package but you see p7zip, you can install that instead:

sudo dnf install p7zip p7zip-plugins -y

This older port will still give you 7-Zip functionality, just from an older codebase.

Error 2: “command not found” for 7z or 7zz

You type:

7z --version

and get:

bash: 7z: command not found

Why this happens: The 7-Zip binary is not in your PATH, or the package did not install the expected symlink.

Solution: First, check if the binary exists:

which 7zz

or:

ls /usr/bin/7z* /usr/bin/7zz* /usr/local/bin/7z* /usr/local/bin/7zz*

If you see a binary but it is not in your PATH, you can create a symlink:

sudo ln -sf /usr/bin/7zz /usr/bin/7z

If you installed from the upstream .tar.xz build, you may need to add /usr/local/bin to your PATH in ~/.bashrc:

export PATH="/usr/local/bin:$PATH"
source ~/.bashrc

Error 3: Wrong Architecture Build

You try to run a downloaded 7zz binary and get:

cannot execute binary file: Exec format error

Why this happens: The download does not match your CPU architecture. For example, you downloaded the x86-64 build on an ARM64 system.

Solution: Check your architecture:

uname -m

If this shows aarch64, you need the ARM64 7-Zip build. The official 7-Zip site distributes Linux builds for multiple architectures, so pick the correct one from the download page.

Error 4: Archive Extraction Fails with “Truncated Archive”

You run:

7z x archive.7z

and get an error indicating a truncated or corrupted archive.

Why this happens: The archive was not fully downloaded, or the network connection dropped during transfer.

Solution: Test the archive first:

7z t archive.7z

If this fails, re-download the archive. If 7z t passes, the issue may be a missing codec or an unsupported format, in which case you can try a different archive tool or a different version of 7-Zip.

Error 5: Permission Denied When Installing to /usr/local/bin

You try:

sudo cp 7zz /usr/local/bin/

and get a permission error on the target directory.

Why this happens: The /usr/local/bin directory may have restrictive permissions, or the filesystem is mounted read-only.

Solution: Ensure the directory exists and is writable:

sudo mkdir -p /usr/local/bin
sudo chmod 755 /usr/local/bin

If you still cannot write, you can install the binary in your home directory instead and add it to your PATH:

mkdir -p ~/bin
cp 7zz ~/bin/
echo 'export PATH="$HOME/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

This keeps your 7-Zip setup local to your user and avoids system-level permission issues.

[su_box title=”VPS Manage Service Offer” style=”bubbles” box_color=”#000000″ radius=”10″]If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal![/su_box]

r00t is a Linux Systems Administrator and open-source advocate with over ten years of hands-on experience in server infrastructure, system hardening, and performance tuning. Having worked across distributions such as Debian, Arch, RHEL, and Ubuntu, he brings real-world depth to every article published on this blog. r00t writes to bridge the gap between complex sysadmin concepts and practical, everyday application — whether you are configuring your first server or optimizing a production environment. Based in New York, US, he is a firm believer that knowledge, like open-source software, is best when shared freely.

Related Posts