How To Install libtag1-dev on Debian 12

Learn how to install libtag1-dev on Debian 12 with this tutorial. libtag1-dev is audio meta-data library - development files

Introduction

In this tutorial we learn how to install libtag1-dev on Debian 12.

What is libtag1-dev

libtag1-dev is:

TagLib is a library for reading and editing audio meta data, commonly know as tags.

  • A clean, high level, C++ API to handling audio meta data.
  • Format specific APIs for advanced API users.
  • ID3v1, ID3v2, APE, FLAC, Xiph, iTunes-style MP4 and WMA tag formats.
  • MP3, MPC, FLAC, MP4, ASF, AIFF, WAV, TrueAudio, WavPack, Ogg FLAC, Ogg Vorbis, Speex and Opus file formats.
  • Basic audio file properties such as length, sample rate, etc.
  • Long term binary and source compatibility.
  • Extensible design, notably the ability to add other formats or extend
  • current formats as a library user.
  • Full support for unicode and internationalized tags.
  • Dual MPL and LGPL licenses.
  • No external toolkit dependencies.

This is the development package which contains headers for the TagLib Audio Meta-Data Library.

There are three methods to install libtag1-dev on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libtag1-dev Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libtag1-dev using apt-get by running the following command:

sudo apt-get -y install libtag1-dev

Install libtag1-dev Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libtag1-dev using apt by running the following command:

sudo apt -y install libtag1-dev

Install libtag1-dev Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libtag1-dev using aptitude by running the following command:

sudo aptitude -y install libtag1-dev

How To Uninstall libtag1-dev on Debian 12

To uninstall only the libtag1-dev package we can use the following command:

sudo apt-get remove libtag1-dev

Uninstall libtag1-dev And Its Dependencies

To uninstall libtag1-dev and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libtag1-dev

Remove libtag1-dev Configurations and Data

To remove libtag1-dev configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libtag1-dev

Remove libtag1-dev configuration, data, and all of its dependencies

We can use the following command to remove libtag1-dev configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libtag1-dev

Dependencies

libtag1-dev have the following dependencies:

References

Summary

In this tutorial we learn how to install libtag1-dev package on Debian 12 using different package management tools: apt, apt-get and aptitude.