Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.