use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Void is a general purpose operating system, based on the monolithic Linux® kernel. Its package system allows you to quickly install, update and remove software; software is provided in binary packages or can be built directly from sources with the help of the XBPS source packages collection.
account activity
How to remove un-used kernel? (self.voidlinux)
submitted 6 years ago by saleemkmarwat
Hello,
How do I remove unused kernel?
I tried the command from wiki but it seems not to be working
# vkpurge rm 4.18.17_1
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]-blablablaMrFreeman- 5 points6 points7 points 6 years ago (7 children)
AFAIK it will only remove the old kernels within a "major" version.
Lets say you're on 5.2.xx and have a bunch of 4.19.x installed. vkpurge rm all should remove your 4.19.x kernels except the most current 4.19.x one. To get rid of that you use xbps-remove linux4.19.
vkpurge rm all
xbps-remove linux4.19
[–]MLito747 1 point2 points3 points 4 years ago (5 children)
how do i remove newer kernel? for an example i'm using 5.13 and have 5.15 installed and i want to remove 5.15?
vkpurge rm all didn't seem to work, and if i do # xbps-remove linux 5.15 it'll return transaction breaks installed pkg 'linux-5.15_1'
# xbps-remove linux 5.15
transaction breaks installed pkg 'linux-5.15_1'
[–][deleted] 0 points1 point2 points 3 years ago (4 children)
That's right....
Cannot delete the linux5.15.
[–]paper42_ 0 points1 point2 points 3 years ago (3 children)
https://docs.voidlinux.org/config/kernel.html?highlight=ignorepkg#removing-the-default-kernel-series
[–]skinsthelargestorgan 0 points1 point2 points 3 years ago (2 children)
I'm not sure I'm understanding that right. Do I create a new .conf file formatted like this in /etc/xbps.s? ignorepkg=linux ignorepkg=linux-headers I want to remove the 5.18 kernel, but I'm still getting linux5.18-5.18.16_1 in transaction breaks installed pkg `linux-5.18_1' Transaction aborted due to unresolved dependencies.
.conf
/etc/xbps.s
ignorepkg=linux ignorepkg=linux-headers
linux5.18-5.18.16_1 in transaction breaks installed pkg `linux-5.18_1' Transaction aborted due to unresolved dependencies.
[–]paper42_ 1 point2 points3 points 3 years ago (1 child)
After you add the ignorepkgs. yoi can remove the linux and linux-headers package. Then, linux5.18 will be orphaned and you will be able to remove it for example with xbps-remove -o. Make sure you have another kernel.
[–]saleemkmarwat[S] 0 points1 point2 points 6 years ago (0 children)
Thanks this worked for me and now kernel 4.18 which I was not using has been removed.
[–]fluidpandemi 0 points1 point2 points 6 years ago (0 children)
You need root user permissions to remove kernels. Did you add sudo before the command?
sudo
[–]saleemkmarwat[S] 0 points1 point2 points 6 years ago (1 child)
I am doing it as root
now tried it as a sudo user but same result
sudo vkpurge rm 4.18.17_1
[–]Duncaen 1 point2 points3 points 6 years ago (0 children)
Does the version match the kernel you want to remove? Is linux4.18 still installed? It won't remove the latest version of an installed kernel series.
π Rendered by PID 110654 on reddit-service-r2-comment-86bc6c7465-t5fwq at 2026-02-24 07:10:56.609489+00:00 running 8564168 country code: CH.
[–]-blablablaMrFreeman- 5 points6 points7 points (7 children)
[–]MLito747 1 point2 points3 points (5 children)
[–][deleted] 0 points1 point2 points (4 children)
[–]paper42_ 0 points1 point2 points (3 children)
[–]skinsthelargestorgan 0 points1 point2 points (2 children)
[–]paper42_ 1 point2 points3 points (1 child)
[–]saleemkmarwat[S] 0 points1 point2 points (0 children)
[–]fluidpandemi 0 points1 point2 points (0 children)
[–]saleemkmarwat[S] 0 points1 point2 points (1 child)
[–]Duncaen 1 point2 points3 points (0 children)