VKPURGE(8)

NAME
vkpurge - remove old kernel files/modules

SYNOPSIS
vkpurge list [version]
vkpurge rm all
vkpurge rm version ...

DESCRIPTION
The vkpurge utility lists and removes removable kernel versions left behind by xbps-install(1) and xbps-remove(1). vkpurge runs the appropriate removal hooks and deletes the kernel, modules and other miscellaneous files.

vkpurge only lists or removes kernel versions that are:
•   not currently booted.
•   not provided by any installed xbps package.

The version arguments support sh(1) pattern matching.

The following commands are available:

list [version]
    List removable kernel versions. Optionally list only versions matching version.

rm all
    Remove all removable kernel versions.

rm version ...
    Remove all removable kernel versions matching version.

EXIT STATUS

EXAMPLES
The following command lists installed kernels matching a pattern.

    $ vkpurge list '4.18.*'

The following command will delete the kernel versions matching the pattern and a specified version.

    # vkpurge rm '2.6.*' 4.3.4_1

SEE ALSO
xbps-install(1), xbps-remove(1)

BUGS
There is no support for all kernels. Specific series, like rpi-kernel, are not supported yet.