0

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

rpmbuild/SOURCES
rpmbuild/SPECS

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?

2 Answers2

3

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).

Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
2

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.

Danila Ladner
  • 5,331
  • 22
  • 31