Ubuntu – Install LibreOffice-Writer Only not LibreOffice whole package

aptlibreoffice

I have Installed Ubuntu 18.04.2 minimal Installation.

I will use only LibreOffice-Writer, Is there a way to Install Only this?

Best Answer

  • Yes! sudo apt install libreoffice-writer will install that package as well as certain other core LibreOffice packages. You will need to install the help package separately if you want help offline.

    See the following output:

    $ apt list --installed | grep -i libreoffice
    
    WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
    
    libreoffice-base-core/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed,automatic]
    libreoffice-calc/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed]
    libreoffice-common/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed,automatic]
    libreoffice-core/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed,automatic]
    libreoffice-gtk3/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed]
    libreoffice-help-en-us/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed]
    libreoffice-math/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed,automatic]
    libreoffice-style-breeze/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed,automatic]
    libreoffice-style-colibre/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed,automatic]
    libreoffice-style-tango/bionic,bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 all [installed,automatic]
    libreoffice-writer/bionic,now 1:6.2.2-0ubuntu0.18.04.1~lo1 amd64 [installed]
    $ 
    

    The ones listed as "installed" are what I installed. The rest listed as "installed,automatic" come in as a matter of course.


    You can do a "dry run" to see what would be installed using -s to specify you're only running a simulation and so sudo isn't needed.

    With 19.04,

    apt install -s libreoffice
    

    gives me

    0 upgraded, 83 newly installed, 0 to remove and 0 not upgraded.

    Whereas

    apt install -s libreoffice-writer
    

    gives me

    0 upgraded, 28 newly installed, 0 to remove and 0 not upgraded.