信息:
You can specify any available version of MongoDB. However yum will upgrade the packages when a newer version becomes available. To prevent unintended upgrades, pin the package. To pin a package, add the following exclude directive to your /etc/yum.conf file:

exclude=mongodb-org,mongodb-org-server,mongodb-org-shell,mongodb-org-mongos,mongodb-org-tools

————————————
在/etc/yum.conf文件中加入【exclude】并跟上软件包的名字,可以在以下软件包出现更新版本的时候忽略更新,… 以防止意外的、非计划的、无意识的级联升级或者升级。

—————————————
Done。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装