Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a little confused with RPM package naming.

When I do:

vickey@tb:/usr/include$ rpm -qf event.h 


vickey@tb:/usr/include$ repoquery --list  libevent-devel.i686

Here in the second code box /usr/include/event.h is provided by libevent-devel.i686 but a query in the first code box shows that it belongs to the package libevent-devel-2.0.10-2.fc15.i686.

Does package manager use these aliases?

share|improve this question

migrated from stackoverflow.com Aug 8 '12 at 13:30

This question came from our site for professional and enthusiast programmers.

Forgive me if I'm simplifying things too much.

In your first example, you're are querying the local RPM database. Usually, only one version of a RPM is installed.

A repo can contain many versions of the same package. Therefore, it will display the RPM name and architecture only.

share|improve this answer
You might find the output of repoquery -f /usr/include/event.h interesting as well. – jsbillings Aug 8 '12 at 15:38

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.