D-Link AC1300 Driver

I have found the solution on ubuntu but i cant find it on fedroa can someone tell me these commands that would work on fedora:

sudo apt update
sudo apt install git dkms build-essential
git clone GitHub - cilynx/rtl88x2bu: rtl88x2bu driver updated for current kernels.
cd rtl88x2bu
VER=$(sed -n ‘s/\PACKAGE_VERSION=“(.*)”/\1/p’ dkms.conf)
sudo rsync -rvhP ./ /usr/src/rtl88x2bu-${VER}
sudo dkms add -m rtl88x2bu -v ${VER}
sudo dkms build -m rtl88x2bu -v ${VER}
sudo dkms install -m rtl88x2bu -v ${VER}
sudo modprobe 88x2bu

I don’t see anything obviously incompatible with Fedora here except you can remove apt update and use dnf instead to install things, but I don’t have the hardware to test it on. Instead of build-essential, you probably want dnf groupinstall "Development Tools".