Difference between revisions of "Pacbuilder"

From ArchWiki
Jump to: navigation, search
(12 intermediate revisions by 9 users not shown)
Line 1: Line 1:
Pacbuilder
+
[[Category:Package development]]
 +
[[Category:Package management]]
 +
[[zh-CN:Pacbuilder]]
 +
{{stub}}
 +
[http://code.google.com/p/pacbuilder/ Pacbuilder] is a small but powerful script to automatically recompile the whole system, repos or just a single package (with or without its dependencies). This is quite useful once you have edited /etc/makepkg.conf with some customized CFLAGS.
 +
 
 +
See [[Makepkg#Architecture.2C_compile_flags|Makepkg - Architecture, compile flags]] for more about specifying CFLAGS.
 +
 
 +
To see actual CFLAGS and CXXFLAGS run:
 +
pacbuilder --gccinfo
  
Come on chaps .... I would like to start this, but I don't know enough :D I have compiled one package, but would like to know some of the finer details
 
  
 
Most used command:
 
Most used command:
------------------------------------------------------------------------------
+
pacbuilder --builddeps --keepdeps --verbose --noconfirm --install $packagename
pacbuilder --builddeps --keepdeps --verbose --noconfirm -- install packagename
+
------------------------------------------------------------------------------
+
 
or
 
or
-----------------------------
+
pacbuilder -Sbkvn $packagename
pacbuilder -Sbkvn packagename
+
-----------------------------
+
  
HELP:
+
=== Help ===
 
+
$ pacbuilder -h
[home@home ~]$ pacbuilder -h
+
-------------------------------  
-------------------------------  
+
  PacBuilder, by Andrea Cimitan                                                                                     
PacBuilder, by Andrea                   Cimitan                                                                                     
+
-------------------------------                                                                                   
-------------------------------                                                                                   
+
 
                                                                                                                    
 
                                                                                                                    
A tool to massively recompile packages from sources                                                               
+
A tool to massively recompile packages from sources                                                               
It currently fetches both ABS and AUR                                                                             
+
It currently fetches both ABS and AUR                                                                             
 
+
USAGE:
+
USAGE:
  pacbuilder [options] package|repository
+
  pacbuilder [options] package|repository
 
+
OPTIONS:
+
OPTIONS:
  General:
+
  General:
    --help                  print this help
+
    --help                  print this help
    --clean                remove previous log
+
    --clean                remove previous log
    --gccinfo              print current compilation flags
+
    --gccinfo              print current compilation flags
    --nocolor              do not use any color           
+
    --nocolor              do not use any color           
    --notitle              do not print the title         
+
    --notitle              do not print the title         
    --noresume              do not resume                   
+
    --noresume              do not resume                   
  Install:                                                 
+
  Install:                                                 
  (-S),    --install        build specified packages
+
  (-S),    --install        build specified packages
  (-S) -b, --builddeps      build and install the dependencies
+
  (-S) -b, --builddeps      build and install the dependencies
  (-S) -e, --edit          be verbose and edit PKGBUILD
+
  (-S) -e, --edit          be verbose and edit PKGBUILD
  (-S) -f, --force          force install, overwrite conflicting files
+
  (-S) -f, --force          force install, overwrite conflicting files
  (-S) -k, --keepdeps      keep makedepends after install
+
  (-S) -k, --keepdeps      keep makedepends after install
  (-S) -s, --search <regex> search for packages matching <regex>
+
  (-S) -s, --search <regex> search for packages matching <regex>
  (-S) -u, --sysupgrade    build the updated packages
+
  (-S) -u, --sysupgrade    build the updated packages
  (-S) -v, --verbose        print makepkg output
+
  (-S) -v, --verbose        print makepkg output
  Additional parameters:
+
  Additional parameters:
    -p, --pretend          print the final list of packages to be installed
+
    -p, --pretend          print the final list of packages to be installed
    -n, --noconfirm        do not ask for any confirmation
+
    -n, --noconfirm        do not ask for any confirmation
    -m, --match <regex>    only install packages matching <regex>
+
    -m, --match <regex>    only install packages matching <regex>
    -d, --deplist          recursively list all dependencies first
+
    -d, --deplist          recursively list all dependencies first
        --export <dir>      copy packages into a dir after build
+
        --export <dir>      copy packages into a dir after build
  Type:
+
  Type:
    --world                recompile both deps and explicit
+
    --world                recompile both deps and explicit
    --explicit              recompile explicitely installed packages
+
    --explicit              recompile explicitely installed packages
    --devel                recompile only installated devel packages
+
    --devel                recompile only installated devel packages
  Target repository:
+
  Target repository:
    --core                  recompile packages in core
+
    --core                  recompile packages in core
    --extra                recompile packages in extra
+
    --extra                recompile packages in extra
    --testing              recompile packages in testing
+
    --testing              recompile packages in testing
    --community            recompile packages in community
+
    --community            recompile packages in community
    --aur                  recompile packages in aur
+
    --aur                  recompile packages in aur

Revision as of 13:01, 13 June 2012

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Pacbuilder#)

Pacbuilder is a small but powerful script to automatically recompile the whole system, repos or just a single package (with or without its dependencies). This is quite useful once you have edited /etc/makepkg.conf with some customized CFLAGS.

See Makepkg - Architecture, compile flags for more about specifying CFLAGS.

To see actual CFLAGS and CXXFLAGS run:

pacbuilder --gccinfo


Most used command:

pacbuilder --builddeps --keepdeps --verbose --noconfirm --install $packagename

or

pacbuilder -Sbkvn $packagename

Help

$ pacbuilder -h
------------------------------- 
 PacBuilder, by Andrea Cimitan                                                                                    
-------------------------------                                                                                   
                                                                                                                 
A tool to massively recompile packages from sources                                                               
It currently fetches both ABS and AUR                                                                             

USAGE:
  pacbuilder [options] package|repository

OPTIONS:
  General:
    --help                  print this help
    --clean                 remove previous log
    --gccinfo               print current compilation flags
    --nocolor               do not use any color           
    --notitle               do not print the title         
    --noresume              do not resume                  
  Install:                                                 
  (-S),    --install        build specified packages
  (-S) -b, --builddeps      build and install the dependencies
  (-S) -e, --edit           be verbose and edit PKGBUILD
  (-S) -f, --force          force install, overwrite conflicting files
  (-S) -k, --keepdeps       keep makedepends after install
  (-S) -s, --search <regex> search for packages matching <regex>
  (-S) -u, --sysupgrade     build the updated packages
  (-S) -v, --verbose        print makepkg output
  Additional parameters:
    -p, --pretend           print the final list of packages to be installed
    -n, --noconfirm         do not ask for any confirmation
    -m, --match <regex>     only install packages matching <regex>
    -d, --deplist           recursively list all dependencies first
        --export <dir>      copy packages into a dir after build
  Type:
    --world                 recompile both deps and explicit
    --explicit              recompile explicitely installed packages
    --devel                 recompile only installated devel packages
  Target repository:
    --core                  recompile packages in core
    --extra                 recompile packages in extra
    --testing               recompile packages in testing
    --community             recompile packages in community
    --aur                   recompile packages in aur