LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

makepkg

creates Arch Linux packages from PKGBUILD files

TLDR

Build package
$ makepkg
copy
Build and install dependencies
$ makepkg --syncdeps
copy
Build, install deps, and install package
$ makepkg -si
copy
Build skipping checksums
$ makepkg --skipchecksums
copy
Clean after build
$ makepkg --clean
copy
Verify source checksums
$ makepkg --verifysource
copy
Generate .SRCINFO
$ makepkg --printsrcinfo > .SRCINFO
copy
Download source and deps only
$ makepkg -so
copy

SYNOPSIS

makepkg [options]

DESCRIPTION

makepkg creates Arch Linux packages from PKGBUILD files. It downloads sources, verifies checksums, compiles the software, and creates an installable package for pacman.

PARAMETERS

-s, --syncdeps

Install missing dependencies with pacman
-i, --install
Install package after building
-c, --clean
Clean up work files after build
-f, --force
Overwrite existing package
--skipchecksums
Skip source checksum verification
--verifysource
Verify source file checksums
--printsrcinfo
Print .SRCINFO to stdout
--nobuild
Download sources but don't build
--noextract
Don't extract sources
-r, --rmdeps
Remove installed dependencies after a successful build
-g, --geninteg
Generate integrity checks for source files
-p buildscript
Read package script instead of PKGBUILD
--nocheck
Do not run the check() function in the PKGBUILD
--sign
Sign the resulting package with gpg
--holdver
Do not update VCS sources

CAVEATS

Must be run from directory containing PKGBUILD. Never run as root. Dependencies require pacman access.

SEE ALSO

pacman(8), yay(1), paru(1)

Copied to clipboard
Kai