[solved]Remove Libreoffice-langpack-??

Issues related to applications and software problems and general support
Post Reply
Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

[solved]Remove Libreoffice-langpack-??

Post by Hanisch » 2020/05/17 08:37:40

Hello,
I have installed

Code: Select all

sudo dnf install libreoffice*
I have now all Langpacks, but I will have only Langpack-de and langpack-us

How can I remove the unnecessary Langpacks without erasing other required packages?

with regards
Ch. Hanisch
Last edited by Hanisch on 2020/05/18 10:56:09, edited 1 time in total.

scottro
Forum Moderator
Posts: 2453
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: Remove Libreoffice-langpack-??

Post by scottro » 2020/05/17 11:13:12

You can use rpm's --nodeps option but be careful. We've had clients use it and break their system. I *think* with libreoffice it would be safe, but I would do this. Put the packages that are to be removed in a separate directory on the drive. Note their location. Then, if using nodeps breaks something, hopefully you can reinstall it. (I'm assuming it won't break dnf or rpm, though that did happen with a client when they removed ldap-client, I think on CentOS-6 or 7. It took several libraries with it that were used in yum, rpm, and sudo. Fortunately, we were able to get them from another installation and copy them over.)

To be really safe, run rpm -qi on the package and copy over everything included with it to another directory. Again I don't think that nodeps in this case will break anything, but I've seen it break stuff so often that I believe in being extra careful.

So short answer

Code: Select all

 rpm -e --nodeps <packages-you-want-to-remove>.  Long answer, be careful and I take no responsibility if it breaks something. Of course, if you installed it from downloading from libreoffice's site, you should be able to reinstall it the same way if something breaks.
New users should check the FAQ and Read Me First pages

User avatar
TrevorH
Forum Moderator
Posts: 28594
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Remove Libreoffice-langpack-??

Post by TrevorH » 2020/05/17 12:50:31

Be aware that this may have selected a lot more things than just libreoffice. On a Fedora 32 system, attempting to install libreoffice-langpack-es results in yum pulling in about 25 "hunspell-es* packages as well as glibc-langpack-es, langpacks-es, man-pages-es and libreoffice-help-es.

You can get a list of the affected libreoffice langpack packages by running something like

rpm -qa libreoffice-langpack\* libreoffice-help\* | grep -v libreoffice-langpack-us | grep -v libreoffice-help-us

You could then edit that list to remove anything you want to keep and feed it into yum remove...
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

Re: Remove Libreoffice-langpack-??

Post by Hanisch » 2020/05/17 18:58:11

Hello,
It's right, that all languages (libreoffice-langpack-??) to be installed while Libreoffice installing?

with regards
Ch. Hanisch

User avatar
jlehtone
Posts: 2806
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Remove Libreoffice-langpack-??

Post by jlehtone » 2020/05/18 07:06:06

Hanisch wrote:
2020/05/17 18:58:11
It's right, that all languages (libreoffice-langpack-??) to be installed while Libreoffice installing?
No. You did explicitly install all those packages. You, not the system.

I would look from dnf history the transaction that did install all the libreoffice* and do dnf history undo for that.
Then install only the desired packages of libreoffice.


For the record, I have libreoffice but only one langpack:

Code: Select all

$ rpm -qa --qf "%{NAME}\n" libreoffice\*
libreoffice-gtk3
libreoffice-emailmerge
libreoffice-calc
libreoffice-gtk2
libreoffice-draw
libreoffice-data
libreoffice-help-en
libreoffice-opensymbol-fonts
libreoffice-x11
libreoffice-pyuno
libreoffice-graphicfilter
libreoffice-ure
libreoffice-math
libreoffice-langpack-en
libreoffice-ure-common
libreoffice-writer
libreoffice-core
libreoffice-pdfimport
libreoffice-impress

Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

Re: Remove Libreoffice-langpack-??

Post by Hanisch » 2020/05/18 08:53:47

jlehtone wrote:
2020/05/18 07:06:06
Hanisch wrote:
2020/05/17 18:58:11
It's right, that all languages (libreoffice-langpack-??) to be installed while Libreoffice installing?
No. You did explicitly install all those packages. You, not the system.
No, I have not explicitly installed this packages.

Perhaps the

Code: Select all

sudo dnf install libreoffice*
I would look from dnf history the transaction that did install all the libreoffice* and do dnf history undo for that.
Then install only the desired packages of libreoffice.
I can't understand, how I can remove the unnecessary langpacks libreoffice-langpack-??, libreoffice-help-??.

Code: Select all

$ rpm -qa --qf "%{NAME}\n" libreoffice\*
libreoffice-core
libreoffice-wiki-publisher
libreoffice-langpack-ss
libreoffice-help-bg
libreoffice-help-he
libreoffice-help-ro
libreoffice-langpack-de
libreoffice-langpack-it
libreoffice-langpack-sv
libreoffice-writer
libreoffice-langpack-br
libreoffice-langpack-th
libreoffice-help-fr
libreoffice-help-pl
libreoffice-langpack-ca
libreoffice-langpack-hr
libreoffice-langpack-si
libreoffice-impress
libreoffice-langpack-kk
libreoffice-langpack-ve
libreoffice-help-et
libreoffice-help-nb
libreoffice-help-zh-Hant
libreoffice-langpack-gu
libreoffice-langpack-pt-PT
libreoffice-x11
libreoffice-xsltfilter
libreoffice-langpack-ml
libreofficekit
libreoffice-help-el
libreoffice-help-ko
libreoffice-help-tr
libreoffice-langpack-fr
libreoffice-langpack-nn
libreoffice-langpack-fi
libreoffice-filters
libreoffice-langpack-nso
libreoffice-help-da
libreoffice-help-id
libreoffice-help-sl
libreoffice-langpack-es
libreoffice-langpack-lv
libreoffice-langpack-zh-Hans
libreoffice-emailmerge
libreoffice-langpack-sr
libreoffice-ure
libreoffice-help-bn
libreoffice-data
libreoffice-help-hi
libreoffice-help-ru
libreoffice-langpack-dz
libreoffice-langpack-ja
libreoffice-langpack-ta
libreoffice-graphicfilter
libreoffice-langpack-as
libreoffice-langpack-mr
libreoffice-langpack-te
libreoffice-gtk3
libreoffice-help-dz
libreoffice-help-gl
libreoffice-help-ja
libreoffice-help-pt-BR
libreoffice-help-ta
libreoffice-langpack-cs
libreoffice-langpack-eu
libreoffice-langpack-hu
libreoffice-langpack-nl
libreoffice-opensymbol-fonts
libreoffice-langpack-sk
libreoffice-pyuno
libreoffice-draw
libreoffice-base
libreoffice-langpack-fa
libreoffice-langpack-or
libreoffice-langpack-ts
libreoffice-help-cs
libreoffice-help-eu
libreoffice-help-hu
libreoffice-help-nl
libreoffice-help-sk
libreoffice-langpack-ar
libreoffice-langpack-en
libreoffice-langpack-he
libreoffice-langpack-lt
libreoffice-langpack-ro
libreoffice-langpack-uk
libreoffice-math
libreoffice-langpack-mai
libreoffice-langpack-zu
libreoffice-help-en
libreoffice-help-lt
libreoffice-help-uk
libreoffice-langpack-ga
libreoffice-langpack-pl
libreoffice-voikko
libreoffice-langpack-af
libreoffice-langpack-nr
libreoffice-help-de
libreoffice-help-it
libreoffice-help-sv
libreoffice-langpack-et
libreoffice-langpack-nb
libreoffice-langpack-zh-Hant
libreoffice-ogltrans
libreoffice-langpack-pa
libreoffice-help-ca
libreoffice-help-hr
libreoffice-help-si
libreoffice-langpack-el
libreoffice-langpack-ko
libreoffice-langpack-tr
libreoffice-langpack-bg
libreoffice-gdb-debug-support
libreoffice-langpack-st
libreoffice-help-ar
libreoffice-help-gu
libreoffice-help-pt-PT
libreoffice-langpack-da
libreoffice-langpack-id
libreoffice-ure-common
libreoffice-langpack-sl
libreoffice-pdfimport
libreoffice-langpack-cy
libreoffice-langpack-tn
libreoffice-help-fi
libreoffice-help-nn
libreoffice-langpack-bn
libreoffice-langpack-hi
libreoffice-langpack-ru
libreoffice-calc
libreoffice-langpack-kn
libreoffice-langpack-xh
libreoffice-help-es
libreoffice-help-lv
libreoffice-help-zh-Hans
libreoffice-langpack-gl
libreoffice-langpack-pt-BR
libreoffice-gtk2
What can I do?

with regards
Ch. Hanisch

User avatar
jlehtone
Posts: 2806
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Remove Libreoffice-langpack-??

Post by jlehtone » 2020/05/18 09:27:23

Hanisch wrote:
2020/05/18 08:53:47
No, I have not explicitly installed this packages.
Yes, you did, with:
Hanisch wrote:
2020/05/17 08:37:40

Code: Select all

sudo dnf install libreoffice*
That was you, who said: "I want all packages, whose name starts with libreoffice."
Hanisch wrote:
2020/05/18 08:53:47
I can't understand, how I can remove the unnecessary langpacks libreoffice-langpack-??, libreoffice-help-??.
Like I said, I would, for example:

Code: Select all

sudo dnf history libreoffice-langpack-gu
The output is a list of transactions, which have installed, updated, or removed package libreoffice-langpack-gu.

Hopefully there is only one transaction, but nevertheless I would check each of those transactions with:

Code: Select all

sudo dnf history info transaction_id
Then, having determined the transaction_id, where I did install plenty, I would:

Code: Select all

sudo dnf history undo transaction_id
That uninstalls what the dnf install libreoffice* did install.

Now, having got rid of my mistake, I would selectively install what I need.

Hanisch
Posts: 76
Joined: 2015/08/10 13:26:03

Re: Remove Libreoffice-langpack-??

Post by Hanisch » 2020/05/18 10:51:58

Hello,

I have now LibreOffice deinstalled and new installed:

Code: Select all

$ sudo dnf remove libreoffice*

$ sudo dnf install libreoffice-gtk3 libreoffice-emailmerge libreoffice-calc libreoffice-gtk2 libreoffice-draw libreoffice-data libreoffice-help-de 

$ sudo dnf install libreoffice-opensymbol-fonts libreoffice-x11 libreoffice-pyuno libreoffice-graphicfilter libreoffice-ure libreoffice-math 

$ sudo dnf install libreoffice-langpack-de libreoffice-ure-common libreoffice-writer libreoffice-core libreoffice-pdfimport libreoffice-impress 
And I have now:

Code: Select all

$ rpm -qa --qf "%{NAME}\n" libreoffice\*
libreoffice-langpack-de
libreoffice-graphicfilter
libreoffice-ure
libreoffice-emailmerge
libreoffice-gtk3
libreoffice-impress
libreoffice-opensymbol-fonts
libreoffice-langpack-en
libreoffice-core
libreoffice-help-de
libreoffice-writer
libreoffice-data
libreoffice-gtk2
libreoffice-draw
libreoffice-math
libreoffice-ure-common
libreoffice-help-en
libreoffice-x11
libreoffice-pyuno
libreoffice-pdfimport
libreoffice-calc
I hope that is now OK all.

with regards
Ch. Hanisch

Post Reply

Return to “CentOS 8 - General Support”