peru
« Back to VersTracker
Description:
Dependency retriever for version control and archives
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: dependency-management version-control build-tools automation reproducibility
Install: brew install peru
About:
Peru is a command-line tool for fetching and managing external source code dependencies from version control systems and archives. It automates the process of retrieving specific commits, tags, or branches, and places them into a controlled directory structure. This provides a reproducible way to manage dependencies without requiring a full package manager.
Key Features:
  • Supports Git, Mercurial, SVN, and archive downloads (zip, tar)
  • Declarative configuration using simple YAML files
  • Caches downloads locally to avoid redundant network requests
  • Integrates easily with existing build systems and Makefiles
  • Manages specific commits and tags for reproducible builds
Use Cases:
  • Managing C/C++ library dependencies in a Makefile-based project
  • Vendoring third-party code into a repository without submodules
  • Reproducibly fetching assets or source code for embedded development
Alternatives:
  • git submodules – Peru is tool-agnostic and works with non-Git sources, whereas submodules are Git-specific and can be complex to manage.
  • Git subtree – Peru keeps dependencies separate from the main project history, preventing repository bloat.
  • Nix – Peru is a lightweight, focused tool for dependency retrieval, while Nix is a comprehensive functional package manager.
Version History
Detected Version Rev Change Commit
Dec 26, 2024 11:05pm 0 VERSION_BUMP 049d308c
Oct 13, 2024 5:38am 0 VERSION_BUMP 7a277715
Sep 18, 2024 1:07am 0 VERSION_BUMP bcedefd2