oshunluvr posted this code:
to check the installed size of software.
I modified it to grep for "linux":
I routinely run sudo apt autoremove whenever prompted, usually after a kernel update, and the system removes approximately 300+MB of "old" kernel stuff.
So I don't know why I have so many linux-image* and linux-module* entries. AFAIK, I've not done anything out of the ordinary. By that, I mean I just use sudo apt update, sudo apt full-upgrade, and sudo apt autoremove when prompted. No messing directly with dpkg, pinning/holding packages, etc.
I don't have dkms installed. For VMs, I use qemu/kvm.
Questions:
I don't think I'm running out of space at all! sda4 is what has Kubuntu 20.04 (root and home included).
sda3 has Ubuntu 18.04 (preinstalled by Dell).
Code:
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | grep google-chrome-stable
I modified it to grep for "linux":
Code:
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | grep -i linux
Code:
18 linux-generic 18 linux-headers-generic 18 linux-image-generic 57 linux-base 69 linux-sound-base 101 syslinux-legacy 114 pptp-linux 202 libselinux1 354 syslinux 1766 console-setup-linux 3625 syslinux-common 4538 util-linux 11419 linux-image-5.4.0-42-generic 11427 linux-image-5.4.0-47-generic 11435 linux-image-5.4.0-48-generic 11436 linux-image-5.4.0-51-generic 11436 linux-image-5.4.0-52-generic 11436 linux-image-5.4.0-53-generic 11436 linux-image-5.4.0-54-generic 11440 linux-image-5.4.0-56-generic 11440 linux-image-5.4.0-58-generic 11444 linux-image-5.4.0-59-generic 11444 linux-image-5.4.0-60-generic 11444 linux-image-5.4.0-62-generic 11444 linux-image-5.4.0-64-generic 11444 linux-image-5.4.0-65-generic 11448 linux-image-5.4.0-66-generic 14143 linux-headers-5.4.0-65-generic 14166 linux-headers-5.4.0-66-generic 69256 linux-headers-5.4.0-65 69285 linux-headers-5.4.0-66 71364 linux-modules-5.4.0-42-generic 71474 linux-modules-5.4.0-47-generic 71520 linux-modules-5.4.0-48-generic 71560 linux-modules-5.4.0-51-generic 71587 linux-modules-5.4.0-52-generic 71587 linux-modules-5.4.0-53-generic 71587 linux-modules-5.4.0-54-generic 71667 linux-modules-5.4.0-56-generic 71667 linux-modules-5.4.0-58-generic 71702 linux-modules-5.4.0-59-generic 71702 linux-modules-5.4.0-60-generic 71703 linux-modules-5.4.0-62-generic 71703 linux-modules-5.4.0-64-generic 71721 linux-modules-5.4.0-65-generic 71777 linux-modules-5.4.0-66-generic 185187 linux-modules-extra-5.4.0-42-generic 185265 linux-modules-extra-5.4.0-47-generic 185296 linux-modules-extra-5.4.0-48-generic 185396 linux-modules-extra-5.4.0-52-generic 185397 linux-modules-extra-5.4.0-54-generic 185398 linux-modules-extra-5.4.0-51-generic 185398 linux-modules-extra-5.4.0-53-generic 185455 linux-modules-extra-5.4.0-56-generic 185458 linux-modules-extra-5.4.0-58-generic 185481 linux-modules-extra-5.4.0-59-generic 185482 linux-modules-extra-5.4.0-60-generic 185483 linux-modules-extra-5.4.0-62-generic 185483 linux-modules-extra-5.4.0-64-generic 185483 linux-modules-extra-5.4.0-65-generic 185524 linux-modules-extra-5.4.0-66-generic 544206 linux-firmware
So I don't know why I have so many linux-image* and linux-module* entries. AFAIK, I've not done anything out of the ordinary. By that, I mean I just use sudo apt update, sudo apt full-upgrade, and sudo apt autoremove when prompted. No messing directly with dpkg, pinning/holding packages, etc.
I don't have dkms installed. For VMs, I use qemu/kvm.
Questions:
- Do others see something similar on a clean install (not upgrade) of Kubuntu 20.04?
- Is it safe to remove carefully (no wildcards or globs) linux-image* and linux-modules* older than "5.4.0-59" (for now)?
I don't think I'm running out of space at all! sda4 is what has Kubuntu 20.04 (root and home included).
sda3 has Ubuntu 18.04 (preinstalled by Dell).
Code:
$ df -h Filesystem Size Used Avail Use% Mounted on udev 3.8G 0 3.8G 0% /dev tmpfs 781M 1.7M 780M 1% /run /dev/sda4 814G 36G 737G 5% / tmpfs 3.9G 56M 3.8G 2% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/sda1 846M 37M 810M 5% /boot/efi tmpfs 781M 16K 781M 1% /run/user/1000 $ sudo fdisk -l [sudo] password for chimak: Disk /dev/sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors Disk model: TOSHIBA MQ04ABF1 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: CB1FDE7F-2029-4FFA-891B-302EE6EDBBFB Device Start End Sectors Size Type /dev/sda1 2048 1742847 1740800 850M EFI System /dev/sda2 1742848 12228607 10485760 5G Microsoft reserved /dev/sda3 12228608 218867711 206639104 98.5G Linux filesystem /dev/sda4 218867712 1953523711 1734656000 827.2G Linux filesystem $
Comment