How To Install autofs on Rocky Linux 8

In this tutorial we learn how to install autofs on Rocky Linux 8. autofs is A tool for automatically mounting and unmounting filesystems

Introduction

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

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

sudo dnf -y install autofs

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

sudo yum -y install autofs

How To Uninstall autofs on Rocky Linux 8

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

sudo dnf remove autofs

autofs Package Contents on Rocky Linux 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/09
/usr/lib/.build-id/09/2786fe6dc05eb107068dbd4ceefcf14622a9bf
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/e410bc8e2d320589f28ed77de295a9cb70a235
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/0b2c37db3e8e6da6772ee4da34598af5d261e7
/usr/lib/.build-id/17
/usr/lib/.build-id/17/7030347c30016d8e8f0131f27329cbebd3aef4
/usr/lib/.build-id/1e
/usr/lib/.build-id/1e/ce0eb3236859ca218070050fed45371a647a7d
/usr/lib/.build-id/43
/usr/lib/.build-id/43/bc669cc5a371711eec4921755de8b804d5486b
/usr/lib/.build-id/48
/usr/lib/.build-id/48/84dd52e4aac3d1cffa11fcd8875eed94b79a6e
/usr/lib/.build-id/52
/usr/lib/.build-id/52/49ce29a8874516e6921055990ee66c48ee0375
/usr/lib/.build-id/64
/usr/lib/.build-id/64/b5a2f60bd52e9dcba5434d6dd9cfd7d6057d31
/usr/lib/.build-id/6e
/usr/lib/.build-id/6e/eab98c099ed0c6ad1512aed2b136f1494543f8
/usr/lib/.build-id/91
/usr/lib/.build-id/91/600c30c8f35765bac1ff473fa18348688e622a
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/28f4bd0346574ffc208f45ef613c7148d08115
/usr/lib/.build-id/a5/7152c86be4c7898dd5dba536d8a5e7268e0b52
/usr/lib/.build-id/a7
/usr/lib/.build-id/a7/bfbff9a8c15b980780bb216f0d87c9cd13cc4d
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/022553edd3ce5b876a35b995bce1344505e02a
/usr/lib/.build-id/ad
/usr/lib/.build-id/ad/f672e2010d07683d4f22edc6f09dd3aae795bb
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/21f3b9c2e0a7b89b97f2c5419fb2f71f45461a
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/cad3764c22bb3feb0806c8cb52ac2b1eca8733
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/dd2955ecb9faab155a648f9959b24f0a851148
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/23c84efce13f5adb0ae0cb5fc5f7dc5251d8e7
/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 Rocky Linux 8 using yum and dnf.