Bug 465229

Summary: RFE: detect duplicate files
Product: [Fedora] Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
Component: rpmlintAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9CC: manuel.wolfshant, tmz, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-02 19:25:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dominik 'Rathann' Mierzejewski 2008-10-02 10:17:50 UTC
Description of problem:
rpmlint doesn't detect duplicate files if given a directory of RPMs to check.

Version-Release number of selected component (if applicable):
rpmlint-0.84-2.fc9

In short, if something like
$ rpm -qlp *rpm | sort | uniq -d
produces any output, then rpmlint should treat is as an error.

Comment 1 Ville Skyttä 2008-10-02 19:25:27 UTC
The unit of work of rpmlint is a single package (apart from some very specific exceptions with installed packages) and I'm not aware of any efforts to change that.

Also, I think that implementing this RFE as suggested would not be too useful - the vast majority of cases it'd flag would be non-issues, for example "duplicate" files in same package for different arches, or same package but different EVR, or otherwise files intentionally owned by multiple packages.  And if implemented anyway, I think a warning instead of an error would be more appropriate.

If you disagree, I suggest opening a RFE at rpmlint.zarb.org to see if some other upstream rpmlint maintainers are more receptive to the idea.