How To Install cpaste on CentOS 7

In this tutorial we learn how to install cpaste on CentOS 7. cpaste is Command line tool to upload things to pastebin.centos.org

Introduction

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

What is cpaste

Command line tool to upload things to the CentOS Project’s pastebin service located at https accept input from a named file piped in via standard input. Permits the user to specify title; authors name; expiry time; language/format and mark the paste as private. May also be used for any other stikked-based pastebin service.

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

Install cpaste on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install cpaste

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

sudo dnf -y install cpaste

How To Uninstall cpaste on CentOS 7

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

sudo dnf remove cpaste

References

Summary

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