How To Install flac on CentOS 7

In this tutorial we learn how to install flac on CentOS 7. flac is An encoder/decoder for the Free Lossless Audio Codec

Introduction

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

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 7. In this tutorial we discuss both methods but you only need to choose one of method to install flac.

Install flac on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install flac

Install flac on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install flac

How To Uninstall flac on CentOS 7

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

sudo dnf remove flac

References

Summary

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