LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-22-2005, 03:23 PM   #1
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
Build RPM packages in chrooted system


Hi,

I've read some topics about "y2pmbuild" and "build" to create SuSE RPM packages in a chroot. I haven't found any clear tutorial on this (the pages at opensuse.org don't explain which commands to type.. ).

How can I create a chroot with the minimal set of required packages?
 
Old 10-24-2005, 11:47 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I usually build rpm's as an unpriv user. If you think that's enough read IBM developerWorks, Packaging software with RPM, Part 2: Building without root, patching software, and distributing RPMs. Or are there specific requirements why you need a chroot env for building rpm's?
 
Old 10-24-2005, 01:04 PM   #3
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Original Poster
Rep: Reputation: 30
Yes, I have upgraded KDE at my system, but need want to compile my application with a clean system (or it will crash at other systems). I also want to use a chroot so I can compile for other SuSE versions at the same system.

Last edited by yapp; 10-24-2005 at 01:05 PM.
 
Old 10-24-2005, 08:51 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
want to compile my application with a clean system (or it will crash at other systems). I also want to use a chroot so I can compile for other SuSE versions at the same system.
Well, then install GPG and the y2pmsh rpm and head over to the SUSE Build Tutorial.


the pages at opensuse.org don't explain which commands to type
At the bottom of the SUSE Build Tutorial are some links to good tutorials about building rpm's and you should read them even if y2pmbuild is a wrapper for most of the commands.

Last edited by unSpawn; 10-24-2005 at 09:02 PM.
 
  


Reply



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
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 09:15 AM
How can I install packages after Linux build? ajcrm125 Linux - Software 1 04-01-2004 10:29 AM
RPM 'failed dependencies': Why can I not install any rpm packages? leontini Linux - Newbie 7 09-16-2003 12:44 AM
How do I get a current list of RPM packages installed on my system? needamiracle Linux - General 1 12-06-2002 05:38 PM
creating packages (.tgz/.deb/.rpm) How from the source packages? l_9_l Linux - General 1 03-06-2002 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:15 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