How To Install rsh.x86_64 on Amazon Linux 2

In this tutorial we learn how to install rsh.x86_64 in Amazon Linux 2. rsh.x86_64 is Clients for remote access commands (rsh, rlogin, rcp)

Introduction

In this tutorial we learn how to install rsh.x86_64 on Amazon Linux 2.

What is rsh.x86_64

The rsh package contains a set of programs which allow users to run commands on remote machines, login to other machines and copy files between machines (rsh, rlogin and rcp). All three of these commands use rhosts style authentication. This package contains the clients needed for all of these services. The rsh package should be installed to enable remote access to other machines

We can use yum to install rsh.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install rsh.x86_64.

Install rsh.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install rsh.x86_64 using yum by running the following command:

sudo yum -y install rsh.x86_64

How To Uninstall rsh.x86_64 on Amazon Linux 2

To uninstall only the rsh.x86_64 package we can use the following command:

sudo yum remove rsh.x86_64

rsh.x86_64 Package Contents on Amazon Linux 2

/usr/bin/rcp
/usr/bin/rexec
/usr/bin/rlogin
/usr/bin/rsh
/usr/share/doc/rsh-0.17
/usr/share/doc/rsh-0.17/BUGS
/usr/share/doc/rsh-0.17/README
/usr/share/man/man1/rcp.1.gz
/usr/share/man/man1/rexec.1.gz
/usr/share/man/man1/rlogin.1.gz
/usr/share/man/man1/rsh.1.gz

References

Summary

In this tutorial we learn how to install rsh.x86_64 on Amazon Linux 2 using yum.