How To Install autofs on Fedora 34

autofs is A tool for automatically mounting and unmounting filesystems

Introduction

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

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

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

sudo dnf -y install autofs

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

sudo yum -y install autofs

How To Uninstall autofs on Fedora 34

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

sudo dnf remove autofs

autofs Package Contents on Fedora 34

/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/0c
/usr/lib/.build-id/0c/aa00f8ec9eec43f45108fb22c0537cca8a954d
/usr/lib/.build-id/13
/usr/lib/.build-id/13/e86f6da1aa1d20bef8a09670e9ee0ea1d0ca4e
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/c46b3bdd564e719ef97afaf71549469059fac4
/usr/lib/.build-id/2a/f5b313e6310bce36fd770b945f49e10a8cbfdf
/usr/lib/.build-id/41
/usr/lib/.build-id/41/ddc2d66b6534404fac4e8065105e179e6c8aab
/usr/lib/.build-id/49
/usr/lib/.build-id/49/4b57110cdb88ae8198d7175f5c90de16c9994f
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/cf6dc869f83f2ca1337c7535b220994193599d
/usr/lib/.build-id/62
/usr/lib/.build-id/62/b6f42a6c44c74c3aaf84e854dca4fd55a7fe3e
/usr/lib/.build-id/75
/usr/lib/.build-id/75/0a0ab9731dbfedc8a4f82ebf981427e397db40
/usr/lib/.build-id/75/b5349e19ac25672f9c1ba9e0b8bce2338bc729
/usr/lib/.build-id/75/d014c1b798e9d58ea4e34013334aee3f0bda6b
/usr/lib/.build-id/79
/usr/lib/.build-id/79/bc60384989ef62eed94e870c00bbd584a2b9e7
/usr/lib/.build-id/81
/usr/lib/.build-id/81/03965dcab0a8ca1cbfd0f68c600f02f988293f
/usr/lib/.build-id/86
/usr/lib/.build-id/86/931a8af9a90391ee82e108ab45b01a86e1e0c0
/usr/lib/.build-id/89
/usr/lib/.build-id/89/d38018282eeb650342dab363163060e4854f5e
/usr/lib/.build-id/99
/usr/lib/.build-id/99/e0c735e3aa262d29321ec42861fe3d11e7ebe9
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/443a21421578f888a0c8809307a6b240ddbfe2
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/82f9b7dab01a50346491c176b20bbee63056ba
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/b315994540ccc8508599e20306934930ba2d32
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/d4852ab4dd794530bfe3cbd2eca2426a058f35
/usr/lib/.build-id/d4/f2a46b000e06ffe03f96f4636a0afce9541837
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/cedc4fc19113ec2ff6e34742eeb129cd9ed89c
/usr/lib/.build-id/da
/usr/lib/.build-id/da/9892696316fda62cd0d127fb6018384a11b033
/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/lib64/libautofs.so
/usr/sbin/automount
/usr/sbin/fedfs-map-nfs4
/usr/sbin/mount.fedfs
/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/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/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
/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/16
/usr/lib/.build-id/16/4d8c9a2e13a632d39c88a171f2532eb6392482
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/6d97c2099b4ace6212d073f5335eb9db32e735
/usr/lib/.build-id/24
/usr/lib/.build-id/24/d5a48ca04d008e137cf415d103577c2b036cfc
/usr/lib/.build-id/46
/usr/lib/.build-id/46/f7f0b1f90fc2affa99854b28eafbd116d65bfa
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/435a380fd0b99e113928e3347db6c6424c2309
/usr/lib/.build-id/52
/usr/lib/.build-id/52/a901113f4f2f17930dc8a16b39a8316c0d4ce3
/usr/lib/.build-id/60
/usr/lib/.build-id/60/bef679947488559824536a4eeeeb18a30bb705
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/659f491cc5fcde51d19784bd24af3b53c6c3db
/usr/lib/.build-id/72
/usr/lib/.build-id/72/52f006b1925d97f58339648caf8c4142eb6ff6
/usr/lib/.build-id/73
/usr/lib/.build-id/73/0e13b053e57b75a3ddec893d07accf5f15d41f
/usr/lib/.build-id/95
/usr/lib/.build-id/95/686b4c09dc206abfec2004c2de6009cf284db2
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/843189d766c8778be15d39c89ea90bdd3d53bf
/usr/lib/.build-id/a5
/usr/lib/.build-id/a5/f6cb42e6102b9239b40870e0f27f45d045f8a9
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/8e057eb2124452e6cdd306a91774aff15c6cca
/usr/lib/.build-id/af
/usr/lib/.build-id/af/8e5af649c5988c636c24562ab857161ce7227b
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/1aee4929356cd04ab454eca074dcd1a6b66c45
/usr/lib/.build-id/b3/3ea9111eb2e8b99f14b683449f029b4197b9d3
/usr/lib/.build-id/b3/8eaf8fe33d1c2b4abd72c49c9ac0d556cfffb7
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/9a9460f5e0f5c4de1a8871425a80e57834293e
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/8786a445db5c947b0e7c46fc4c25dd50daa453
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/d76ac77df5109128e24af4e7662f83abeb5f49
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/4524a7763896ddc58372dfc29bbaed70114925
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/c3d2f873c99ab0eb4a64e891177bc6e1c1447e
/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/lib64/libautofs.so
/usr/sbin/automount
/usr/sbin/fedfs-map-nfs4
/usr/sbin/mount.fedfs
/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/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/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 Fedora 34 using yum and dnf.