How To Install fftw2 on CentOS 7

In this tutorial we learn how to install fftw2 on CentOS 7. fftw2 is Fast Fourier Transform library (version 2)

Introduction

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

What is fftw2

FFTW is a C subroutine library for computing the Discrete Fourier Transform (DFT) in one or more dimensions, of both real and complex data, and of arbitrary input size. We believe that FFTW, which is free software, should become the FFT library of choice for most applications. Our benchmarks, performed on on a variety of platforms, show that FFTW’s performance is typically superior to that of other publicly available FFT software.

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

Install fftw2 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install fftw2

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

sudo dnf -y install fftw2

How To Uninstall fftw2 on CentOS 7

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

sudo dnf remove fftw2

References

Summary

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