Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
Copyright Info
Terms of Use
Privacy Info
Masthead / Impressum
Your Account

Private Messages

News Archive
Submit News
User Articles
Web Links


The Web

Who's Online
There are currently, 58 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here




       build [--clean|--no-init][--rpms path][specfile]
       build [--help]
       build [--verify]


       build  is  a  tool  to  build SuSE Linux RPMs.  build will
       install a minimal SuSE Linux as  build  system  into  some
       directory  and  will  chroot to this system to compile the

       This way you don't risk to  corrupt  your  working  system
       (due to a broken spec file for example), even if the pack­
       age does not use BuildRoot.

       build  also  handles  build  dependences,  i.e.  all  RPMs
       required  to  build  some  package  are installed into the
       build system. The extra line usedforbuild in the spec file
       is  used  for  this  to get a list of all needed RPMs, and
       this is the place where you should add RPMs you  otherwise
       would put in the BuildRequires part of the specfile.

       Dependencies  of  installed RPMs will be ignored, all RPMs
       have to be listed in the spec file in this line. It should
       also be added to the line neededforbuild allthough it's at
       the moment only used internally at SuSE.

       build expects to  find  all  files  (spec  file,  sources,
       patches) for the package to build within the current work­
       ing directory.  If  you  want  to  rebuild  (or  modify  +
       rebuild)  a package from the distribution, you should cre­
       ate some directory, change into this directory, unpack the
       source  rpm there (rpm2cpio <file> | cpio --extract), then
       run the build utility.


              remove the build system and  reinitialize  it  from

              skip the build system initialization and start with
              build immediately.

       --rpms path1:path2:path3...
              Where build can find the SuSE Linux RPMs needed  to
              create the build system.

       --arch arch1:arch2:arch3...
              What architectures to select from the RPMs.

       --help Print a short help text.
              "/media/dvd/suse" is the default value  which  will
              do  the  trick  if  you  have  the  SuSE  Linux DVD

              The rpm build stage (-ba, -bb, ...).  This is  just
              passed througth to rpm, check the rpm manpage for a
              complete  list  and  descriptions.   "-ba"  is  the
              default.   You  can use this to add more options to
              RPM. For example,

              BUILD_RPM_BUILD_STAGE="-ba --target=i686"

              will create RPMs optimized for i686 CPUs. This will
              only  work,  if  the spec file is prepared to build
              such RPMs. This is not the case for most  packages.


       rpm(1), rpm2cpio(1), cpio(1)

          (c) 1997-2003 SuSE Linux AG Nuernberg, Germany build(1)
Show your Support for the Linux Tutorial

Purchase one of the products from our new online shop. For each product you purchase, the Linux Tutorial gets a portion of the proceeds to help keep us going.



Security Code
Security Code
Type Security Code

Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!

Amazon Wish List

Did You Know?
You can help in many different ways.


Tell a Friend About Us

Bookmark and Share

Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds