Upgrade alma packages with epel

Hi, how can i upgrade packages with fedora’s epel and epel-next ?
i mean a clean “dnf upgrade”, i can’t upgrade packages to the latest version mentioned in epel, and i install gcc 12 with enabling epel but it doesn’t work and leave me with command not found error