How bravinevans/shin works
shin is a security-focused Arch package-manager helper. The main workflow dispatches CLI requests, loads repository configuration, syncs package databases, searches and ranks package sources, checks trust and conflicts, then installs binary or AUR packages. Separate command paths handle system and AUR upgrades, removal, and cache cleaning. The README documents additional behavior that is not fully visible in the excerpts; edges for those documented actions cite it. Unsampled implementation details are not inferred.
Main entry points: main.rs CLI dispatcher · install.rs Install and remove · search.rs Search and ranking · clean.rs Cache cleaning
Components 14
Command orchestration
- CLI dispatcher
src/main.rs - Config and repo setup
src/config.rs
Sources and sync
- Package sync
src/sync.rs - Search and ranking
src/search.rs - libalpm databases
- AUR RPC
Safety and install
- Trust and PKGBUILD audit
src/trust.rs - Dependency and conflict plan
src/resolve.rs - Install and remove
src/install.rs
Maintenance
- AUR upgrade flow
src/aur_upgrade.rs - Cache cleaning
src/clean.rs - Audit log
Other components
- CLI user
- pacman
Connections 24
- CLI user → CLI dispatcher: issues command
README.md - CLI dispatcher → Config and repo setup: loads settings
src/main.rs - CLI dispatcher → Package sync: requests sync
src/main.rs - CLI dispatcher → Search and ranking: requests search
src/main.rs - CLI dispatcher → Dependency and conflict plan: plans install
README.md - CLI dispatcher → Install and remove: dispatches action
src/main.rs - CLI dispatcher → AUR upgrade flow: starts AUR upgrade
src/main.rs - CLI dispatcher → Cache cleaning: starts cleaning
src/main.rs - Config and repo setup → Trust and PKGBUILD audit: bootstraps keyring
src/config.rs - Package sync → Config and repo setup: reads repo config
src/sync.rs - Package sync → pacman: runs sync
src/sync.rs - Search and ranking → libalpm databases: searches databases
README.md - Search and ranking → AUR RPC: queries packages
src/search.rs - Dependency and conflict plan → libalpm databases: checks installed state
src/resolve.rs - Dependency and conflict plan → Search and ranking: compares versions
src/resolve.rs - Install and remove → Dependency and conflict plan: accepts install plan
src/install.rs - Install and remove → Trust and PKGBUILD audit: reviews AUR build
src/install.rs - Install and remove → pacman: installs or removes
README.md - Install and remove → Audit log: records actions
src/install.rs - AUR upgrade flow → Search and ranking: checks AUR versions
src/aur_upgrade.rs - AUR upgrade flow → Install and remove: builds updates
src/aur_upgrade.rs - Cache cleaning → pacman: cleans package cache
src/clean.rs - Cache cleaning → Config and repo setup: uses home directory
src/clean.rs - Cache cleaning → Audit log: records cleaning
src/clean.rs