Hide Forgot
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.
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.
OK, thanks for the info.
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