How To Install samba on CentOS 8
Introduction
In this tutorial we learn how to install samba
on CentOS 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install samba.
Install samba 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 samba
using dnf
by running the following command:
sudo dnf -y install samba
Install samba 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 samba
using yum
by running the following command:
sudo yum -y install samba
How To Uninstall samba on CentOS 8
To uninstall only the samba
package we can use the following command:
sudo dnf remove samba
samba Package Contents on CentOS 8
/etc/openldap/schema
/etc/openldap/schema/samba.schema
/etc/pam.d/samba
/usr/bin/smbstatus
/usr/lib/.build-id
/usr/lib/.build-id/01
/usr/lib/.build-id/01/be1dfcbb103f9f53cab1b199cd6cbfd10e7754
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/2274d1ef0d3c4c68ac9b141d762bac455092d3
/usr/lib/.build-id/16
/usr/lib/.build-id/16/025c29e8ed2040da939e9fa53b38747d99a798
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/c388c8a839bce6109d0fd8f7009961346ac7b2
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/bd0955966a6a3c12ed7e5a4763252a3cdbe884
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/b41756b2bc7a1969f6d703cc82a749b4784c5b
/usr/lib/.build-id/32
/usr/lib/.build-id/32/70ed8f653c1c4bf6274ea36fe6955646aa8973
/usr/lib/.build-id/37
/usr/lib/.build-id/37/5c7e0631d3425ff8e13eb7b86a93322186eab4
/usr/lib/.build-id/3d
/usr/lib/.build-id/3d/85890517c5c5845337b26804e57b7e44d89c96
/usr/lib/.build-id/45
/usr/lib/.build-id/45/964f9f7dba719d1626d092b1186504de33aff9
/usr/lib/.build-id/46
/usr/lib/.build-id/46/6ecd303c13bad6588e05a9bf4266bb97b4dade
/usr/lib/.build-id/4b
/usr/lib/.build-id/4b/8046326ea0cbdadde1517def381681b7b58a0b
/usr/lib/.build-id/56
/usr/lib/.build-id/56/988297cb05349efd05a2d31e852d171c0238b1
/usr/lib/.build-id/59
/usr/lib/.build-id/59/df9db6b44a5d20d64c35ae10faae85cfd17d03
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/bed01a972867082c83ae3911ec7ef18055d8a5
/usr/lib/.build-id/5d
/usr/lib/.build-id/5d/8518d5daf9046f167d0d8a9c9cf6672cd6e273
/usr/lib/.build-id/60
/usr/lib/.build-id/60/7265acc41b675b8ca6cfe3947a95c3acd719a9
/usr/lib/.build-id/63
/usr/lib/.build-id/63/899373b6b2e59fafa4074524d5f17fec3c303a
/usr/lib/.build-id/65
/usr/lib/.build-id/65/4d04ad33769fe719a6dbe758801db81a43463f
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/0ab102ed4ca017fb43d0d19621a08c4816b40d
/usr/lib/.build-id/70
/usr/lib/.build-id/70/9fa4ce5dee95aa1e0a0b67b4e1310b73d0d62a
/usr/lib/.build-id/75
/usr/lib/.build-id/75/f9fcbbea18530dec099dcdfba7d16f9ad856b9
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/cf37ee1a6a21629c1c3b08af97791571d3e2c4
/usr/lib/.build-id/95
/usr/lib/.build-id/95/89630c324d5df365613eadbfe9bfd858c13b0d
/usr/lib/.build-id/a3
/usr/lib/.build-id/a3/a124d6af1287d0d74c4749edd98b1cc6f52e21
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/5f354470348c279bd4af6c8348b4ffde690f36
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/c10e4327a9d1742f78a5ca5392db1afe561a82
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/acc0700c432c9eb5ff6d872b64e7996b1ddcc1
/usr/lib/.build-id/ba
/usr/lib/.build-id/ba/8e062243d3c5cacbb8109853080d720c4b8017
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/2836e7b86954e34feb4d2faead7f1f483b5da5
/usr/lib/.build-id/c8/e6ff9d4c3363e7339db4b42c0a0108d9805717
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/a15f01098c51126cb2bcbd680c3ace079c8649
/usr/lib/.build-id/cd
/usr/lib/.build-id/cd/aeac89f0fc1864b4e3549ae3fc09fa93497fdc
/usr/lib/.build-id/cd/da060b4332b9f6d871e0300dcd996e76c7b12a
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/4386a9eef9c278e68385e23d5a6f3a4ef5e21d
/usr/lib/.build-id/d5
/usr/lib/.build-id/d5/0e0a1923c45947659ef02fc665d54de7a3267f
/usr/lib/.build-id/db
/usr/lib/.build-id/db/4609e0a863078f28126d2af489741c0779e890
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/7b73432e93fad9f424a82fc6bb3cf463cf3783
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/bf5ec4b454e1c577c57b2a6229ed8ff6698384
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/5ac7fccce1780919ca1bbf9b812cd703cac82d
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/0441d5dc112bc2df41b8497af347ac535f8976
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/e05cecab79f1f3609fc7d410d64b21564bca04
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/6b1d907c8e8ca835428981ce5ef498b153afd2
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/b71c3438a17082e2f13c020fdec94e01fb22f1
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/eb24d91cc7d0bb7e38ee204463d4d15b0d6f54
/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 CentOS 8 using yum and dnf.