How To Install pdc-client on CentOS 7

In this tutorial we learn how to install pdc-client on CentOS 7. pdc-client is Console client for interacting with Product Definition Center

Introduction

In this tutorial we learn how to install pdc-client on CentOS 7.

What is pdc-client

This client package contains two separate Product Definition Center clients and API module. Both clients contain extensive built-in help. Just run the executable with -h or –help argument. 1. pdc_client This is a very simple client. Essentially this is just a little more convenient than using curl manually. Each invocation of this client obtains a token and then performs a single request. This client is not meant for direct usage, but just as a helper for integrating with PDC from languages where it might be easier than performing the network requests manually. 2. pdc This is much more user friendly user interface. A single invocation can perform multiple requests depending on what subcommand you used. The pdc client supports Bash completion if argcomplete Python package is installed. 3. Python API (pdc_client) When writing a client code interfacing with PDC server, you might find pdc_client module handy. It provides access to the configuration defined above and automates obtaining authorization token.

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

Install pdc-client on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install pdc-client

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

sudo dnf -y install pdc-client

How To Uninstall pdc-client on CentOS 7

To uninstall only the pdc-client package we can use the following command:

sudo dnf remove pdc-client

References

Summary

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