Linux command
devtools 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Build a package in a clean chroot
extra-x86_64-build
Build testing package
testing-x86_64-build
Build staging package
staging-x86_64-build
Create a clean chroot
mkarchroot [/path/to/chroot/root] base-devel
Update packages in chroot
arch-nspawn [/path/to/chroot/root] pacman -Syu
Run command in chroot
arch-nspawn [/path/to/chroot/root] [command]
Sign a package
signpkg [package.pkg.tar.zst]
说明
devtools is a collection of tools used by Arch Linux developers and Trusted Users to build packages in clean chroot environments. It comes with a unified command-line frontend called pkgctl that aids to conveniently interact with all the different tools this collection provides. The build scripts (extra-x86_64-build, etc.) create isolated chroots matching official repository states, build packages, and verify the results. This guarantees packages work on fresh Arch installations. Additional tools help with package maintenance: finding dependencies, comparing versions, signing packages, and managing chroots.
FAQ
What is the devtools command used for?
devtools is a collection of tools used by Arch Linux developers and Trusted Users to build packages in clean chroot environments. It comes with a unified command-line frontend called pkgctl that aids to conveniently interact with all the different tools this collection provides. The build scripts (extra-x86_64-build, etc.) create isolated chroots matching official repository states, build packages, and verify the results. This guarantees packages work on fresh Arch installations. Additional tools help with package maintenance: finding dependencies, comparing versions, signing packages, and managing chroots.
How do I run a basic devtools example?
Run `extra-x86_64-build` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
Where can I find more devtools examples?
This page includes 7 examples for devtools, plus related commands for nearby Linux tasks.