There can often be confusion when you're first starting out with either a Debian based distro such as Debian, Ubuntu, or Linux Mint vs. the Red Hat based distros of Fedora, CentOS or RHEL.
There are 4 pieces of software that are responsible for doing the management of package installation and removal. They are as follows:
For Debian based distros:
For Red Hat based distros:
They all do very similar things for their respective platforms. For starters,
dpkg do almost identical things. They're the low level tools that actually do the heavy lifting of installing software and tracking where it was installed. For the sake of simplicity I won't discuss them further.
APT vs. YUM
These 2 tools do exactly the same things as well. They work at a higher level than
rpm by facilitating the identifying of dependencies when you tell them to install package X. They also know how to go about getting the RPMs that a given package is comprised of, knowing what mirrors on the internet to go source these items from.
Can't I use APT as a YUM replacement?
You can. But APT isn't some magical translation layer that lets you find directions for installing software as described on some blog post, it's still beholden to installing the RPM packages by the names that they would show up with, in the YUM world.
So I would strongly encourage you to abandon this approach and simply stick with using YUM on Red Hat based distros.