Red Hat Bugzilla – Bug 54159
[RFE] rpm doesn't have an --excludes option.
Last modified: 2008-05-01 11:38:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.78 [en] (X11; U; SunOS 5.8 sun4u)
Description of problem:
In looking at the man page for rpm, I don't see the option to exclude files
from installation. I would like to see the option say: --excludes, which
handles regexps (to include full pathnames along with just file names).
The excludes should point to a file containing the above. I'm not sure how
much regexp'ing you really want to add. The poor man's way is probably
sufficient. For example webster, you don't have to use this.*is.*a.*test
- just this*is*a*test, with ^ and $ automatically implied.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Actual Results: DNA
Expected Results: DNA
FWF, rpm already has --excludepath option. Permitting
globs is not easy, as the path is also used as a
retrieval key, and databases, unlike file systems,
don't permit wildcards.
Just would like to clarify on the man page entry... <path> can contain
a file, and with in that file can contain various paths for exclusion?
The option --excludepath takes a full absolute path to a directory
or file. You can add multiple entries if desired.
Also make sure that you are using rpm-4.0.3, as the option may have
been broken in rpm-4.0.2, I fergit.
I think this problem is resolved. Please reopen if I'm mistaken.