如何删除 baloo 索引数据库文件

baloo 是一个 KDE 桌面搜索组件,它索引文件以加快搜索速度。

索引可能会变得相当大,例如我的索引消耗超过 2 GB 的硬盘空间:

baloo_index_size.txt
$ balooctl indexSize
Actual Size: 2,04 GiB
Expected Size: 1,33 GiB

           PostingDB:     313,32 MiB    22.924 %
         PosistionDB:     521,05 MiB    38.122 %
            DocTerms:     167,93 MiB    12.287 %
    DocFilenameTerms:      53,46 MiB     3.912 %
       DocXattrTerms:            0 B     0.000 %
              IdTree:       9,79 MiB     0.716 %
          IdFileName:      41,71 MiB     3.052 %
             DocTime:      25,80 MiB     1.887 %
             DocData:       2,02 MiB     0.148 %
   ContentIndexingDB:      14,86 MiB     1.087 %
         FailedIdsDB:            0 B     0.000 %
             MTimeDB:       9,12 MiB     0.667 %

如果你不想使用 baloo 或者你只是想重新索引所有文件,你可能想要删除整个索引:

delete_baloo_index.sh
rm -rf ~/.local/share/baloo

注意如果你没有使用 balooctl stop ; balooctl disable 禁用 baloo,它可能会在后台静默地重新创建索引。


Check out similar posts by category: Linux