Closed prjemian closed 3 years ago
new installed, LinuxMint 20.1 takes 8.4GB
Using Disk Usage Analyzer, largest consumer is /usr
(6.0 GB) in which /usr/lib
(3.4 GB), in which /usr/lib/libreoffice
takes 339.0 MB. /usr/lib/thunderbird
takes 210.1 MB, /usr/share/libreoffice
has 306.4 MB
NOTE: need the guest additions and bidirectional clipboard to make this MUCH easier
apsu@apsu:~$ df -HT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 996M 0 996M 0% /dev
tmpfs tmpfs 209M 1.3M 208M 1% /run
/dev/sda5 ext4 32G 8.5G 21G 29% /
tmpfs tmpfs 1.1G 0 1.1G 0% /dev/shm
tmpfs tmpfs 5.3M 4.1k 5.3M 1% /run/lock
tmpfs tmpfs 1.1G 0 1.1G 0% /sys/fs/cgroup
/dev/sda1 vfat 536M 4.1k 536M 1% /boot/efi
tmpfs tmpfs 209M 21k 209M 1% /run/user/1000
apsu@apsu:~$ sudo apt remove \
> libreoffice-base \
> libreoffice-base-core \
> libreoffice-calc \
> libreoffice-writer \
> libreoffice-core \
> libreoffice-common \
> libreoffice-draw \
> libreoffice-gnome \
> libreoffice-gtk3 \
> libreoffice-help-common \
> libreoffice-impress \
> libreoffice-java-common \
> libreoffice-math \
> libreoffice-style-colibre \
> libreoffice-style-tango \
> libreoffice-writer \
> thunderbird \
> thunderbird-gnome-support
[sudo] password for apsu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libreoffice-base libreoffice-base-core libreoffice-base-drivers
libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw
libreoffice-gnome libreoffice-gtk3 libreoffice-help-common
libreoffice-help-de libreoffice-help-en-gb libreoffice-help-en-us
libreoffice-help-es libreoffice-help-fr libreoffice-help-it
libreoffice-help-pt libreoffice-help-pt-br libreoffice-help-ru
libreoffice-help-zh-cn libreoffice-help-zh-tw libreoffice-impress
libreoffice-java-common libreoffice-l10n-de libreoffice-l10n-en-gb
libreoffice-l10n-en-za libreoffice-l10n-es libreoffice-l10n-fr
libreoffice-l10n-it libreoffice-l10n-pt libreoffice-l10n-pt-br
libreoffice-l10n-ru libreoffice-l10n-zh-cn libreoffice-l10n-zh-tw
libreoffice-math libreoffice-sdbc-hsqldb libreoffice-style-colibre
libreoffice-style-tango libreoffice-writer python3-uno thunderbird
thunderbird-gnome-support thunderbird-locale-en thunderbird-locale-en-us
0 upgraded, 0 newly installed, 44 to remove and 172 not upgraded.
After this operation, 810 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 322877 files and directories currently installed.)
Removing libreoffice-base (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-calc (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-writer (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-base-core (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-base-drivers (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-sdbc-hsqldb (1:6.4.6-0ubuntu0.20.04.1) ...
Removing python3-uno (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-en-us (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-zh-tw (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-zh-tw (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-impress (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-draw (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-gnome (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-gtk3 (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-zh-cn (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-de (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-en-gb (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-es (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-fr (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-it (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-pt (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-pt-br (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-ru (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-java-common (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-de (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-en-gb (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-en-za (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-es (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-fr (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-it (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-pt (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-pt-br (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-ru (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-l10n-zh-cn (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-math (1:6.4.6-0ubuntu0.20.04.1) ...
Removing thunderbird-locale-en-us (1:78.7.1+build1-0ubuntu0.20.04.1) ...
Removing thunderbird-locale-en (1:78.7.1+build1-0ubuntu0.20.04.1) ...
Removing thunderbird-gnome-support (1:78.7.1+build1-0ubuntu0.20.04.1) ...
Removing thunderbird (1:78.7.1+build1-0ubuntu0.20.04.1) ...
Removing libreoffice-core (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-help-common (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-common (1:6.4.6-0ubuntu0.20.04.1) ...
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or di
rectory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directo
ry
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Removing libreoffice-style-colibre (1:6.4.6-0ubuntu0.20.04.1) ...
Removing libreoffice-style-tango (1:6.4.6-0ubuntu0.20.04.1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for doc-base (0.10.9) ...
Processing 12 removed doc-base files, 36 changed doc-base files...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for gnome-icon-theme (3.12.0-3) ...
Processing triggers for shared-mime-info (1.15-1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...
apsu@apsu:~$ df -HT
Filesystem Type Size Used Avail Use% Mounted on
udev devtmpfs 996M 0 996M 0% /dev
tmpfs tmpfs 209M 1.3M 208M 1% /run
/dev/sda5 ext4 32G 7.7G 22G 26% /
tmpfs tmpfs 1.1G 0 1.1G 0% /dev/shm
tmpfs tmpfs 5.3M 4.1k 5.3M 1% /run/lock
tmpfs tmpfs 1.1G 0 1.1G 0% /sys/fs/cgroup
/dev/sda1 vfat 536M 4.1k 536M 1% /boot/efi
tmpfs tmpfs 209M 21k 209M 1% /run/user/1000
After the OS is installed but before the first update, remove the largest of the packages that are not used by the training software.
Includes:
Do this before installing updates or the training stack since the total size of the VM image never decreases. (The host storage used by the VM expands to fit the content of the VM as installed.)