How To Install ypserv on Fedora 34

ypserv is The NIS (Network Information Service) server

Introduction

In this tutorial we learn how to install ypserv on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install ypserv.

Install ypserv on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 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 Fedora 34

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

sudo dnf remove ypserv

ypserv Package Contents on Fedora 34

/etc/sysconfig/yppasswdd
/etc/ypserv.conf
/usr/include/rpcsvc
/usr/include/rpcsvc/ypxfrd.x
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/362a797ac802872e2a09b5924c23692cf6f832
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/28673452404d14d55cdddb600e7ce5eaf15196
/usr/lib/.build-id/34
/usr/lib/.build-id/34/d599a27aaa9ae0a6b0094ce9d236582d872fa5
/usr/lib/.build-id/3c
/usr/lib/.build-id/3c/efb8c5cc1925917cd3b49c695c27a68a8561dd
/usr/lib/.build-id/3e
/usr/lib/.build-id/3e/514af757299812cd663aaaebba00f109eb1bf4
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/5a80b3f22d015a6a9f286cc324767afa0f96c2
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/c1b5a391c5b3bbc6153eb919548b3aaab69582
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/7141b20a1129c02b7682fe691de5c03e333b87
/usr/lib/.build-id/f9
/usr/lib/.build-id/f9/8cd8639acc24f0c4a3b0d25057d61be77453b8
/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 Fedora 34 using yum and dnf.