LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2010, 11:36 PM   #1
the_gripmaster
Member
 
Registered: Jul 2004
Location: VIC, Australia
Distribution: RHEL, CentOS, Ubuntu Server, Ubuntu
Posts: 364

Rep: Reputation: 38
32 bit and 64 bit RPM development


I am having to use two separate workstations for building 32 bit and 64 bit RPMs: 32 bit RPMs on a workstation running 32 bit RHEL and 64 bit RPMs on a workstation running 64 bit RHEL.

Is it possible to build both 32 bit and 64 bit RPMs on the workstation running 64 bit RHEL? If so, how?
 
Old 05-24-2010, 11:52 PM   #2
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 38 x86_64
Posts: 539

Rep: Reputation: 59
Quote:
Originally Posted by the_gripmaster View Post
I am having to use two separate workstations for building 32 bit and 64 bit RPMs: 32 bit RPMs on a workstation running 32 bit RHEL and 64 bit RPMs on a workstation running 64 bit RHEL.

Is it possible to build both 32 bit and 64 bit RPMs on the workstation running 64 bit RHEL? If so, how?
I build both using Fedora 12 x86_64.
The way to do it is to use mock. You need to have both rpmbuild and mock installed.

If I have an srpm (say, fred.src.rpm), I would build an i386 version using...

mock -f fedora-12-i386 rebuild ~/rpmbuild/SRPMS/fred.src.rpm

This assumes that the rpmbuild dir is /home/YOU/rpmbuild.
I could change the 12 to 11, or 10 to build for a different Fedora release, or also build for RHEL.

Have a read up on rpmbuild and mock.
Quite simple to use. The first time you do this it will take a long time while it downloads and assembles a 'virtual' machine, but subsequent builds will be much quicker.
Note also that building with mock is a bit more robust that a normal build, and the resulting rpm can be guaranteed to install OK.

Hope this helps.

Cheers,
Terry
 
  


Reply

Tags
rpm



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
64 bit cpu-64 bit Ubuntu-are there 32 bit app issues? sofasurfer Ubuntu 7 04-09-2014 02:02 PM
LXer: Ubuntu 32-bit, 32-bit PAE, 64-bit Benchmarks LXer Syndicated Linux News 0 12-30-2009 11:00 AM
32-bit SW development in C/C++ on 64-bit Linux toback Linux - Software 4 01-05-2007 05:59 AM
32 bit or 64 bit install - is 32 bit easier for a newbie? dms05 Linux - Newbie 3 05-19-2006 03:05 PM
64 bit vs. 32 bit libs and rpm hcastro Linux - Software 0 06-17-2005 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration