From Fedora Project Wiki
(restructure a bit)
(add motivation, mention draft status)
Line 1: Line 1:
[[Category:PackagingDrafts]]
[[Category:PackagingDrafts]]


{{Draft}}
== Motivation ==
Current usage of alternatives is inconsistent, and rpm -qf /some/file will often say the file is unowned, even if it's been created by some package, which is especially misleading and annoying in case of binaries.


== Using %ghost ==
== Using %ghost ==
Line 11: Line 15:
Pros:
Pros:
* allows globs and generated file lists
* allows globs and generated file lists
* rpm -qf /usr/bin/foo works
* yum install /usr/bin/foo works


Cons:
Cons:

Revision as of 18:11, 17 February 2009


Warning.png
This page is a draft only
It is still under construction and content may change. Do not rely on the information on this page.

Motivation

Current usage of alternatives is inconsistent, and rpm -qf /some/file will often say the file is unowned, even if it's been created by some package, which is especially misleading and annoying in case of binaries.

Using %ghost

%files
...
%ghost %{_bindir}/foo

Pros:

  • allows globs and generated file lists
  • rpm -qf /usr/bin/foo works
  • yum install /usr/bin/foo works

Cons:

  • duplicates in %files are forbidden by FPG.

Using Provides:

Provides: %{_bindir}/foo

Pros:

  • rpm -qf /usr/bin/foo works
  • yum install /usr/bin/foo works
  • repoquery --whatprovides /usr/bin/foo works

Cons:

  • unwieldy with lots of alternativized files