-9

I want to time how long it takes to compile the latest version of Red Hat Enterprise Linux 6. I have downloaded the SRPMs from the Red Hat's FTP server.

How do I time how long it takes to compile all of the packages?

Aaron Copley
  • 12,954

2 Answers2

5

I'm not going to blow up my workstation for days on end by testing this, but given a directory of SRPMS I don't see why this wouldn't work:

time (for RPM in $(ls *.srpm); do rpmbuild --rebuild $RPM; done)

Aaron Copley
  • 12,954
4

Create a build environment and and set up a long chain of rpmbuild --rebuild packagename.srpm commands...

But the better* approach is to simply go to CentOS.org. Download the ISO images for the current release from a local mirror server.

*Assuming you're not modifying any packages.

ewwhite
  • 201,205