|0.0.14||Jan 1, 2021|
|0.0.11||Jan 1, 2021|
#437 in Unix APIs
32 downloads per month
Used in relic
Package management library for the Arch Linux packaging ecosystem
This minimum rustc requirement is driven by the tracing_subscriber requirements
Collecting the research done while developing this project here.
The Arch build system (ABS) packages all the software for the Arch Linux ecosystem and consists of the following tools:
- ABS repository tree - a collection of git repositories that contain package descriptions
- PKGBUILD - a bash script in each software package directory desribing build and packaging steps
- makepkg - command line tool for building packages from package directories with PKGBUILD
- pacman - command line tool for managing Arch Linux packages
- AUR - the Arch User Repository is a repository similar to the ABS maintained by the community
- Packages - git repo for the Arch Linux
- Community - git repo for the
Each package has its own subdirectory containing
reposcontains the official arch linux repo configuration
trunkis used for latest development still being tested before being promoted to
acl acl/repos acl/repos/core-x86_64 acl/repos/core-x86_64/PKGBUILD acl/trunk acl/trunk/PKGBUILD
asp package is just a thin wrapper around the svntogit repositories.
To clone the git repository for a specific package use:
$ asp checkout <pkg-name>
To update the cloned repo run:
$ asp update; git pull
Building in a clean chroot prevents missing dependencies in packages and allows for a separation from your current system. The best way to do this is to use a container to build in.
The pacman package manager combines a simple binary package format with an easy-to-use build system. pacman internally uses the libalpm library for interacting with the package databases.
Arch Linux's package management depends on the Arch Linux Package Management (ALPM) library
libalpm for all of its automation.
- libalpm man
- pacman source about pacman source README
- Jguer/go-alpm (MIT) bindings to libalpm in Go
- derekdreery/alpm (MIT) bindings to libalpm in Rust
- pigeonhands/rust-arch (MIT) bindings to libalpm in Rust
- pigeonhands/kea (MIT) aur helper in rust
libalpm are written in C and share the same git repo.
alpm_list.h constitute the sum of all structures, data and functions declared
available to the frontend i.e. pacman.
pacman provides a facade to the library. All the library
internal functions are prefixed with
_alpm_ while the public functions are prefixed wih
alpm hooks provide the ability to specify scripts to run before or after transactions based on the packages and/or files being modified. Hooks condist of a single Action section describing the action to be run and one or more Trigger sections describing which tranactions it should run.
Hooks are read from files located in the system hook directory
additional custom directories specified in
pacman.conf which defaults to
/usr/local/share/etc/pacman.d/hooks. File names are required to have the suffix
.hook. Hooks are
run in alphabetical order of their file names.
Pull requests are always welcome. However understand that they will be evaluated purely on whether or not the change fits with my goals/ideals for the project.
Enable the git hooks to have automatic version increments
cd ~/Projects/relic git config core.hooksPath .githooks
This project is licensed under either of:
- MIT license LICENSE-MIT or http://opensource.org/licenses/MIT
- Apache License, Version 2.0 LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
- Parse PKGBUILD file
- Add cli for working with relic directly
- ffi bindings for libalpm or rewrite in rust
- pacman database access
pacman.confto locate and load local and sync databases
-Q querythe local database for provided targets
-S syncsearch the sync database for provided targets
- rank mirrors
- ABS interactions
- download, build and package
- install, update, remove packaages
- Add rust doc comments