Install snapd on CentOS Stream

First you need to enable epel-release repository

# dnf -y install epel-release

You can check to ensure the epel repository is now enabled

# dnf repolist
repo id                                                    repo name
appstream                                                  CentOS Stream 8 - AppStream
baseos                                                     CentOS Stream 8 - BaseOS
epel                                                       Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                                               Extra Packages for Enterprise Linux Modular 8 - x86_64
epel-next                                                  Extra Packages for Enterprise Linux 8 - Next - x86_64
extras                                                     CentOS Stream 8 - Extras
# dnf -y install snapd