delpkg

remove an installed package

Synopsis

delpkg [ -r root ]

package

Description

delpkg removes an installed package from the system. The removal sequence is:
1. Read package metadata from var/lib/pkg/meta/<n>
2. Disable runit services (remove /service/<n> symlinks)
3. Remove package files (deepest first)
4. Remove groups and users no longer needed
5. Update package database
6. Run ldconfig and triggers
Files owned by another installed package are not removed. Directories shared with other packages are not removed. Groups and users are only removed when no other installed package declares them.

Options

-r root
Remove from an alternative root directory.

Exit Status

0 on success, 1 on error.

See Also

addpkg(8), infopkg(8)

LLVM musl libc libressl Independent