How To Install samba on Rocky Linux 8

In this tutorial we learn how to install samba on Rocky Linux 8. samba is Server and Client software to interoperate with Windows machines

Introduction

In this tutorial we learn how to install samba on Rocky Linux 8.

What is samba

Samba is the standard Windows interoperability suite of programs for Linux and Unix.

We can use yum or dnf to install samba on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install samba.

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

sudo dnf -y install samba

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

sudo yum -y install samba

How To Uninstall samba on Rocky Linux 8

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

sudo dnf remove samba

samba Package Contents on Rocky Linux 8

/etc/openldap/schema
/etc/openldap/schema/samba.schema
/etc/pam.d/samba
/usr/bin/smbstatus
/usr/lib/.build-id
/usr/lib/.build-id/09
/usr/lib/.build-id/09/788b5c09b3dd70bb240682b338e70327da5b81
/usr/lib/.build-id/14
/usr/lib/.build-id/14/cc712f38cbe2b8a54eab9a20b450a26aa02f2b
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/19bdd9e851f036ddfbfbcf0b8e5a9f3e177f97
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/bba141bb46b391b5274c8328ea6af18b742a4b
/usr/lib/.build-id/25
/usr/lib/.build-id/25/7707281b81726c023ce16bdadb398e2d65127d
/usr/lib/.build-id/2a
/usr/lib/.build-id/2a/76b100fbd8ad30c298de3bec0d1963ea55c417
/usr/lib/.build-id/31
/usr/lib/.build-id/31/0b68ef1a211c6420593eb9ce91f2465abb69b5
/usr/lib/.build-id/39
/usr/lib/.build-id/39/15ed74c359f7b13d55165e1c256dcbcc96d6cf
/usr/lib/.build-id/39/c0724ca3ce03c64f805d733674053c249f3bd3
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/889326d811deee883bb1a27c3be61ed5b743c5
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/bed01a972867082c83ae3911ec7ef18055d8a5
/usr/lib/.build-id/60
/usr/lib/.build-id/60/0cfbb282d92342212cb77e8480cc7371ef2018
/usr/lib/.build-id/60/7265acc41b675b8ca6cfe3947a95c3acd719a9
/usr/lib/.build-id/63
/usr/lib/.build-id/63/899373b6b2e59fafa4074524d5f17fec3c303a
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/b4dcc2e8445989cbb46ed7cd07898365f659cb
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/0ab102ed4ca017fb43d0d19621a08c4816b40d
/usr/lib/.build-id/70
/usr/lib/.build-id/70/060cb812bb9afd5be07c904e173e9ca21b27d5
/usr/lib/.build-id/72
/usr/lib/.build-id/72/23a06ca0ac0c0704115a03618a2c9f231c0be8
/usr/lib/.build-id/73
/usr/lib/.build-id/73/ca5ddced58a1e52de7f1328cec2ca71cff883c
/usr/lib/.build-id/74
/usr/lib/.build-id/74/732b18b24d5080a87c2ab7e1d84f17eae25964
/usr/lib/.build-id/75
/usr/lib/.build-id/75/f9fcbbea18530dec099dcdfba7d16f9ad856b9
/usr/lib/.build-id/79
/usr/lib/.build-id/79/114c152a4ece415ce69eddb02f3aea8ac7f2ef
/usr/lib/.build-id/7a
/usr/lib/.build-id/7a/f65e7e729b49f6c8956fbd7fbac03c06237c2c
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/18132f6ab885abb8744b4158fe6ce13b3026e3
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/4210a024f29d6a6994334cfcf1e9a465e7b952
/usr/lib/.build-id/7f
/usr/lib/.build-id/7f/0ae2e7eabf22003c2729c7f59d4d9f6ab4662d
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/f9907d554bdd30db087c50c70dfca4b204173f
/usr/lib/.build-id/8f
/usr/lib/.build-id/8f/709f2d61f4fe84e9d66f07e007a6f27dbb5d60
/usr/lib/.build-id/9b
/usr/lib/.build-id/9b/43191280ba1e11e552e8b4a0d0cd00428b5b5f
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/acc0700c432c9eb5ff6d872b64e7996b1ddcc1
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/2289ef658d01eb4bb586290592fb772dfa2ab0
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/57cbafb986c59ea9144fabfc3202a1ac560273
/usr/lib/.build-id/b9
/usr/lib/.build-id/b9/4a463d1e79e31a0d87a73dcedb9f414f02b45d
/usr/lib/.build-id/c5
/usr/lib/.build-id/c5/b6e1459352167a70d7480a95df8e48beb8e75c
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/8a5254a7e9edb571b61cb67076aec4ebb5b7f8
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/d5cf7fe81eb8cc185fb8c1d4c4fbe2e7fab8f9
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/481d09a6e7e6855bcf96874dafcce02be64eb5
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/b17b61eea94c216ceabce90c0ce7a801f1613c
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/e4940605496ac868b0b9c0b7db34175a22ea17
/usr/lib/.build-id/da
/usr/lib/.build-id/da/bb45479a02576134eb4d0fd5c59ed401f2027c
/usr/lib/.build-id/de
/usr/lib/.build-id/de/74772d68ff58895b4cf3870420f54972116812
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/e05cecab79f1f3609fc7d410d64b21564bca04
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/ba3b1e6ab69d8b7ac2105a091cc9173bf01a22
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/b19e151f8a13c4c0ef73a02333e29f1efc7f04
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/4b4d2cd8da4150f33e3a1ce84dc51cd7e6a80e
/usr/lib/systemd/system/nmb.service
/usr/lib/systemd/system/smb.service
/usr/lib64/samba/auth
/usr/lib64/samba/auth/unix.so
/usr/lib64/samba/vfs
/usr/lib64/samba/vfs/acl_tdb.so
/usr/lib64/samba/vfs/acl_xattr.so
/usr/lib64/samba/vfs/aio_fork.so
/usr/lib64/samba/vfs/aio_pthread.so
/usr/lib64/samba/vfs/audit.so
/usr/lib64/samba/vfs/btrfs.so
/usr/lib64/samba/vfs/cap.so
/usr/lib64/samba/vfs/catia.so
/usr/lib64/samba/vfs/commit.so
/usr/lib64/samba/vfs/crossrename.so
/usr/lib64/samba/vfs/default_quota.so
/usr/lib64/samba/vfs/dirsort.so
/usr/lib64/samba/vfs/expand_msdfs.so
/usr/lib64/samba/vfs/extd_audit.so
/usr/lib64/samba/vfs/fake_perms.so
/usr/lib64/samba/vfs/fileid.so
/usr/lib64/samba/vfs/fruit.so
/usr/lib64/samba/vfs/full_audit.so
/usr/lib64/samba/vfs/glusterfs_fuse.so
/usr/lib64/samba/vfs/gpfs.so
/usr/lib64/samba/vfs/linux_xfs_sgid.so
/usr/lib64/samba/vfs/media_harmony.so
/usr/lib64/samba/vfs/offline.so
/usr/lib64/samba/vfs/preopen.so
/usr/lib64/samba/vfs/readahead.so
/usr/lib64/samba/vfs/readonly.so
/usr/lib64/samba/vfs/recycle.so
/usr/lib64/samba/vfs/shadow_copy.so
/usr/lib64/samba/vfs/shadow_copy2.so
/usr/lib64/samba/vfs/shell_snap.so
/usr/lib64/samba/vfs/snapper.so
/usr/lib64/samba/vfs/streams_depot.so
/usr/lib64/samba/vfs/streams_xattr.so
/usr/lib64/samba/vfs/syncops.so
/usr/lib64/samba/vfs/time_audit.so
/usr/lib64/samba/vfs/unityed_media.so
/usr/lib64/samba/vfs/virusfilter.so
/usr/lib64/samba/vfs/widelinks.so
/usr/lib64/samba/vfs/worm.so
/usr/lib64/samba/vfs/xattr_tdb.so
/usr/sbin/eventlogadm
/usr/sbin/nmbd
/usr/sbin/smbd
/usr/share/doc/samba
/usr/share/doc/samba/LDAP
/usr/share/doc/samba/LDAP/README
/usr/share/doc/samba/LDAP/get_next_oid
/usr/share/doc/samba/LDAP/ol-schema-migrate.pl
/usr/share/doc/samba/LDAP/samba-nds.schema
/usr/share/doc/samba/LDAP/samba-schema-FDS.ldif
/usr/share/doc/samba/LDAP/samba-schema-netscapeds5.x.README
/usr/share/doc/samba/LDAP/samba-schema.IBMSecureWay
/usr/share/doc/samba/LDAP/samba.ldif
/usr/share/doc/samba/LDAP/samba.schema
/usr/share/doc/samba/LDAP/samba.schema.at.IBM-DS
/usr/share/doc/samba/LDAP/samba.schema.oc.IBM-DS
/usr/share/doc/samba/README.downgrade
/usr/share/doc/samba/README.md
/usr/share/doc/samba/WHATSNEW.txt
/usr/share/doc/samba/autofs
/usr/share/doc/samba/autofs/auto.smb
/usr/share/doc/samba/misc
/usr/share/doc/samba/misc/adssearch.pl
/usr/share/doc/samba/misc/check_multiple_LDAP_entries.pl
/usr/share/doc/samba/misc/cldap.pl
/usr/share/doc/samba/misc/extra_smbstatus
/usr/share/doc/samba/misc/wall.perl
/usr/share/doc/samba/printer-accounting
/usr/share/doc/samba/printer-accounting/README
/usr/share/doc/samba/printer-accounting/acct-all
/usr/share/doc/samba/printer-accounting/acct-sum
/usr/share/doc/samba/printer-accounting/hp5-redir
/usr/share/doc/samba/printer-accounting/lp-acct
/usr/share/doc/samba/printer-accounting/printcap
/usr/share/doc/samba/printing
/usr/share/doc/samba/printing/VampireDriversFunctions
/usr/share/doc/samba/printing/prtpub.c
/usr/share/doc/samba/printing/readme.prtpub
/usr/share/doc/samba/printing/smbprint.sysv
/usr/share/licenses/samba
/usr/share/licenses/samba/COPYING
/usr/share/man/man1/smbstatus.1.gz
/usr/share/man/man8/eventlogadm.8.gz
/usr/share/man/man8/nmbd.8.gz
/usr/share/man/man8/smbd.8.gz
/usr/share/man/man8/vfs_acl_tdb.8.gz
/usr/share/man/man8/vfs_acl_xattr.8.gz
/usr/share/man/man8/vfs_aio_fork.8.gz
/usr/share/man/man8/vfs_aio_pthread.8.gz
/usr/share/man/man8/vfs_audit.8.gz
/usr/share/man/man8/vfs_btrfs.8.gz
/usr/share/man/man8/vfs_cap.8.gz
/usr/share/man/man8/vfs_catia.8.gz
/usr/share/man/man8/vfs_commit.8.gz
/usr/share/man/man8/vfs_crossrename.8.gz
/usr/share/man/man8/vfs_default_quota.8.gz
/usr/share/man/man8/vfs_dirsort.8.gz
/usr/share/man/man8/vfs_extd_audit.8.gz
/usr/share/man/man8/vfs_fake_perms.8.gz
/usr/share/man/man8/vfs_fileid.8.gz
/usr/share/man/man8/vfs_fruit.8.gz
/usr/share/man/man8/vfs_full_audit.8.gz
/usr/share/man/man8/vfs_glusterfs_fuse.8.gz
/usr/share/man/man8/vfs_gpfs.8.gz
/usr/share/man/man8/vfs_linux_xfs_sgid.8.gz
/usr/share/man/man8/vfs_media_harmony.8.gz
/usr/share/man/man8/vfs_offline.8.gz
/usr/share/man/man8/vfs_preopen.8.gz
/usr/share/man/man8/vfs_readahead.8.gz
/usr/share/man/man8/vfs_readonly.8.gz
/usr/share/man/man8/vfs_recycle.8.gz
/usr/share/man/man8/vfs_shadow_copy.8.gz
/usr/share/man/man8/vfs_shadow_copy2.8.gz
/usr/share/man/man8/vfs_shell_snap.8.gz
/usr/share/man/man8/vfs_snapper.8.gz
/usr/share/man/man8/vfs_streams_depot.8.gz
/usr/share/man/man8/vfs_streams_xattr.8.gz
/usr/share/man/man8/vfs_syncops.8.gz
/usr/share/man/man8/vfs_time_audit.8.gz
/usr/share/man/man8/vfs_unityed_media.8.gz
/usr/share/man/man8/vfs_virusfilter.8.gz
/usr/share/man/man8/vfs_widelinks.8.gz
/usr/share/man/man8/vfs_worm.8.gz
/usr/share/man/man8/vfs_xattr_tdb.8.gz
/usr/share/samba
/usr/share/samba/mdssvc
/usr/share/samba/mdssvc/elasticsearch_mappings.json
/var/lib/samba/drivers
/var/spool/samba

References

Summary

In this tutorial we learn how to install samba on Rocky Linux 8 using yum and dnf.