How To Install flac on CentOS 8

flac is An encoder/decoder for the Free Lossless Audio Codec

Introduction

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

What is flac

FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC is similar to Ogg Vorbis, but lossless. The FLAC project consists of the stream format, reference encoders and decoders in library form, flac, a command-line program to encode and decode FLAC files, metaflac, a command-line metadata editor for FLAC files and input plugins for various music players. This package contains the command-line tools and documentation.

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

Install flac 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 flac using dnf by running the following command:

sudo dnf -y install flac

Install flac 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 flac using yum by running the following command:

sudo yum -y install flac

How To Uninstall flac on CentOS 8

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

sudo dnf remove flac

flac Package Contents on CentOS 8

/usr/bin/flac
/usr/bin/metaflac
/usr/lib/.build-id
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/245977d8e89df82477e9ad5fda72d0dcbbd54b
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/8f730b15fa0fe72e8d239d28fc8b63106151f5
/usr/share/doc/flac
/usr/share/doc/flac/html
/usr/share/doc/flac/html/changelog.html
/usr/share/doc/flac/html/developers.html
/usr/share/doc/flac/html/documentation.html
/usr/share/doc/flac/html/documentation_bugs.html
/usr/share/doc/flac/html/documentation_example_code.html
/usr/share/doc/flac/html/documentation_format_overview.html
/usr/share/doc/flac/html/documentation_tools.html
/usr/share/doc/flac/html/documentation_tools_flac.html
/usr/share/doc/flac/html/documentation_tools_metaflac.html
/usr/share/doc/flac/html/faq.html
/usr/share/doc/flac/html/favicon.ico
/usr/share/doc/flac/html/features.html
/usr/share/doc/flac/html/flac.css
/usr/share/doc/flac/html/format.html
/usr/share/doc/flac/html/id.html
/usr/share/doc/flac/html/images
/usr/share/doc/flac/html/images/logo.svg
/usr/share/doc/flac/html/images/logo130.gif
/usr/share/doc/flac/html/index.html
/usr/share/doc/flac/html/license.html
/usr/share/doc/flac/html/ogg_mapping.html
/usr/share/man/man1/flac.1.gz
/usr/share/man/man1/metaflac.1.gz

References

Summary

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