How To Install yp-tools on Rocky Linux 8

In this tutorial we learn how to install yp-tools on Rocky Linux 8. yp-tools is NIS (or YP) client programs

Introduction

In this tutorial we learn how to install yp-tools on Rocky Linux 8.

What is yp-tools

The Network Information Service (NIS) is a system which provides network information (login names, passwords, home directories, groupinformation) to all of the machines on a network. NIS can enable 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 or dnf to install yp-tools on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install yp-tools.

Install yp-tools on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install yp-tools

Install yp-tools on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install yp-tools using yum by running the following command:

sudo yum -y install yp-tools

How To Uninstall yp-tools on Rocky Linux 8

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

sudo dnf remove yp-tools

yp-tools Package Contents on Rocky Linux 8

/usr/bin/ypcat
/usr/bin/ypchfn
/usr/bin/ypchsh
/usr/bin/ypmatch
/usr/bin/yppasswd
/usr/bin/ypwhich
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/6a03e707b9761cc47caee0aa13594949206df9
/usr/lib/.build-id/41
/usr/lib/.build-id/41/8bb6353ed8d7c63154e47ddf03f8386b290d9a
/usr/lib/.build-id/59
/usr/lib/.build-id/59/7a1612fc6d4fee68531c27cde4df1198bb9acf
/usr/lib/.build-id/75
/usr/lib/.build-id/75/aa9a7d28276996fccfb2103d1372068d1fafda
/usr/lib/.build-id/98
/usr/lib/.build-id/98/c3811242161a6678db55830c9a8c6670738c1b
/usr/lib/.build-id/98/c3811242161a6678db55830c9a8c6670738c1b.1
/usr/lib/.build-id/98/c3811242161a6678db55830c9a8c6670738c1b.2
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/f7cc07cdf6e7a6cbe4ed02d5ecf30f263ace71
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/630a846f634a718dd75cfca1326bd2f775df40
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/d28334aa1e4658d261bb4a6986d5e2a0651fd1
/usr/sbin/yp_dump_binding
/usr/sbin/yppoll
/usr/sbin/ypset
/usr/sbin/yptest
/usr/share/doc/yp-tools
/usr/share/doc/yp-tools/AUTHORS
/usr/share/doc/yp-tools/COPYING
/usr/share/doc/yp-tools/ChangeLog
/usr/share/doc/yp-tools/NEWS
/usr/share/doc/yp-tools/README
/usr/share/doc/yp-tools/THANKS
/usr/share/doc/yp-tools/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/yp_dump_binding.8.gz
/usr/share/man/man8/yppoll.8.gz
/usr/share/man/man8/ypset.8.gz
/var/yp/nicknames

References

Summary

In this tutorial we learn how to install yp-tools on Rocky Linux 8 using yum and dnf.