Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

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?

share|improve this question

closed as off topic by Iain Apr 6 '12 at 17:15

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

Having read the comments below I see no relation to the scope of serverfault. Please read our faq. – Iain Apr 6 '12 at 17:16

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)

share|improve this answer
ls *.rpm might exceed max. length of the input. I'd suggest time find $BASEDIR -type f -name '*.srpm' -exec rpmbuild --rebuild {} \; – Server Horror May 15 '14 at 20:25
Good point. Thank you. – Aaron Copley May 16 '14 at 16:33

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 Download the ISO images for the current release from a local mirror server.

*Assuming you're not modifying any packages.

share|improve this answer
There's no reason to compile your own version of the operating system. CentOS is available in pre-compiled form. The build process involved with compiling the entire OS is involved and requires a lot of space and CPU time to accomplish. Why would you want to do this? – ewwhite Apr 6 '12 at 15:27
If you're looking to test CPU utilization on a machine or generate an artificial load, download the stress utility as detailed here: – ewwhite Apr 6 '12 at 15:30
@PeterPenzov For future reference, your question is how to generate CPU load on a system, not how to compile Red Hat from source. You'll get to the easiest solution the quickest if you just stick to the original problem. – Aaron Copley Apr 6 '12 at 15:44
He is focusing on the question, specifically, trying to figure out why you'd want to do this. Don't be rude. – ceejayoz Apr 6 '12 at 16:09
@PeterPenzov You're not providing us the full details. We're trying to focus on your question, but it feels like a moving target at the moment. You should edit your original question posting to provide as much detail as you can. – Jeff Ferland Apr 6 '12 at 16:10

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