linux: true windows: true macos: false root: false title: LocalUsers summary: "Reads package information from the dpkg package manager." date: 2026-02-02 filename: users.go std_imports:
- bufio
- context
- fmt
- os
- os/user
- strings
- syscall
- unsafe imports:
- golang.org/x/sys/windows
LocalUsersModule reads package information from the dpkg package manager.
Details
This module is relevant for distros that use dpkg, like debian, ubuntu and their derivatives. It only uses the standard library.
It reads /var/log/dpkg.log and also files from /var/lib/dpkg/info/.