pkg.del
[ -r
root ]
package
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 triggersFiles 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.-r root, --root root0
on success,
1
on error.