15

I have Installed Ubuntu 18.04.2 minimal Installation.

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

18

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.

| improve this answer | |
  • I'll check in a 19.04 VM and in an 18.04 VM and post back. – DK Bose May 3 '19 at 14:35
3

This command will install only LibreOffice Writer without any recommended packages:

sudo apt-get install --no-install-recommends libreoffice-writer libreoffice-gtk3
| improve this answer | |
  • seems.. this is the one i was looking for.. i need to try it.. but it takes time to try.. if you can show the difference clearly like DK Bose showed the difference in terms of packages.. – UnKNOWn May 4 '19 at 8:57
  • I have purged completely libreoffice* from my system and then tried with --no-install-recommends and did not find major difference in terms of saving the space by no recommended packages.. it is showing 26 in place of 28.. also the sizes comparison is 74 & 76MB – UnKNOWn May 4 '19 at 9:10
  • @PRATAP, I hope you've installed the libreoffice-gtk3 package. That will ensure that your LibreOffice looks decent. – DK Bose May 4 '19 at 12:50
  • no i did only what you mentioned in your answer.. thats it.. i dont know such a gtk3 another package is available – UnKNOWn May 4 '19 at 13:29
  • Use 'apt-cache show <package>' to look at the dependencies of packages you want to install. Some may be unavoidable. For example libreoffice-core installs a ton of dependencies. If you really want to go minimal then download LibreOffice binary directly from LibreOffice and do a minimal install. – Felicia May 4 '19 at 22:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.