How To Install yp-tools.x86_64 on Amazon Linux 2

In this tutorial we learn how to install yp-tools.x86_64 in Amazon Linux 2. yp-tools.x86_64 is NIS (or YP) client programs

Introduction

In this tutorial we learn how to install yp-tools.x86_64 on Amazon Linux 2.

What is yp-tools.x86_64

The Network Information Service (NIS) is a system which provides network information (login names, passwords, home directories, group information) to all of the machines on a network. NIS can enable users to login on any machine on the network, as long as the machine has the NIS client programs running and the user’s password is recorded in the NIS passwd database. NIS was formerly known as Sun Yellow Pages (YP). This package’s NIS implementation is based on FreeBSD’s YP and is a special port for glibc 2.x and libc versions 5.4.21 and later. This package only provides the NIS client programs. In order to use the clients, you’ll need to already have an NIS server running on your network. An NIS server is provided in the ypserv package. Install the yp-tools package if you need NIS client programs for machines on your network. You will also need to install the ypbind package on every machine running NIS client programs. If you need an NIS server, you’ll need to install the ypserv package on one machine on the network.

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

Install yp-tools.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 yp-tools.x86_64 using yum by running the following command:

sudo yum -y install yp-tools.x86_64

How To Uninstall yp-tools.x86_64 on Amazon Linux 2

To uninstall only the yp-tools.x86_64 package we can use the following command:

sudo yum remove yp-tools.x86_64

yp-tools.x86_64 Package Contents on Amazon Linux 2

/usr/bin/ypcat
/usr/bin/ypchfn
/usr/bin/ypchsh
/usr/bin/ypmatch
/usr/bin/yppasswd
/usr/bin/ypwhich
/usr/sbin/yppoll
/usr/sbin/ypset
/usr/sbin/yptest
/usr/share/doc/yp-tools-2.14
/usr/share/doc/yp-tools-2.14/AUTHORS
/usr/share/doc/yp-tools-2.14/COPYING
/usr/share/doc/yp-tools-2.14/ChangeLog
/usr/share/doc/yp-tools-2.14/NEWS
/usr/share/doc/yp-tools-2.14/README
/usr/share/doc/yp-tools-2.14/THANKS
/usr/share/doc/yp-tools-2.14/TODO
/usr/share/doc/yp-tools-2.14/nsswitch.conf
/usr/share/locale/de/LC_MESSAGES/yp-tools.mo
/usr/share/locale/sv/LC_MESSAGES/yp-tools.mo
/usr/share/man/man1/ypcat.1.gz
/usr/share/man/man1/ypchfn.1.gz
/usr/share/man/man1/ypchsh.1.gz
/usr/share/man/man1/ypmatch.1.gz
/usr/share/man/man1/yppasswd.1.gz
/usr/share/man/man1/ypwhich.1.gz
/usr/share/man/man5/nicknames.5.gz
/usr/share/man/man8/yppoll.8.gz
/usr/share/man/man8/ypset.8.gz
/usr/share/man/man8/yptest.8.gz
/var/yp/nicknames

References

Summary

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