libpkg is a library provided by pkg

Goal: reorganize common functionality among pkg_* tools into a single library. Provide the pkg_* tools similarly to the way fetch/libfetch exist?

Some thoughts from WesleyShields:

  1. move the shared code of pkg_* into a library
  2. make pkg_* use said library
  3. optimize the internals of the library
  4. at this point you should have a good understanding of pkg internals and what's good and bad about them
  5. possibly re-write pkg_* and libpkg to remove the ugly parts or make them better

Related link:

Interesting design choices from OpenBSD pkg_add:


libpkg (last edited 2022-10-03T02:30:17+0000 by KubilayKocak)