zopfli: command not found. How to install zopfli on CentOS and RHEL server

bash: zopfli: command not found

I got the above error on my CentOS 7 server. Do the below steps to download and install zopfli on your CentOS / Redhat server.


How to install zopfli on CentOS 7 / RHEL server

1. Log into your server as root
2. Install EPEL repo
3. Run the command ‘yum install -y zopfli’

Zopfli is a data compression software that can convert data to gzip, zlib and deflate formats. Zopfli was released in 2013 by Google.

First you must log into your Linux server via SSH as ‘root’ user to install zopfli package.

You should install EPEL repository before installing zopfli package.

Command to Install EPEL repo on CentOS 6 and CentOS 7 servers :

#yum install -y epel-release

Install zopfli data compression package after installing EPEL repository. Make sure EPEL repository is enabled.

Command :

yum install -y zopfli

-y = means answer yes to all questions while installing.


Steps to download and install zopfli rpm

1. Log into your CentOS / RHEL server as ‘root’ user

2. Download the RPM package of zopfli from rpmfind.net website using wget command

Zopfli rpm for CentOS 7 / RHEL 7 servers :

wget http://rpmfind.net/linux/epel/7/x86_64/Packages/z/zopfli-1.0.1-1.el7.x86_64.rpm

3. Install downloaded package using rpm command

rpm -ivh zopfli-1.0.1-1.el7.x86_64.rpm


How to remove zopfli

1. Log into server via SSH as ‘root’ user

2. Run the command ‘yum remove -y zipfli’ to uninstall the package