Linux command
lb 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Initialize live build
lb config
Build live image
lb build
Clean build directory
lb clean
Configure with options
lb config --distribution [bookworm] --archive-areas "main contrib"
Build a specific image type
lb config --binary-images [iso-hybrid]
Clean including cache
lb clean --cache
说明
lb (live-build) creates Debian live system images. It builds bootable ISO, netboot, and HDD images. The tool supports customization of packages, configs, and hooks. It's the standard tool for Debian live images. By default, `lb clean` removes chroot, binary, and source stages but preserves the cache.
参数
- config
- Initialize configuration.
- build
- Build live image.
- clean
- Clean build artifacts.
- --distribution _NAME_
- Target distribution.
- --archive-areas _AREAS_
- Repository areas (e.g. "main contrib non-free").
- --binary-images _TYPE_
- Image type: iso, iso-hybrid, netboot, tar, hdd.
- --architecture _ARCH_
- Target architecture (defaults to host architecture).
- --bootappend-live _PARAMS_
- Boot parameters for live system.
- --cache
- Clean cache directories (not cleaned by default).
- --force
- Force helper execution, even if stage file exists.
- --quiet
- Suppress output messages.
- --verbose
- Show detailed output.
- --help
- Display help information.
FAQ
What is the lb command used for?
lb (live-build) creates Debian live system images. It builds bootable ISO, netboot, and HDD images. The tool supports customization of packages, configs, and hooks. It's the standard tool for Debian live images. By default, `lb clean` removes chroot, binary, and source stages but preserves the cache.
How do I run a basic lb example?
Run `lb config` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does config do in lb?
Initialize configuration.