- Red Hat Satellite 6
- What does include and exclude mean when filtering
Red Hat Satellite?
- In what order do the
Content filtersget processed, if adding multiple exclude rules?
- How to view content view filters in hammer?
Content View Filters
If you create a Content Views with no filters, then
Red Hat Satellite 6 assumes
This means that if you publish a
Content View with zero filters, then it gives all rpms and errata.
If you were to add an exclude filter, it will again start out with
Include everything and then restrict the packages that you have.
For example: if you add one exclude filter saying
Exclude all errata starting at April 29th,
Then errata having a release date after April 29th will not be included.
When you add an Include filter, the content view no longer assumes you want to
Include Everything and changes to only including exactly what you asked for.
If you only set an include filter to include the package
bash then only the package bash would be included.
No other packages will be available.
Include vs Exclude Packages
If you were to have an exclude filter followed by an include filter, but even though you created the Exclude filter before the Include filter,
the code logic states that it will process all include rules first and then the exclude rules, example:
NOTE : Combination of include and exclude filters (in some use cases) is known to generate wrong repo content.
|Exclude Filter by Date:
|Bash Package if date matches
NOTE : By Enabling the "Solve Dependencies" flag on a Content View
If you want to solve dependencies automatically every time you publish this Content View, select the Solve dependencies check box. Dependency solving slows the publishing time and might ignore any Content View filters you use. This can also cause errors when resolving dependencies for errata.
- Red Hat Satellite
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.