How To Install libwebp on CentOS 8

libwebp is Library and tools for the WebP graphics format Library and tools for the WebP graphics format

Introduction

In this tutorial we learn how to install libwebp on CentOS 8.

What is libwebp

WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently. libwebp 1.0.0 3.el8_4 x86_64 272 k libwebp-1.0.0-3.el8_4.src.rpm appstream Library and tools for the WebP graphics format http BSD WebP is an image format that does lossy compression of digital photographic images. WebP consists of a codec based on VP8, and a container based on RIFF. Webmasters, web developers and browser developers can use WebP to compress, archive and distribute digital images more efficiently.

We can use yum or dnf to install libwebp on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install libwebp.

Install libwebp on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install libwebp using dnf by running the following command:

sudo dnf -y install libwebp

Install libwebp on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install libwebp using yum by running the following command:

sudo yum -y install libwebp

How To Uninstall libwebp on CentOS 8

To uninstall only the libwebp package we can use the following command:

sudo dnf remove libwebp

libwebp Package Contents on CentOS 8

/usr/lib/.build-id
/usr/lib/.build-id/11
/usr/lib/.build-id/11/ff9ad9b4f0ee5c182bed0da661199c1160e964
/usr/lib/.build-id/76
/usr/lib/.build-id/76/853e0fec617d3acb780cfa24308589e85327f1
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/a9caa4a5e553c593624bb6968a10f50cba5a04
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/2b8f18f2e9ce693a2a7cce9469d352c0f34f47
/usr/lib64/libwebp.so.7
/usr/lib64/libwebp.so.7.0.2
/usr/lib64/libwebpdecoder.so.3
/usr/lib64/libwebpdecoder.so.3.0.2
/usr/lib64/libwebpdemux.so.2
/usr/lib64/libwebpdemux.so.2.0.4
/usr/lib64/libwebpmux.so.3
/usr/lib64/libwebpmux.so.3.0.2
/usr/share/doc/libwebp
/usr/share/doc/libwebp/AUTHORS
/usr/share/doc/libwebp/NEWS
/usr/share/doc/libwebp/PATENTS
/usr/share/doc/libwebp/README
/usr/share/licenses/libwebp
/usr/share/licenses/libwebp/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/21
/usr/lib/.build-id/21/1ccea72de959cfbb6b12df4faa205b995569ee
/usr/lib/.build-id/38
/usr/lib/.build-id/38/b615ae227af1de08584f6b36da1dff8443a064
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/3a3a88efa83d06900261d9cec974428947a54c
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/99a6615c331ebf43a875d3ca9117ca0f185a13
/usr/lib/libwebp.so.7
/usr/lib/libwebp.so.7.0.2
/usr/lib/libwebpdecoder.so.3
/usr/lib/libwebpdecoder.so.3.0.2
/usr/lib/libwebpdemux.so.2
/usr/lib/libwebpdemux.so.2.0.4
/usr/lib/libwebpmux.so.3
/usr/lib/libwebpmux.so.3.0.2
/usr/share/doc/libwebp
/usr/share/doc/libwebp/AUTHORS
/usr/share/doc/libwebp/NEWS
/usr/share/doc/libwebp/PATENTS
/usr/share/doc/libwebp/README
/usr/share/licenses/libwebp
/usr/share/licenses/libwebp/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/24
/usr/lib/.build-id/24/9bbd22360706ac216a1b6732b62bae39c09c8f
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/4047c1c63249dbcbbe7b494ce06239b58317f2
/usr/lib/.build-id/60
/usr/lib/.build-id/60/9d9aa3176cd07a74829476301bb9869233f745
/usr/lib/.build-id/70
/usr/lib/.build-id/70/f029dc0db4bd19abc0b3f56f1ce61396417756
/usr/lib/libwebp.so.7
/usr/lib/libwebp.so.7.0.2
/usr/lib/libwebpdecoder.so.3
/usr/lib/libwebpdecoder.so.3.0.2
/usr/lib/libwebpdemux.so.2
/usr/lib/libwebpdemux.so.2.0.4
/usr/lib/libwebpmux.so.3
/usr/lib/libwebpmux.so.3.0.2
/usr/share/doc/libwebp
/usr/share/doc/libwebp/AUTHORS
/usr/share/doc/libwebp/NEWS
/usr/share/doc/libwebp/PATENTS
/usr/share/doc/libwebp/README
/usr/share/licenses/libwebp
/usr/share/licenses/libwebp/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/bcc2b76307bbf981567796b6c67a59539d2ddf
/usr/lib/.build-id/78
/usr/lib/.build-id/78/55bb93362d54dd91662586372da0ce3559d59f
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/2225d97b5843947547e02488040afd66029779
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/a19f4d1a227f1553406eb2b9bc1e5b6f47ccee
/usr/lib64/libwebp.so.7
/usr/lib64/libwebp.so.7.0.2
/usr/lib64/libwebpdecoder.so.3
/usr/lib64/libwebpdecoder.so.3.0.2
/usr/lib64/libwebpdemux.so.2
/usr/lib64/libwebpdemux.so.2.0.4
/usr/lib64/libwebpmux.so.3
/usr/lib64/libwebpmux.so.3.0.2
/usr/share/doc/libwebp
/usr/share/doc/libwebp/AUTHORS
/usr/share/doc/libwebp/NEWS
/usr/share/doc/libwebp/PATENTS
/usr/share/doc/libwebp/README
/usr/share/licenses/libwebp
/usr/share/licenses/libwebp/COPYING

References

Summary

In this tutorial we learn how to install libwebp on CentOS 8 using yum and dnf.