libreoffice 有三个版本?

libreoffice 有三个版本?

我似乎安装了三个版本的 LibreOffice。我偶尔会使用数据库进行邮件合并,所以我怀疑 7.0 版本是我想要保留的版本。有没有一个简短的apt-get命令可以删除其他两个版本而不会破坏任何东西?

$ libreoffice  [\t for autocomplete]
libreoffice     libreoffice6.4  libreoffice7.0  
`
$ which libreoffice
/usr/bin/libreoffice

$ ls -las /usr/bin/libreoffice
0 lrwxrwxrwx 1 root root 34 Nov  2 08:44 /usr/bin/libreoffice -> ../lib/libreoffice/program/soffice

$ which libreoffice7.0
/usr/local/bin/libreoffice7.0

$ ls -las /usr/local/bin/libreoffice7.0
0 lrwxrwxrwx 1 root root 35 Sep 30 21:29 /usr/local/bin/libreoffice7.0 -> /opt/libreoffice7.0/program/soffice

$ which libreoffice6.4
/usr/local/bin/libreoffice6.4

$ ls -las /usr/local/bin/libreoffice6.4 
0 lrwxrwxrwx 1 root root 35 May 13  2020 /usr/local/bin/libreoffice6.4 -> /opt/libreoffice6.4/program/soffice

编辑:我在 Ubuntu Studio v 20.10

$  dpkg -l | grep libreoffice
ii  liblibreoffice-java                                         1:7.0.3-0ubuntu0.20.10.1                    all          LibreOffice UNO runtime environment -- Java library
ii  liblibreofficekitgtk                                        1:7.0.3-0ubuntu0.20.10.1                    amd64        GTK3 widget wrapping LibreOffice functionality
ii  libobasis6.4-libreofficekit-data                            6.4.4.2-2                                   amd64        Libreofficekit data files for LibreOffice 6.4 .4.2
ii  libobasis7.0-libreofficekit-data                            7.0.2.2-2                                   amd64        Libreofficekit data files for LibreOffice 7.0 .2.2
ii  libreoffice-base                                            1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- database
ii  libreoffice-base-core                                       1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- shared library
ii  libreoffice-base-drivers                                    1:7.0.3-0ubuntu0.20.10.1                    amd64        Database connectivity drivers for LibreOffice
ii  libreoffice-calc                                            1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- spreadsheet
ii  libreoffice-common                                          1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- arch-independent files
ii  libreoffice-core                                            1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- arch-dependent files
ii  libreoffice-draw                                            1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- drawing
ii  libreoffice-gnome                                           1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- GNOME integration
ii  libreoffice-gtk                                             1:7.0.3-0ubuntu0.20.10.1                    all          transitional package for LibreOffice gtk2 backend
ii  libreoffice-gtk2                                            1:7.0.3-0ubuntu0.20.10.1                    all          transitional package for LibreOffice gtk2 backend
ii  libreoffice-gtk3                                            1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- GTK+ 3 integration
ii  libreoffice-help-common                                     1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- common files for LibreOffice help
ii  libreoffice-help-en-gb                                      1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- English_british help
ii  libreoffice-help-en-us                                      1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- English_american help
ii  libreoffice-impress                                         1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- presentation
ii  libreoffice-java-common                                     1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- arch-independent Java support files
ii  libreoffice-kf5                                             1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- KDE Frameworks 5 integration
ii  libreoffice-l10n-en-gb                                      1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- English_british language package
ii  libreoffice-l10n-en-za                                      1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- English_southafrican language package
ii  libreoffice-math                                            1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- equation editor
ii  libreoffice-plasma                                          1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- some Plasma integration
ii  libreoffice-qt5                                             1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- Qt 5 integration
ii  libreoffice-script-provider-python                          1:7.0.3-0ubuntu0.20.10.1                    all          Python script support provider for LibreOffice scripting framework
ii  libreoffice-sdbc-firebird                                   1:7.0.3-0ubuntu0.20.10.1                    amd64        Firebird SDBC driver for LibreOffice
ii  libreoffice-sdbc-hsqldb                                     1:7.0.3-0ubuntu0.20.10.1                    amd64        HSQLDB SDBC driver for LibreOffice
ii  libreoffice-style-breeze                                    1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- Breeze symbol style
ii  libreoffice-style-colibre                                   1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- colibre symbol style
ii  libreoffice-style-elementary                                1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- Elementary symbol style
ii  libreoffice-style-galaxy                                    1:7.0.3-0ubuntu0.20.10.1                    all          transitional package for Galaxy symbol style
ii  libreoffice-style-tango                                     1:7.0.3-0ubuntu0.20.10.1                    all          transitional package for Tango symbol style
ii  libreoffice-style-yaru                                      1:7.0.3-0ubuntu0.20.10.1                    all          office productivity suite -- Yaru symbol style
ii  libreoffice-writer                                          1:7.0.3-0ubuntu0.20.10.1                    amd64        office productivity suite -- word processor
ii  libreoffice6.4                                              6.4.4.2-2                                   amd64        Brand module for LibreOffice 6.4 .4.2
ii  libreoffice6.4-base                                         6.4.4.2-2                                   amd64        Base brand module for LibreOffice 6.4 .4.2
ii  libreoffice6.4-calc                                         6.4.4.2-2                                   amd64        Calc brand module for LibreOffice 6.4 .4.2
ii  libreoffice6.4-debian-menus                                 6.4.4-2                                     all          LibreOffice 6.4 desktop integration
ii  libreoffice6.4-dict-en                                      6.4.4.2-2                                   amd64        En dictionary for LibreOffice 6.4 .4.2
ii  libreoffice6.4-dict-es                                      6.4.4.2-2                                   amd64        Es dictionary for LibreOffice 6.4 .4.2
ii  libreoffice6.4-dict-fr                                      6.4.4.2-2                                   amd64        Fr dictionary for LibreOffice 6.4 .4.2
ii  libreoffice6.4-draw                                         6.4.4.2-2                                   amd64        Draw brand module for LibreOffice 6.4 .4.2
ii  libreoffice6.4-en-us                                        6.4.4.2-2                                   amd64        Brand language module for LibreOffice 6.4 .4.2
ii  libreoffice6.4-impress                                      6.4.4.2-2                                   amd64        Impress brand module for LibreOffice 6.4 .4.2
ii  libreoffice6.4-math                                         6.4.4.2-2                                   amd64        Math brand module for LibreOffice 6.4 .4.2
ii  libreoffice6.4-ure                                          6.4.4.2-2                                   amd64        UNO Runtime Environment .4.2
ii  libreoffice6.4-writer                                       6.4.4.2-2                                   amd64        Writer brand module for LibreOffice 6.4 .4.2
ii  libreoffice7.0                                              7.0.2.2-2                                   amd64        Brand module for LibreOffice 7.0 .2.2
ii  libreoffice7.0-base                                         7.0.2.2-2                                   amd64        Base brand module for LibreOffice 7.0 .2.2
ii  libreoffice7.0-calc                                         7.0.2.2-2                                   amd64        Calc brand module for LibreOffice 7.0 .2.2
ii  libreoffice7.0-debian-menus                                 7.0.2-2                                     all          LibreOffice 7.0 desktop integration
ii  libreoffice7.0-dict-en                                      7.0.2.2-2                                   amd64        En dictionary for LibreOffice 7.0 .2.2
ii  libreoffice7.0-dict-es                                      7.0.2.2-2                                   amd64        Es dictionary for LibreOffice 7.0 .2.2
ii  libreoffice7.0-dict-fr                                      7.0.2.2-2                                   amd64        Fr dictionary for LibreOffice 7.0 .2.2
ii  libreoffice7.0-draw                                         7.0.2.2-2                                   amd64        Draw brand module for LibreOffice 7.0 .2.2
ii  libreoffice7.0-en-us                                        7.0.2.2-2                                   amd64        Brand language module for LibreOffice 7.0 .2.2
ii  libreoffice7.0-impress                                      7.0.2.2-2                                   amd64        Impress brand module for LibreOffice 7.0 .2.2
ii  libreoffice7.0-math                                         7.0.2.2-2                                   amd64        Math brand module for LibreOffice 7.0 .2.2
ii  libreoffice7.0-ure                                          7.0.2.2-2                                   amd64        UNO Runtime Environment .2.2
ii  libreoffice7.0-writer                                       7.0.2.2-2                                   amd64        Writer brand module for LibreOffice 7.0 .2.2
ii  libreofficekit-data                                         1:7.0.3-0ubuntu0.20.10.1                    all          common data for LOKDocView

答案1

我不建议删除发行版附带的 LibreOffice。它可能会破坏依赖于它的其他程序。

但你可以尝试运行

sudo apt remove libreoffice6.4 
sudo apt autoremove

但是当你看到要删除的软件包列表时一定要小心。它可能会彻底破坏你的系统。

答案2

我现在只有一个版本的 libreoffice,它是最新版本。

我做了什么:

% sudo apt-get remove libreoffice6.4
% sudo add-apt-repository ppa:libreoffice/ppa
% sudo apt-get update
% sudo apt-get upgrade
% sudo apt-get remove libreoffice7.0

我仍然安装了 libreoffice-base 并且libreoffice --help显示版本超过 7,所以这是成功的。

相关内容