rpm -ba unknown option

i am trying to build a simple rpm pacakage.
i am trying this example from this link
Creating the Spec File

i created rpm folder in my home directory of rpmbuild account.
in that i have sub folders BUILD,RPMS, SRPMS,SPECS ....

in SPECS folder i have a cdplayer spec file named cdplayer-1.0.spec
when i run rpm -ba cdplayer-1.0.spec
i get -ba unknown option

i am using 4.4.2.3 version of rpm
why i am unable to build pls help ???

I believe "rpm -ba" was replaced with "rpmbuild"

1 Like