Each time I sudo apt-get upgrade I can see many updates from libreoffice packages. Since I have a limited memory laptop, I would like to "disable" the upgrades for all the libreoffice packages (libreoffice-writer, libreoffice-pdfimport...).

How can I achieve that?

1 Answer 1


The command sudo apt-mark hold package-name ... will keep the current version of one or more packages. For example, see PinningHowTo - Introduction to Holding Packages and How To Exclude Packages from Apt-Get Upgrade.

Presumably, "^libreoffice*" (quotes included) will select all packages beginning with libreoffice when using apt-mark, as it would with apt-get, but I wasn't able to locate an explicit example to this effect.

  • sudo apt-mark hold "^libreoffice*" worked, thanks :)
    – room13
    Sep 23, 2019 at 9:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .