PKG.DEL

remove an installed package

Synopsis

pkg.del [ -r root ]

package

Description

pkg.del removes an installed package from the system. The removal sequence is:
1. Read package metadata from var/lib/pkg/meta/<name>
2. Disable runit services (remove /service/<name> symlinks)
3. Remove package files (deepest first)
4. Remove groups/users no longer needed by any package
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. On group removal, pkg.del scans all remaining metadata files in

/var/lib/pkg/meta/

to check if another package still declares the same group. The group (and user, if extended format) is only removed when no other package needs it.

Options

-r root, --root root
Remove from an alternative root directory.

Exit Status

0 on success, 1 on error.

See Also

Pure LLVM musl libc Source-Based Independent