在 CentOS 上,LibreOffice 占用的磁盘空间取决于你安装的版本、组件多少以及是否使用官方 RPM 包或系统仓库版本。下面给你一个常见情况的参考。
sudo dnf install libreoffice
这通常安装 完整版 LibreOffice(含 Writer、Calc、Impress、Draw、Base 等)。
sudo dnf install libreoffice-core libreoffice-writer libreoffice-calc
安装后可用:
du -sh /opt/libreoffice* 2>/dev/null
rpm -qa | grep libreoffice
或:
dnf repoquery --installed --qf '%{name} %{size}' | grep libreoffice
libreoffice-headlesslibreoffice-baselibreoffice-impress--setopt=install_weak_deps=False如果你告诉我:
我可以给你最省空间的安装命令。