How To Install yp-tools on CentOS 8
Introduction
In this tutorial we learn how to install yp-tools
on CentOS 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 CentOS 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 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 yp-tools
using dnf
by running the following command:
sudo dnf -y install yp-tools
Install yp-tools 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 yp-tools
using yum
by running the following command:
sudo yum -y install yp-tools
How To Uninstall yp-tools on CentOS 8
To uninstall only the yp-tools
package we can use the following command:
sudo dnf remove yp-tools
yp-tools Package Contents on CentOS 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/2c
/usr/lib/.build-id/2c/74a01661a58691d8f0665f18fb73c082a8d94f
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/16572dd531c4616af3e3fe4b55076e830fee7d
/usr/lib/.build-id/4e
/usr/lib/.build-id/4e/c6f276edd501813d418482d350a300d8c33eff
/usr/lib/.build-id/77
/usr/lib/.build-id/77/6c144cda4464392d5e288058c749ee41c6805c
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/6025dae130ac23e2eabf422ab6b5291bf0305d
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/91295dc7945dce6975a931b6096c1c4b2caccb
/usr/lib/.build-id/c2
/usr/lib/.build-id/c2/41963a58af7e07e705c303fac3af3cc95365d3
/usr/lib/.build-id/c2/41963a58af7e07e705c303fac3af3cc95365d3.1
/usr/lib/.build-id/c2/41963a58af7e07e705c303fac3af3cc95365d3.2
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/2f3c8abe25f4379eb174a73b3496e4c23650ef
/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 CentOS 8 using yum and dnf.