Linux Commands and Scripts

Steps to Install fpaste tool in CentOS

In this article, we’ll explain how to install fpaste tool in CentOS.

Software developers or users always encounter different problems. When these problems arise, you end up needing to share error messages, command output or the contents of files with people online. An online content-sharing tool is often called a pastebin.

In the Fedora ecosystem, There is a tool available: fpaste. fpaste is both a web-based pastebin and a command line tool. fpaste is a lifesaver for debugging errors or simply looking for feedback on some text.

How to Install fpaste Tool in CentOS

1. Install EPEL

fpaste tool is available in EPEL release. To install fpaste tool, first we need to install EPEL.

For CentOS 7

# yum install epel-release -y

For CentOS 8

# dnf install epel-release -y

2. Install fpaste

For CentOS 7

# yum install fpaste -y

For CentOS 8

# dnf install fpaste -y

3. Ways to use fpaste

Create one test file and upload it using following command:

# fpaste test

Uploading (0.1KiB)…

To use a nickname and password while pasting test.txt, run this command.

# fpaste test.txt -n “administrator” –password “admin@123” test

Send bash script by specifying bash.

# fpaste -l bash –private –clipout

Send specific command output. Here we’re using w command.

# w | fpaste

Send system information with a description and a confirmation.

# fpaste –sysinfo -d “my laptop” –confirm -x “1800”

If you want to send output of the multiple commands, use following command:

# (uname -a ; date ; who ) | fpaste –confirm -x “1800”

Here we’re sending output of uname, date and who command.

Checkout man page

# man fpaste

In this article, we have seen how to install fpaste tool in CentOS also send an error report and command’s output.

Get a high performance dual E5 series dedicated server and cheap KVM VPS.

Related Articles