How To Install avr-libc on CentOS 7

In this tutorial we learn how to install avr-libc on CentOS 7. avr-libc is C library for use with GCC on Atmel AVR microcontrollers

Introduction

In this tutorial we learn how to install avr-libc on CentOS 7.

What is avr-libc

AVR Libc is a Free Software project whose goal is to provide a high quality C library for use with GCC on Atmel AVR microcontrollers. AVR Libc is licensed under a single unified license. This so-called modified Berkeley license is intented to be compatible with most Free Software licenses like the GPL, yet impose as little restrictions for the use of the library in closed-source commercial applications as possible.

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

Install avr-libc on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install avr-libc using yum by running the following command:

sudo yum -y install avr-libc

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

sudo dnf -y install avr-libc

How To Uninstall avr-libc on CentOS 7

To uninstall only the avr-libc package we can use the following command:

sudo dnf remove avr-libc

References

Summary

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