Server Fault is a question and answer site for system and network administrators. 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

When I perfrom rpm -ba /usr/src/redhat/SPECS/my_spec.spec the output does not include the Wrote: /root/rpmbuild/SRPMS/

/usr/src/redhat/RPMS does not show the

 [root@linux /usr/src/redhat/SOURCES]#  rpm -ba   /usr/src/redhat/SPECS/my_spec.spec
 Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/
 Wrote: /root/rpmbuild/SRPMS/

Spec file

Summary: An example tool. To show a simple rpm build of the tool.
Version: 6.2
Release: 2
Group: Development/Debuggers
License: OtherLicense
share|improve this question

rpmbuild will not create a RPM that contains no files. Did you forget the %files section?

share|improve this answer
please advice how to add this to the spec file , did I need also to add the file path , and how to the spec file? – yael Apr 13 '11 at 4:06
If the tutorial you're using doesn't cover this then it's time to find a new tutorial. – Ignacio Vazquez-Abrams Apr 13 '11 at 4:19

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.