Linux fedora 38 removes the old kernel and other unnecessary old packages

Remove old kernels and other old packages that are not needed

After updating the system, a new kernel will probably be installed, and some useless dependencies will appear. Restart the system to the new kernel, make sure that the kernel is running without any problems, and then delete the old kernel and useless dependencies.

Use the following command to automatically remove useless dependencies:

sudo dnf autoremove

The Fedora kernel is updated quickly, but every time the kernel is updated, the old kernel will not be automatically deleted, taking up hard disk space. In the previous tutorials, to delete the old kernel, you search first, and then remove the version to be deleted. It is also very troublesome to enter the version number. Use the following command to remove the old kernel in one command:

sudo dnf remove --oldinstallonly

Fedora removes old kernel with one command

138  sudo dnf autoremove
139  sudo dnf remove --oldinstallonly 

おすすめ

転載: blog.csdn.net/a772304419/article/details/132401407