How To Install argtable on CentOS 7

In this tutorial we learn how to install argtable on CentOS 7. argtable is Cross platform C library for parsing GNU style command line

Introduction

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

What is argtable

Argtable is an ANSI C library for parsing GNU style command line arguments. It enables a program’s command line syntax to be defined in the source code as an array of argtable structs. The command line is then parsed according to that specification and the resulting values are returned in those same structs where they are accessible to the main program. Both tagged (-v, –verbose, –foo=bar) and untagged arguments are supported, as are multiple instances of each argument. Syntax error handling is automatic.

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

Install argtable on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install argtable

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

sudo dnf -y install argtable

How To Uninstall argtable on CentOS 7

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

sudo dnf remove argtable

References

Summary

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