Linux command
makepkg 命令
文本
Copy it and replace filenames, paths, or keywords as needed.
命令示例
Build
makepkg
Example
makepkg --syncdeps
Example
makepkg -si
Example
makepkg --skipchecksums
Clean
makepkg --clean
Verify
makepkg --verifysource
Example
makepkg --printsrcinfo > .SRCINFO
Example
makepkg -so
说明
makepkg creates Arch Linux packages from PKGBUILD files. It downloads sources, verifies checksums, compiles the software, and creates an installable package for pacman.
参数
- -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
FAQ
What is the makepkg command used for?
makepkg creates Arch Linux packages from PKGBUILD files. It downloads sources, verifies checksums, compiles the software, and creates an installable package for pacman.
How do I run a basic makepkg example?
Run `makepkg` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s, --syncdeps do in makepkg?
Install missing dependencies with pacman