How To Install ypserv on CentOS 8

ypserv is The NIS (Network Information Service) server

Introduction

In this tutorial we learn how to install ypserv on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install ypserv.

Install ypserv on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install ypserv

Install ypserv on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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 CentOS 8

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

sudo dnf remove ypserv

ypserv Package Contents on CentOS 8

/etc/sysconfig/yppasswdd
/etc/ypserv.conf
/usr/include/rpcsvc
/usr/include/rpcsvc/ypxfrd.x
/usr/lib/.build-id
/usr/lib/.build-id/0e
/usr/lib/.build-id/0e/8257bea79594d736162f6e7ee994f6f600709d
/usr/lib/.build-id/41
/usr/lib/.build-id/41/de47b5a3a7b63ba1f8c0da69bf2c99772c1f08
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/014de923fd6cadede6a0947899621bc4ef78b8
/usr/lib/.build-id/72
/usr/lib/.build-id/72/1bd12fb6573c97f1e04cedcd34878f87ce06f7
/usr/lib/.build-id/77
/usr/lib/.build-id/77/bbe68cefbfbaf830a94b6963cfe3d216f8bf19
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/2922a2ef8009c6ba3a8df23be2b878645c257e
/usr/lib/.build-id/80
/usr/lib/.build-id/80/40f2a76b8d0361bbca42657977fc820d0b5c18
/usr/lib/.build-id/88
/usr/lib/.build-id/88/14476bc2ae48c618f48eff7ed1f35804d277c9
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/2992a8893c90ec74690742cb12ada4f8ceb546
/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 CentOS 8 using yum and dnf.