Bug 1306438 - rpm -l --noghost does not work
Summary: rpm -l --noghost does not work
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-10 21:08 UTC by Zbigniew Jędrzejewski-Szmek
Modified: 2016-02-19 12:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-19 12:31:18 UTC
Type: Bug


Attachments (Terms of Use)

Description Zbigniew Jędrzejewski-Szmek 2016-02-10 21:08:00 UTC
Description of problem:
rpm accepts undocumented option --noghost (mentioned on the web in a few places), but it has no effect:

$ rpm -ql systemd|grep /etc/hostname
/etc/hostname
$rpm -ql --noghost systemd|grep /etc/hostname
/etc/hostname

rpm --dump also doesn't return this information.

Version-Release number of selected component (if applicable):
rpm-4.13.0-0.rc1.7.fc23.x86_64

Expected results:
It's possible to query the contents of an rpm without installing it.

Comment 1 Ľuboš Kardoš 2016-02-11 08:44:42 UTC
Yes, it seems that "--noghost" doesn't work. For now you can use:

    rpm -q --qf "[%{filenames}\t%{fileflags:fflags}\n]" packagename

"g" means a ghost file in the output of this command.

Comment 2 Zbigniew Jędrzejewski-Szmek 2016-02-11 12:58:53 UTC
OK, thanks for the info.

Comment 3 Ľuboš Kardoš 2016-02-19 12:31:18 UTC
Fixed upstream [1]. There is an easy workaround for rpm which is in Fedora now. This fix will get into Fedora when the new rpm will be released and pushed to Fedora. If you really need this fix in the current Fedora, please reopen the bug.

[1] https://github.com/rpm-software-management/rpm/commit/efd696d32d343b82832dd9e4aee992bff8e64ad0


Note You need to log in before you can comment on or make changes to this bug.