![]() Exclude a Repository from Yum Update using Enabled Parameter (Method 2) You can get the exact repository name that you want to exclude by looking at the 1st column of the “yum repolist” command output. The following will exclude packages that belongs to Docker repository during yum update. You can also specify the –disablerepo option at the end after yum update. In the following example, yum update will upgrade all installed packages except any installed packages that belongs to MongoDB repository. ![]() This will not upgrade the packages that belongs to the given repository name. You can use the option –disablerepo=repository-name along with yum update. Exclude a Repository from Yum Update (Method 1) If you are new to yum command: 15 Linux Yum Command Examples – Install, Uninstall, Update Packages 2. If you don’t want to upgrade mongodb when you do “yum update”, you should exclude that during yum update as explained in the following section.Īlso, if you want to know which repository a particular package belongs to, so that you can exclude that repository from getting upgraded, use yum info command as shown below. If you already have mongodb installed on your system, and when you execute the above “yum update”, it will also upgrade mongodb packages to the latest version. When you do yum update as shown below, it will upgrade all the packages that are already installed on your system to the latest version available from all of the above repositories.
0 Comments
Leave a Reply. |