Linux command
asp 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Clone a package from the Arch repositories
asp checkout [package]
Update all checked out packages
asp update
Export PKGBUILD files without full checkout
asp export [package]
List repositories
asp list-repos [package]
Show
asp show [package]
View revision history
asp log [package]
List all locally tracked
asp list-local
说明
asp (Arch Build Source Management Tool) manages version-controlled sources for the build scripts used to create Arch Linux packages. It provides a thin wrapper over the svntogit repositories and serves as a replacement for the older abs tool. Unlike downloading PKGBUILDs manually, asp uses a Git-based backend with sparse checkouts, enabling tracking changes, viewing commit history, and updating individual packages efficiently. Common uses include: examining how official packages are built, modifying packages with custom options, backporting patches, and learning PKGBUILD best practices from official examples.
参数
- checkout _package_
- Create a git repository with full source and history for the given package.
- export _package_
- Dump build source files into a directory named after the package in the current directory.
- update _packages_
- Track new packages or refresh existing ones from remote.
- show _package_ _file_
- Display PKGBUILD content, or a specific file if given.
- log _package_
- Show revision history for a package.
- difflog _package_
- Show revision history with file diffs.
- shortlog _package_
- Show condensed revision history.
- list-repos _package_
- List repositories containing the given package.
- list-arches _package_
- List architectures available for the given package.
- list-all
- List all available packages.
- list-local
- List all locally tracked packages.
- ls-files _package_
- List source files for the given package.
- untrack _package_
- Remove remote tracking branch from local repository.
- disk-usage
- Report approximate disk usage for locally tracked packages.
- gc
- Perform housekeeping to optimize and compact the local repo.
- set-git-protocol _protocol_
- Set communication protocol (git, http, or https).
- -a _arch_
- Use a non-default architecture.
- -h
- Display help text.
- -V
- Show version information.
FAQ
What is the asp command used for?
asp (Arch Build Source Management Tool) manages version-controlled sources for the build scripts used to create Arch Linux packages. It provides a thin wrapper over the svntogit repositories and serves as a replacement for the older abs tool. Unlike downloading PKGBUILDs manually, asp uses a Git-based backend with sparse checkouts, enabling tracking changes, viewing commit history, and updating individual packages efficiently. Common uses include: examining how official packages are built, modifying packages with custom options, backporting patches, and learning PKGBUILD best practices from official examples.
How do I run a basic asp example?
Run `asp checkout [package]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does checkout _package_ do in asp?
Create a git repository with full source and history for the given package.