Search code examples
yocto

How to remove duplicates from an sstate cache?


I want to remove duplicates from an sstate cache in yocto because the folder is too big. How can I do that?


Solution

  • Run sstate-cache-management.sh to remove duplicates from an sstate cache.

    $ cd buildDir/layers/oe-core/scripts;
    $ ./sstate-cache-management.sh --yes --remove-duplicated --cache-dir=sstateDir