I have a fresh new RHEL 6.3. I cannot access internet and because of this I cannot use yum. I would like to use the RPMs I get from the Red Hat package (2 discs full or RPMS).

These are all files .src.rpm. Once I issue a call to

rpm -vv -Uvh package.src.rpm

I can see the 2 folders


According to this I should expect also folders BUILDS, RPMS, etc.. and I should be able to call rpmbuild on the spec file.

I don't have a rpmbuild tool installed and I don't have the other folders mentioned in the URL.

Am I using the right rpm command or do I need some other tool?


Before you continue, it would be a good idea to fix your Internet connectivity issues.

Anyway, rpmbuild is provided by the rpm-build package. Install that RPM (and any of its dependencies).

  • Oh dear.I didn't get it..I can install rpm-build if I don't have rpmbuild iteself? – Abruzzo Forte e Gentile May 7 '13 at 18:05
  • Connect to the internet or use your RHEL DVD. – Michael Hampton May 7 '13 at 18:08

Well you need rpm-build package for rpmbuild. Without it installing src rpm will only create SOURCES and SPECS where it will put .tgz source archive in SOURCES folder and SPEC file into /SPECS. All other folders are created temporarily BUILD, BUILDROOT and apparently RPM is not there as you need to build it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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