Virtualbox installation on Fedora Linux - Linux Tutorials - Learn Linux Configuration

The objective of this tutorial is to install VirtualBox on Fedora Linux. VirtualBox is a free and open source hosted hypervisor for x86 virtualization developed and maintained by the Oracle Corporation. VirtualBox is a great way to install a guest operating system on your computer, if you either want to try a different operating system or just maintain a separate environment from your host system. You will learn how to install VirtualBox via both command line in this tutorial.
This is a companion discussion topic for the original entry at https://linuxconfig.org/virtualbox-installation-on-fedora-linux

The virtualbox repo you used there have some issue and its not working.
By the way this will work -
[virtualbox]
name=Fedora $releasever - $basearch - VirtualBox
baseurl=http)://download.virtualbox.org/virtualbox/rpm/fedora/$releasever/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https)://www.virtualbox.org/download/oracle_vbox_2016.asc
EOF

PLEASE do not forget to remove brackets in baseurl and gpgkey.
As a new user I am unable to put links in the replies.