debian系统下安装和卸载libreoffice

debian系统下安装开源办公软件libreoffice分三步:

第一步下载:到官方网站上下载linux版本的安装包。

第二步解压:tar xvf LibreOffice_7.2.4_Linux_x86-64_deb.tar.gz

第三步安装:sudo dpkg -i *.deb

安装代码如下:

zhong@debian:~/下载$ tar xvf LibreOffice_7.2.4_Linux_x86-64_deb.tar.gz
LibreOffice_7.2.4.1_Linux_x86-64_deb/
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-en-us_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-writer_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-base_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-libreofficekit-data_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-math_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-core_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-onlineupdate_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-draw_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-dict-en_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-dict-es_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-extension-mediawiki-publisher_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-images_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-xsltfilter_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-ogltrans_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-librelogo_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-ooolinguistic_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-impress_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-extension-report-builder_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-graphicfilter_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-postgresql-sdbc_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-gnome-integration_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-base_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-impress_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-python-script-provider_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-extension-javascript-script-provider_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-kde-integration_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-dict-fr_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-calc_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-draw_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-ure_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-calc_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-writer_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-extension-nlpsolver_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-en-us_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-ooofonts_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-math_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-extension-beanshell-script-provider_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-extension-pdf-import_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-pyuno_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libobasis7.2-firebird_7.2.4.1-1_amd64.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/DEBS/libreoffice7.2-debian-menus_7.2.4-1_all.deb
LibreOffice_7.2.4.1_Linux_x86-64_deb/readmes/
LibreOffice_7.2.4.1_Linux_x86-64_deb/readmes/README_en-US
zhong@debian:~/下载$ sudo dpkg -i *.deb
[sudo] zhong 的密码:
dpkg: 警告: 即将把 code 从 1.63.1-1639448820 降级到 1.62.3-1637137107
(正在读取数据库 ... 系统当前共安装有 215297 个文件和目录。)
准备解压 code_1.62.3-1637137107_amd64.deb  ...
正在解压 code (1.62.3-1637137107) 并覆盖 (1.63.1-1639448820) ...
准备解压 fcitx-baidupinyin.deb  ...
正在解压 fcitx-baidupinyin:amd64 (1.0.1.0) 并覆盖 (1.0.1.0) ...
正在选中未选择的软件包 microsoft-edge-beta。
准备解压 microsoft-edge-beta_95.0.1020.20-1_amd64.deb  ...
正在解压 microsoft-edge-beta (95.0.1020.20-1) ...
准备解压 nordvpn-release_1.0.0_all.deb  ...
正在解压 nordvpn-release (1.0.0) 并覆盖 (1.0.0) ...
准备解压 todesk_4.0.3_amd64.deb  ...
Removed /etc/systemd/system/multi-user.target.wants/todeskd.service.
正在解压 todesk (4.0.3) 并覆盖 (4.0.3) ...
正在选中未选择的软件包 wps-office。
准备解压 wps-office_11.1.0.10702_amd64.deb  ...
正在解压 wps-office (11.1.0.10702) ...
正在设置 code (1.62.3-1637137107) ...
正在设置 fcitx-baidupinyin:amd64 (1.0.1.0) ...
正在设置 microsoft-edge-beta (95.0.1020.20-1) ...
正在设置 nordvpn-release (1.0.0) ...
正在设置 todesk (4.0.3) ...
Created symlink /etc/systemd/system/multi-user.target.wants/todeskd.service → /etc/systemd/system/todeskd.service.
正在设置 wps-office (11.1.0.10702) ...
正在处理用于 mailcap (3.69) 的触发器 ...
正在处理用于 shared-mime-info (2.0-1) 的触发器 ...
正在处理用于 man-db (2.9.4-2) 的触发器 ...
正在处理用于 hicolor-icon-theme (0.17-2) 的触发器 ...
正在处理用于 fontconfig (2.13.1-4.2) 的触发器 ...

卸载libreoffice命令:

sudo apt-get remove --purge libreoffice*