CentOS8で古いカーネルの削除
[ root@localhost ~]# dnf -y remove $(dnf repoquery --installonly --latest-limit=-1 -q)
Dependencies resolved.
======================================================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================================================
Removing:
kernel x86_64 4.18.0-193.el8 @anaconda 0
kernel x86_64 4.18.0-193.6.3.el8_2 @BaseOS 0
kernel-core x86_64 4.18.0-193.el8 @anaconda 60 M
kernel-core x86_64 4.18.0-193.6.3.el8_2 @BaseOS 60 M
kernel-devel x86_64 4.18.0-193.el8 @anaconda 47 M
kernel-devel x86_64 4.18.0-193.6.3.el8_2 @BaseOS 47 M
kernel-modules x86_64 4.18.0-193.el8 @anaconda 20 M
kernel-modules x86_64 4.18.0-193.6.3.el8_2 @BaseOS 20 M
Transaction Summary
======================================================================================================================================================
Remove 8 Packages
Freed space: 254 M
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Erasing : kernel-4.18.0-193.6.3.el8_2.x86_64 1/8
Running scriptlet: kernel-4.18.0-193.6.3.el8_2.x86_64 1/8
Erasing : kernel-4.18.0-193.el8.x86_64 2/8
Running scriptlet: kernel-4.18.0-193.el8.x86_64 2/8
Erasing : kernel-devel-4.18.0-193.6.3.el8_2.x86_64 3/8
Erasing : kernel-devel-4.18.0-193.el8.x86_64 4/8
Erasing : kernel-modules-4.18.0-193.el8.x86_64 5/8
Running scriptlet: kernel-modules-4.18.0-193.el8.x86_64 5/8
Erasing : kernel-modules-4.18.0-193.6.3.el8_2.x86_64 6/8
Running scriptlet: kernel-modules-4.18.0-193.6.3.el8_2.x86_64 6/8
Running scriptlet: kernel-core-4.18.0-193.6.3.el8_2.x86_64 7/8
Erasing : kernel-core-4.18.0-193.6.3.el8_2.x86_64 7/8
Running scriptlet: kernel-core-4.18.0-193.6.3.el8_2.x86_64 7/8
Running scriptlet: kernel-core-4.18.0-193.el8.x86_64 8/8
Erasing : kernel-core-4.18.0-193.el8.x86_64 8/8
Running scriptlet: kernel-core-4.18.0-193.el8.x86_64 8/8
Verifying : kernel-4.18.0-193.el8.x86_64 1/8
Verifying : kernel-4.18.0-193.6.3.el8_2.x86_64 2/8
Verifying : kernel-core-4.18.0-193.el8.x86_64 3/8
Verifying : kernel-core-4.18.0-193.6.3.el8_2.x86_64 4/8
Verifying : kernel-devel-4.18.0-193.el8.x86_64 5/8
Verifying : kernel-devel-4.18.0-193.6.3.el8_2.x86_64 6/8
Verifying : kernel-modules-4.18.0-193.el8.x86_64 7/8
Verifying : kernel-modules-4.18.0-193.6.3.el8_2.x86_64 8/8
Installed products updated.
Removed:
kernel-4.18.0-193.el8.x86_64 kernel-4.18.0-193.6.3.el8_2.x86_64 kernel-core-4.18.0-193.el8.x86_64
kernel-core-4.18.0-193.6.3.el8_2.x86_64 kernel-devel-4.18.0-193.el8.x86_64 kernel-devel-4.18.0-193.6.3.el8_2.x86_64
kernel-modules-4.18.0-193.el8.x86_64 kernel-modules-4.18.0-193.6.3.el8_2.x86_64
Complete!
コメント