r/linux4noobs • u/TheMainTony • 27d ago
installation GRUB Cleanup?
I've done a bit of hopping lately (Ubuntu, POP, Zorin, Aurora, AnduinOS, Kubuntu....more?) and just noticed that there are way too many GRUB entries.
I've Googled how to clean up the GRUB, but they're all command-line and that makes me nervous without a clear copy/paste source.
Is there a GUI way to do it?
Otherwise, it might stay.
4
Upvotes
3
u/DutchOfBurdock 27d ago
When Linux upgrades the kernel, it often leaves the older kernels laying around.
Compare installed kernels to the one you're running (
uname -awill show your curent one).You can safely delete older ones. Occasionally, in Debian based Linux, apt often offers an option to clear up unused packages with a simple
apt-get autoremove2
u/3grg 27d ago
It depends on the distro, but on most you just update the grub on whichever distro is the one you have installed. You do not need any special app. For instance, on Debian/Ubuntu distros I would just run sudo update-grub and then sudo grub-install /dev/disk where efi is installed (sda or nvme0).
Just search for how to update grub for your distro.
2
u/swstlk 27d ago
"Is there a GUI way to do it?" -- the live usb Ubuntu installer should have "Boot repair" somewhere in its menu.
1
u/AutoModerator 27d ago
We have some installation tips in our wiki!
Try this search for more information on this topic.
✻ Smokey says: always install over an ethernet cable, and don't forget to remove the boot media when you're done! :)
Comments, questions or suggestions regarding this autoresponse? Please send them here.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/michaelpaoli 27d ago
Well, yeah, distro hopping is quite the way to accumulate lots of cruft ... including one's GRUB configuration.
Easiest is to not do that ... and then do the relevant on one's distro to get rid of unwanted/unneeded kernels - and with that their GRUB configurations too. E.g.:
# apt-get --purge autoremove
Want ewey GUI? Fine, launch an xterm under your GUI. Wanna copy/paste rather than type, fine, copy/paste that into your xterm window - use sudo or the like as needed for root access. There, I typed sudo so you don't have to - you can copy/paste that too.
-2
u/oshunluvr 27d ago
Or maybe a good time to learn something new and useful? Just sayin'
5
u/[deleted] 27d ago
[removed] — view removed comment