From ArchWiki
Jump to navigation Jump to search

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

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


pacbuilder -Sbkvn $packagename


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

  pacbuilder [options] package|repository

    --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                  
  (-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
    --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