]> git.ipfire.org Git - ipfire-2.x.git/commit
filesystem-cleanup: Automatically remove old libraries
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 10 Jan 2020 11:12:36 +0000 (11:12 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 13 Jan 2020 21:35:37 +0000 (21:35 +0000)
commit97756e21241b2eb6823368b4d3ab2856e18856ca
tree36fad8b7e6eab373e254c665f35ad253d6374c04
parentaab6ec606a068f153e1a8cd5920d5c411e018639
filesystem-cleanup: Automatically remove old libraries

This script runs through /usr/lib and /lib and tries to find
all libraries which are no longer being used and more and
deletes them.

This will help us to free space on root partitions that
are limited to 2GB.

However, the script does not cover 100% of the cases, so that
some files still need to be deleted manually (e.g. boost with
their weird versioning schema).

This script should be executed after a Core Update has been
installed.

Fixes: #12270
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/rootfiles/common/aarch64/stage2
config/rootfiles/common/stage2
config/rootfiles/common/x86_64/stage2
src/scripts/filesystem-cleanup [new file with mode: 0644]