How To Install openocd on CentOS 7

In this tutorial we learn how to install openocd on CentOS 7. openocd is Debugging, in-system programming and boundary-scan testing for

Introduction

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

What is openocd

The Open On-Chip Debugger (OpenOCD) provides debugging, in-system programming and boundary-scan testing for embedded devices. Various different boards, targets, and interfaces are supported to ease development time. Install OpenOCD if you are looking for an open source solution for hardware debugging.

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

Install openocd on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install openocd

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

sudo dnf -y install openocd

How To Uninstall openocd on CentOS 7

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

sudo dnf remove openocd

References

Summary

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