LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell 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: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
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: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 01:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration