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

Is it possible to make a subpackage without the inherited prefix from the master package?

I have a project that has a single install and need to split this into multiple packages, but the subpackages seem to inherit the name from the master package in the form of "package_name-subpackage_name".

share|improve this question
up vote 7 down vote accepted

Yes. Use %package -n subpackage; this will suppress the prepending of the base package name.

This is all pretty clear in the RPM docs.

share|improve this answer
Thanks. I still have a problem though, the build still creates the top package, how do I stop this? – Let_Me_Be Apr 22 '13 at 14:52
@Let_Me_Be I don't remember offhand if you can even do that. I suggest not worrying about it; either generate the empty package and just don't install it, or (better, I think) use it to install some simple documentation about the collection of subpackages. – mattdm Apr 22 '13 at 14:59

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.