Introduction
In this tutorial we learn how to install autofs
on CentOS 8.
What is autofs
autofs is a daemon which automatically mounts filesystems when you use them, and unmounts them later when you are not using them. This can include network filesystems, CD-ROMs, floppies, and so forth.
We can use yum
or dnf
to install autofs
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install autofs.
Install autofs 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 autofs
using dnf
by running the following command:
sudo dnf -y install autofs
Install autofs 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 autofs
using yum
by running the following command:
sudo yum -y install autofs
How To Uninstall autofs on CentOS 8
To uninstall only the autofs
package we can use the following command:
sudo dnf remove autofs
autofs Package Contents on CentOS 8
/etc/auto.master
/etc/auto.master.d
/etc/auto.misc
/etc/auto.net
/etc/auto.smb
/etc/autofs.conf
/etc/autofs_ldap_auth.conf
/etc/sysconfig/autofs
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/227d9dc4e38aa7d6e62c961b5caf603bc2d58c
/usr/lib/.build-id/19
/usr/lib/.build-id/19/f4e767bf711dbca9d47492e1ad387ee0c54d4a
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/93e04575f115e737cf71701054218367a74bf7
/usr/lib/.build-id/20
/usr/lib/.build-id/20/8ad226cc4da4f3250c9f0956214515a88cd295
/usr/lib/.build-id/23
/usr/lib/.build-id/23/9dfe0405fc3f3f263af712e1e38a603c2793f2
/usr/lib/.build-id/3f
/usr/lib/.build-id/3f/585523d1ae4088bef6afdb58bb5119de424d82
/usr/lib/.build-id/46
/usr/lib/.build-id/46/5c314f83fe0eb89957208ecf734961833879ae
/usr/lib/.build-id/78
/usr/lib/.build-id/78/3b5535f4610c7603cfa725870f67b85a66bed3
/usr/lib/.build-id/78/5d6b1e64fe63bab28897c740b3e539d3903cbb
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/27c09dfc54ab4701fcde2224fc94521a89cc83
/usr/lib/.build-id/81
/usr/lib/.build-id/81/8b3a19a05a2e07b1d661e54e994b03793b474f
/usr/lib/.build-id/86
/usr/lib/.build-id/86/9811e52e2ed1ecc4cbf29cf7543cb2b6646684
/usr/lib/.build-id/90
/usr/lib/.build-id/90/6faec0cab7e1822371bbf3620b798f97820846
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/00c36fb222d0e2b7b3738a663f872de98f6acd
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/043e1efbe920ea226313380388474a92a6ee20
/usr/lib/.build-id/bc
/usr/lib/.build-id/bc/380c916983c1974e459d1b103f8233bbc4df4d
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/eb4da8c002593f3b426ec7a453a687bc89e1b7
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/6b4907682794d570e88f470ecfb3dbd8bf1d5e
/usr/lib/.build-id/df
/usr/lib/.build-id/df/aece13596e7f2dab72cc907da0d2c5a2f7c1f6
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/55f0d6f9a0166e7ec4a81c31c82ec5df8b8c70
/usr/lib/systemd/system/autofs.service
/usr/lib64/autofs
/usr/lib64/autofs/lookup_dir.so
/usr/lib64/autofs/lookup_file.so
/usr/lib64/autofs/lookup_files.so
/usr/lib64/autofs/lookup_hosts.so
/usr/lib64/autofs/lookup_ldap.so
/usr/lib64/autofs/lookup_ldaps.so
/usr/lib64/autofs/lookup_multi.so
/usr/lib64/autofs/lookup_nis.so
/usr/lib64/autofs/lookup_nisplus.so
/usr/lib64/autofs/lookup_program.so
/usr/lib64/autofs/lookup_sss.so
/usr/lib64/autofs/lookup_userhome.so
/usr/lib64/autofs/lookup_yp.so
/usr/lib64/autofs/mount_afs.so
/usr/lib64/autofs/mount_autofs.so
/usr/lib64/autofs/mount_bind.so
/usr/lib64/autofs/mount_changer.so
/usr/lib64/autofs/mount_ext2.so
/usr/lib64/autofs/mount_ext3.so
/usr/lib64/autofs/mount_ext4.so
/usr/lib64/autofs/mount_generic.so
/usr/lib64/autofs/mount_nfs.so
/usr/lib64/autofs/mount_nfs4.so
/usr/lib64/autofs/parse_amd.so
/usr/lib64/autofs/parse_sun.so
/usr/sbin/automount
/usr/share/doc/autofs
/usr/share/doc/autofs/COPYING
/usr/share/doc/autofs/COPYRIGHT
/usr/share/doc/autofs/CREDITS
/usr/share/doc/autofs/INSTALL
/usr/share/doc/autofs/README
/usr/share/doc/autofs/README.active-restart
/usr/share/doc/autofs/README.amd-maps
/usr/share/doc/autofs/README.autofs-schema
/usr/share/doc/autofs/README.changer
/usr/share/doc/autofs/README.ldap-schema
/usr/share/doc/autofs/README.ncpfs
/usr/share/doc/autofs/README.replicated-server
/usr/share/doc/autofs/README.smbfs
/usr/share/doc/autofs/README.v5.release
/usr/share/doc/autofs/am-utils-ldap-id.txt
/usr/share/doc/autofs/am-utils-ldap.schema
/usr/share/doc/autofs/autofs.schema
/usr/share/doc/autofs/ldap-automount-auto.direct
/usr/share/doc/autofs/ldap-automount-auto.indirect
/usr/share/doc/autofs/ldap-automount-auto.master
/usr/share/doc/autofs/ldap-automount-rfc2307-bis-auto.direct
/usr/share/doc/autofs/ldap-automount-rfc2307-bis-auto.indirect
/usr/share/doc/autofs/ldap-automount-rfc2307-bis-auto.master
/usr/share/doc/autofs/ldap-automount-rfc2307-bis-old-style-auto.master
/usr/share/doc/autofs/ldap-nis-auto.direct
/usr/share/doc/autofs/ldap-nis-auto.indirect
/usr/share/doc/autofs/ldap-nis-auto.master
/usr/share/doc/autofs/rfc2307.schema
/usr/share/doc/autofs/rfc2307bis.schema
/usr/share/man/man5/auto.master.5.gz
/usr/share/man/man5/autofs.5.gz
/usr/share/man/man5/autofs.conf.5.gz
/usr/share/man/man5/autofs_ldap_auth.conf.5.gz
/usr/share/man/man8/autofs.8.gz
/usr/share/man/man8/automount.8.gz
References
Summary
In this tutorial we learn how to install autofs
on CentOS 8 using yum and dnf.