Can't install mongodb-enterprise. Error: nothing provides libsasl2.so.2()(64bit)
As i saw in your statement , you are going to install MongoDB Enterprise in Fedora 25. As you said already run

sudo yum install -y mongodb-enterprise


First i would like to say about Red Hat Enterprise Linux (RHEL) &amp; Fedora.

Red Hat Enterprise Linux (RHEL) is a product of Red Hat and is purchased from Red Hat and includes a support contact with Red Hat that you renew every year.

Fedora was created by Red Hat as a community-based open source project that would always have the latest versions as well as trying out new ideas. Items that do well in Fedora can make it into RHEL at a later time.

I am sure about that you are doing mistake here. Even as per MongoDB Fedora documentation in place of 

sudo yum install -y mongodb-enterprise // for Red Hat installation


you have to run Here

dnf install mongodb-org mongodb-org-server // for Fedora installation


what is dnf?


  DNF by default uses the global configuration file at /etc/dnf/dnf.conf
  and all *.repo files found under /etc/yum.repos.d. The latter is
  typically used for repository configuration and takes precedence over
  global configuration.


The steps to install MongoDB on Fedora is pretty simple.

First, login to the server as root user.

Then, we should add the repository to download the package. Open a new repo file mongodb.repo using below command.

For 64-bit system

[mongodb]

name=MongoDB Repository

baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64/

gpgcheck=0

enabled=1


Then exit and save the file with the command :wq

Then installing MongoDB is now one command away

dnf install mongodb-org mongodb-org-server

When rompted with Y / n, enter yes or y to download and install the package. 

Once installed Start-Up MongoDB

[root@fedora]#systemctl start mongod


For further your ref Here and Here