MCPcopy Index your code
hub / github.com/cybozu-go/aptutil

github.com/cybozu-go/aptutil @v1.4.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.4.2 ↗ · + Follow
154 symbols 600 edges 32 files 84 documented · 55%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

GitHub release GoDoc CircleCI Go Report Card

go-apt-cacher is a caching reverse proxy built specially for Debian (APT) repositories.
This repository also contains a mirroring utility go-apt-mirror.

Blog: Introducing go-apt-cacher and go-apt-mirror

Status

This project is currently in maintenance mode and is not expected to receive feature updates. Bugfixes and such will still be performed if needed.

Features

go-apt-cacher

  • Checksum awareness
    go-apt-cacher recognizes APT indices and checks downloaded files automatically.
  • Reverse proxy for http and https repositories
  • LRU-based cache eviction
  • Smart caching strategy specialized for APT

go-apt-mirror

  • Atomic update of mirrors
    Clients will never see incomplete/inconsistent mirrors.
  • Checksum validation of mirrored files
  • Ultra fast update compared to rsync
  • Parallel download
  • Partial mirror

Install

Pre-built binaries are available on releases.

Unpack one and follow usage instructions.

Usage

Deploy

Both go-apt-cacher and go-apt-mirror can be deployed via the jacksgt/aptutil Docker Image. For more information head over to the source repository.

Build

Use an officially supported version of Go.

Run the command below exactly as shown, including the ellipsis. They are significant - see go help packages.

go get -u github.com/cybozu-go/aptutil/...

License

MIT

Authors & Contributors

Core symbols most depended-on inside this repo

Path
called by 21
apt/fileinfo.go
Same
called by 19
apt/fileinfo.go
Lock
called by 17
mirror/flock.go
Unlock
called by 17
mirror/flock.go
IsMeta
called by 17
apt/meta.go
Open
called by 15
mirror/storage.go
Lookup
called by 14
cacher/storage.go
MatchingIndex
called by 12
mirror/config.go

Shape

Function 73
Method 64
Struct 15
TypeAlias 2

Languages

Go100%

Modules by API surface

mirror/mirror.go20 symbols
cacher/storage.go18 symbols
apt/fileinfo.go15 symbols
mirror/config.go11 symbols
cacher/cacher.go11 symbols
mirror/storage.go10 symbols
apt/meta.go9 symbols
cacher/storage_test.go8 symbols
apt/meta_test.go8 symbols
apt/fileinfo_test.go6 symbols
mirror/storage_test.go5 symbols
apt/parser.go4 symbols

For agents

$ claude mcp add aptutil \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page