pkgfoster(1)

NAME
pkgfoster - prompt the user for an action, on each package that has no dependents

SYNOPSIS
pkgfoster

DESCRIPTION
pkgfoster is a simple script you can use to clean up orphaned packages (i.e. packages which no other package depends on). It uses prt-cache(8) by default, so remember to build the cache with prt-get cache. You can use normal prt-get, or customize prt-get flags such as --install-root (or --softdeps if supported), by passing the option --getcommand "<preferred invocation of prt-get>". Likewise you can specify a custom pkgrm command by passing the option --rmcommand "<preferred invocation of pkgrm>".

There is no need to prepend sudo or doas when specifying these alternative commands. pkgfoster called by an unprivileged user will run the first available utility (doas, sudo, or 'su -c') when a package removal is requested; all you have to do is ensure that doas or sudo is configured to allow the requested command.

List of packages to keep are stored in ${XDG_CONFIG_HOME}/pkgfoster.keep. Packages from the core collection are never considered for deletion.

AUTHORS
Jukka Heino <jukka@karsikkopuu.net>

John McQuah <jmcquah@disroot.org>

SEE ALSO
prt-cache(8), pkgrm(8)