vpac / README.md
86 lines · 64 sloc · 3.82 KB · 6a725c0ab99bcdb7b8b4f0cbceb402de129a8440
Raw

introduction

vpac is a versatile package manager using the native V engine in alpm.v, following pacman/libalpm behavior.

features

vpac not only posses full pacman parity, but also extends on top of it:

quick start

Clone this repository, then:

./install.vsh          # asks a few questions, writes /etc/vpac.d/config.lip
v . -o vpac            # builds vpac into ./vpac
ln -sf $PWD/vpac /usr/local/bin/vpac
vpac k -w              # ranks the mirrors for your system into the config's mirror file
vpac s -r linux-lts    # search the sync databases

install.vsh also asks whether to keep vpac's database, cache, keys and hooks in pacman's directories, whether to add the distro's repo of 32-bit libraries (multilib on arch, lib32 on artix), and whether to turn alpm.v's download sandbox off. Answer no to the first only if you mean to keep vpac's state apart from pacman's: a separate database does not know the packages pacman installed.

Building needs the V compiler, v. It also needs the alpm and blip modules, which V finds under its module directory. The native alpm backend uses libarchive, libcurl, GPGME/GnuPG, libseccomp on Linux and libc. Production builds no longer require libalpm headers or library. The alpm.v differential suite deliberately keeps libalpm as an independent test reference.

The native backend switch is implemented; its complete public behavior and logging audit remains tracked in alpm.v issue #1. Changing a package's install reason preserves historical md5, sha256 and pgp validation markers in the local database. The engine's explicit legacy MD5 queries remain available; normal transactions use its current SHA256/signature policy.

Cache selection skips entries that cannot serve as writable directories and tries the next configured cache. An existing file at a cache path is preserved; it is not treated as a directory just because mkdir reports that it exists. Cache warnings are delivered through the terminal and IPC message channel.

Local metadata warnings and errors use the same message channel. Package info keeps fields parsed before a metadata load fails; transactions still reject failed loads.

Installed-package cache reads report invalid or duplicate entries and reject directory read failures rather than accepting a partial package list. Symlinked local package entries remain excluded.

Local database initialization honors the process umask and checks version-file writes. A regular file at the local database path is reported as an open error and is preserved. Initialization errors include their cause.

v test src and v test vmakepkg run the test suites.

docs

see the wiki

coming soon

state

an honest assessment of vpac's state: