2/15/2024 0 Comments Yum list installed![]() mongodb-org-3.0 is a 3rd party repository that contains MongoDB related packages.dockerrepo is a 3rd party repository that contains Docker container related packages.The first three repositories listed above are the main CentOS repositories: base, extras and updates.In the above example, we have the following: To view all the available repositories on your system, execute yum repolist as shown below. How can I exclude a specific repository during yum update?Ī: During yum update, to exclude packages that belongs to a specific repository, use any one of the two methods explained in this tutorial.Īlso, keep in mind that instead of excluding a whole repository, you can also exclude a specific package: 10 Yum Exclude Examples to Skip Packages for Linux Yum Update (How to Yum Exclude Kernel Updates) 1. When I execute yum update command, installed packages from all the repositories are updated. For example, centos, epel, docker, mongo, etc. Var: installed_pkg.Q: I have multiple yum repositories on my system. You should be able to make a combined list of all of them using list concatenation and two yum tasks: - yum: We can also confirm this by Ansible code source, where the list value is considered in an if. The list parameter is a string, not a list, as pointed by the documentation, so, if you pass something else than the reserved words - installed, updates, available or repos - it will be considered as a packaged and will probably return your nothing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |