How To Install ypserv on Rocky Linux 8

In this tutorial we learn how to install ypserv on Rocky Linux 8. ypserv is The NIS (Network Information Service) server

Introduction

In this tutorial we learn how to install ypserv on Rocky Linux 8.

What is ypserv

The Network Information Service (NIS) is a system that provides network information (login names, passwords, home directories, group information) to all of the machines on a network. NIS can allow users to log in 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 provides the NIS server, which will need to be running on your network. NIS clients do not need to be running the server. Install ypserv if you need an NIS server for your network. You also need to install the yp-tools and ypbind packages on any NIS client machines.

We can use yum or dnf to install ypserv on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install ypserv.

Install ypserv 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 ypserv using dnf by running the following command:

sudo dnf -y install ypserv

Install ypserv 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 ypserv using yum by running the following command:

sudo yum -y install ypserv

How To Uninstall ypserv on Rocky Linux 8

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

sudo dnf remove ypserv

ypserv Package Contents on Rocky Linux 8

/etc/sysconfig/yppasswdd
/etc/ypserv.conf
/usr/include/rpcsvc
/usr/include/rpcsvc/ypxfrd.x
/usr/lib/.build-id
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/caae595c5712afdccd9698fc60c3cabc4bc731
/usr/lib/.build-id/68
/usr/lib/.build-id/68/b6260613ac6fd117003c4bef168dc0cea5a55a
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/d5949338772e63c493fc9e3d236ccfd752b042
/usr/lib/.build-id/72
/usr/lib/.build-id/72/61ebd4168e5257597886a2e6f555c9b1670bcf
/usr/lib/.build-id/82
/usr/lib/.build-id/82/ea390eb3ebcdc0630467ea8bd9da4c1a2498bc
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/4fdbad59e2ab4bdbc899e3ffcee37500e2d5ea
/usr/lib/.build-id/97
/usr/lib/.build-id/97/e994472b97fa195bb86dec8f1bc02247462172
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/888392713ee9a902ed102befb06cac06e61615
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/203a02e84177845d68d942606b2df2635ee55d
/usr/lib/systemd/system/yppasswdd.service
/usr/lib/systemd/system/ypserv.service
/usr/lib/systemd/system/ypxfrd.service
/usr/lib64/yp/create_printcap
/usr/lib64/yp/makedbm
/usr/lib64/yp/match_printcap
/usr/lib64/yp/mknetid
/usr/lib64/yp/pwupdate
/usr/lib64/yp/revnetgroup
/usr/lib64/yp/yphelper
/usr/lib64/yp/ypinit
/usr/lib64/yp/ypxfr
/usr/lib64/yp/ypxfr_1perday
/usr/lib64/yp/ypxfr_1perhour
/usr/lib64/yp/ypxfr_2perday
/usr/libexec/rpc.yppasswdd.env
/usr/libexec/yppasswdd-pre-setdomain
/usr/sbin/rpc.yppasswdd
/usr/sbin/rpc.ypxfrd
/usr/sbin/yppush
/usr/sbin/ypserv
/usr/share/doc/ypserv
/usr/share/doc/ypserv/AUTHORS
/usr/share/doc/ypserv/COPYING
/usr/share/doc/ypserv/ChangeLog
/usr/share/doc/ypserv/INSTALL
/usr/share/doc/ypserv/NEWS
/usr/share/doc/ypserv/README
/usr/share/doc/ypserv/README.etc
/usr/share/doc/ypserv/TODO
/usr/share/doc/ypserv/locale
/usr/share/doc/ypserv/netgroup
/usr/share/doc/ypserv/netmasks
/usr/share/doc/ypserv/securenets
/usr/share/doc/ypserv/timezone
/usr/share/doc/ypserv/ypserv.conf
/usr/share/man/man5/netgroup.5.gz
/usr/share/man/man5/ypserv.conf.5.gz
/usr/share/man/man8/makedbm.8.gz
/usr/share/man/man8/mknetid.8.gz
/usr/share/man/man8/pwupdate.8.gz
/usr/share/man/man8/revnetgroup.8.gz
/usr/share/man/man8/rpc.yppasswdd.8.gz
/usr/share/man/man8/rpc.ypxfrd.8.gz
/usr/share/man/man8/yphelper.8.gz
/usr/share/man/man8/ypinit.8.gz
/usr/share/man/man8/yppasswdd.8.gz
/usr/share/man/man8/yppush.8.gz
/usr/share/man/man8/ypserv.8.gz
/usr/share/man/man8/ypxfr.8.gz
/usr/share/man/man8/ypxfrd.8.gz
/var/yp/Makefile

References

Summary

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