How To Install autofs.x86_64 on Amazon Linux 2

In this tutorial we learn how to install autofs.x86_64 in Amazon Linux 2. autofs.x86_64 is A tool for automatically mounting and unmounting filesystems

Introduction

In this tutorial we learn how to install autofs.x86_64 on Amazon Linux 2.

What is autofs.x86_64

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

Install autofs.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install autofs.x86_64 using yum by running the following command:

sudo yum -y install autofs.x86_64

How To Uninstall autofs.x86_64 on Amazon Linux 2

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

sudo yum remove autofs.x86_64

autofs.x86_64 Package Contents on Amazon Linux 2

/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/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_hesiod.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_hesiod.so
/usr/lib64/autofs/parse_sun.so
/usr/sbin/automount
/usr/share/doc/autofs-5.0.7
/usr/share/doc/autofs-5.0.7/COPYING
/usr/share/doc/autofs-5.0.7/COPYRIGHT
/usr/share/doc/autofs-5.0.7/CREDITS
/usr/share/doc/autofs-5.0.7/INSTALL
/usr/share/doc/autofs-5.0.7/README
/usr/share/doc/autofs-5.0.7/README.active-restart
/usr/share/doc/autofs-5.0.7/README.amd-maps
/usr/share/doc/autofs-5.0.7/README.autofs-schema
/usr/share/doc/autofs-5.0.7/README.changer
/usr/share/doc/autofs-5.0.7/README.ncpfs
/usr/share/doc/autofs-5.0.7/README.replicated-server
/usr/share/doc/autofs-5.0.7/README.smbfs
/usr/share/doc/autofs-5.0.7/README.v5.release
/usr/share/doc/autofs-5.0.7/autofs.schema
/usr/share/doc/autofs-5.0.7/autofs.schema.new
/usr/share/doc/autofs-5.0.7/autofs4-2.6.18-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.18-v5-update-20100114.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.19-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.19-v5-update-20100114.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.20-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.21-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.22-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.22.17-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.23-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.24-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.24.4-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.25-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.26-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.27-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.28-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/autofs4-2.6.29-v5-update-20090903.patch
/usr/share/doc/autofs-5.0.7/ldap-automount-auto.direct
/usr/share/doc/autofs-5.0.7/ldap-automount-auto.indirect
/usr/share/doc/autofs-5.0.7/ldap-automount-auto.master
/usr/share/doc/autofs-5.0.7/ldap-automount-rfc2307-bis-auto.direct
/usr/share/doc/autofs-5.0.7/ldap-automount-rfc2307-bis-auto.indirect
/usr/share/doc/autofs-5.0.7/ldap-automount-rfc2307-bis-auto.master
/usr/share/doc/autofs-5.0.7/ldap-automount-rfc2307-bis-old-style-auto.master
/usr/share/doc/autofs-5.0.7/ldap-nis-auto.direct
/usr/share/doc/autofs-5.0.7/ldap-nis-auto.indirect
/usr/share/doc/autofs-5.0.7/ldap-nis-auto.master
/usr/share/doc/autofs-5.0.7/util-linux-2.12a-flock.patch
/usr/share/doc/autofs-5.0.7/util-linux-2.12q-flock.patch
/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.x86_64 on Amazon Linux 2 using yum.