Use dpkg-divert for libreoffice, also install libreoffice
packages.