How to delete LibreOffice

Asked by Arthur E. Baldwin

I've tried using Cubic to create a customization of Linux Mint Cinnamon 19.3, but I'm confused as to how to delete LibreOffice for example from the customized version, and make the final ISO size greatly reduced. I think that I need to edit the file called "filesystem.manifest" and delete the entries for all the files that begin with libreoffice, but I don't know when, in the cubic process, that filesystem.manifest is created or how to properly modify it. And I'm not sure at what point, using Cubic, is the right time to remove the libreoffice contents from the ISO image, or how that is accomplished.

Sincerely,

Arthur Baldwin

Question information

Language:
English Edit question
Status:
Answered
For:
Cubic Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sam (source-decays) said :
#1

This is done at the chroot environment. After you select your ISO and customize it, go to the chroot environment that shows a small terminal. In this section, delete the libreoffice meta package as you would on your main operating system. Run the following:

$ apt remove libreoffice-*

In the next section, those packages will be gone. And the root size of the ISO will be smaller.

Following this method, my ISO has gone from 2.1 GB to 1.6 GB.

Revision history for this message
Cubic PPA (cubic-wizard) said :
#2

Update...

In the latest version of apt, wild cards are no longer supported.

Therefore, if you are using Ubuntu 20.04, the correct command to remove LibreOffice is...

    $ apt --yes --quiet --purge autoremove '?name(libreoffice)'

As another example, to remove Thunderbird, the command is...

    $ apt --yes --quiet --purge autoremove '?name(thunderbird)'

Can you help with this problem?

Provide an answer of your own, or ask Arthur E. Baldwin for more information if necessary.

To post a message you must log in.