How To Install sshrc on Fedora 36

In this tutorial we learn how to install sshrc in Fedora 36. sshrc is Bring your bash and vim configuration in your ssh session

Introduction

In this tutorial we learn how to install sshrc on Fedora 36.

What is sshrc

You can use this to set environment variables, define functions, and run post-login commands. This is quite useful when you have several servers that you don’t want to configure independently.

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

Install sshrc on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install sshrc

Install sshrc on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install sshrc

How To Uninstall sshrc on Fedora 36

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

sudo dnf remove sshrc

sshrc Package Contents on Fedora 36

/usr/bin/moshrc
/usr/bin/sshrc
/usr/share/doc/sshrc
/usr/share/doc/sshrc/README.md
/usr/share/licenses/sshrc
/usr/share/licenses/sshrc/LICENSE

References

Summary

In this tutorial we learn how to install sshrc on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).