How To Install avr-gcc-c++ on Fedora 36

In this tutorial we learn how to install avr-gcc-c++ in Fedora 36. avr-gcc-c++ is Cross Compiling GNU GCC targeted at avr

Introduction

In this tutorial we learn how to install avr-gcc-c++ on Fedora 36.

What is avr-gcc-c++

This package contains the Cross Compiling version of g++, which can be used to compile c++ code for the avr platform, instead of for the native x86_64 platform.

We can use yum or dnf to install avr-gcc-c++ on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install avr-gcc-c++.

Install avr-gcc-c++ on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install avr-gcc-c++ using dnf by running the following command:

sudo dnf -y install avr-gcc-c++

Install avr-gcc-c++ on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install avr-gcc-c++

How To Uninstall avr-gcc-c++ on Fedora 36

To uninstall only the avr-gcc-c++ package we can use the following command:

sudo dnf remove avr-gcc-c++

avr-gcc-c++ Package Contents on Fedora 36

/usr/bin/avr-c++
/usr/bin/avr-g++
/usr/lib/.build-id
/usr/lib/.build-id/1c/0b2b34abd75d5ee7919ca4eaace91c541d27c9
/usr/lib/.build-id/bb/297b9939145d542037f5d7c64ccb4001183003
/usr/lib/.build-id/bb/297b9939145d542037f5d7c64ccb4001183003.1
/usr/libexec/gcc/avr/11.2.0/cc1plus
/usr/share/man/man1/avr-g++.1.gz

References

Summary

In this tutorial we learn how to install avr-gcc-c++ on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).