11
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntuの古いカーネルがディスクを圧迫するときの対処法

Posted at

ディスクを圧迫している状態

$ sudo du -h -d 1 /usr/src/
13M     /usr/src/linux-headers-4.4.0-1050-aws
13M     /usr/src/linux-headers-4.4.0-1052-aws
...
3.7G    /usr/src/

おうふ。

古いカーネルイメージを一発できれいにする

$ sudo apt autoremove -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  linux-aws-headers-4.4.0-1094
The following packages will be REMOVED:
  linux-aws-headers-4.4.0-1050 linux-aws-headers-4.4.0-1052
  linux-aws-headers-4.4.0-1054 linux-aws-headers-4.4.0-1055
  ...
done
11
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?