Prexy
August 22, 2022, 6:16am
#1
Recently, I noticed that zypper dup updated gtk files in support of various languages. My native language is English. I can swear in two or three others but have no daily use for languages brought in by this update: Thai, Vietnamese, Amharic, Inuktitut and Tigrigna. Most of the files are small, but I don’t need them. I don’t know if they are all languages or some other input vehicle! I spotted only the 10 files for gtk and gtk3 so there may be more.
I can search yast for these known files and delete them, but how can I set things up so only English language files are installed? There may be other language files that I am unaware of.
Prexy:
Recently, I noticed that zypper dup updated gtk files in support of various languages. My native language is English. I can swear in two or three others but have no daily use for languages brought in by this update: Thai, Vietnamese, Amharic, Inuktitut and Tigrigna. Most of the files are small, but I don’t need them. I don’t know if they are all languages or some other input vehicle! I spotted only the 10 files for gtk and gtk3 so there may be more.
I can search yast for these known files and delete them, but how can I set things up so only English language files are installed? There may be other language files that I am unaware of.
Hi
I use the following to remove all *-lang files and then add locks;
rpm -qa *-lang --qf "%{name}
" |xargs zypper rm -u
zypper al *-lang
For me, that first command offers to do the following:
**#** rpm -qa *-lang --qf "%{name}
" |xargs zypper rm -u
Reading installed packages...
Resolving package dependencies...
The following 650 packages are going to be REMOVED:
LONG LIST OF PACKAGES
The following 2 patterns are going to be REMOVED:
kde kde_plasma
650 packages to remove.
After the operation, 1019.6 MiB will be freed.
**Continue? [y/n/v/...? shows all options] (y): **
I politely declined the offer…
If you trust a tool like bleachbit, it can do that job. In the settings you can select the languages you want to keep. Obviously you will need to run it as root, which can be problematic. I use the tool to delete all languages except EN and DE.
burgess-m:
For me, that first command offers to do the following:
**#** rpm -qa *-lang --qf "%{name}
" |xargs zypper rm -u
Reading installed packages...
Resolving package dependencies...
The following 650 packages are going to be REMOVED:
LONG LIST OF PACKAGES
The following 2 patterns are going to be REMOVED:
kde kde_plasma
650 packages to remove.
After the operation, 1019.6 MiB will be freed.
**Continue? [y/n/v/...? shows all options] (y): **
I politely declined the offer…
That’s because plasma requires iso-codes-lang.
Prexy:
Recently, I noticed that zypper dup updated gtk files in support of various languages. My native language is English. I can swear in two or three others but have no daily use for languages brought in by this update: Thai, Vietnamese, Amharic, Inuktitut and Tigrigna. Most of the files are small, but I don’t need them. I don’t know if they are all languages or some other input vehicle! I spotted only the 10 files for gtk and gtk3 so there may be more.
I can search yast for these known files and delete them, but how can I set things up so only English language files are installed? There may be other language files that I am unaware of.
If you have recommended packages enabled, then you can remove those packages and zypper addlock on them.
If you want to stop recommended packages being automatically being pulled by zypper, change this line in zypp.conf:
$ grep Requires /etc/zypp/zypp.conf
solver.onlyRequires = true
Recommended packages are synonymous to not strictly required packages. I recently switched to only required packages as I think it’s more reasonable to manually install supplemental packages rather than maintaining a long lists of locked packages. But that’s a trade off one can make.
Thank you for the explanation. I only ran the command out of curiosity. I’ll leave things as they are.
Prexy
August 23, 2022, 1:17am
#7
What goes in the {name} spot? Do I pick Thai etc?
Hi
No that sorts out the name for you…
No. -lang packages support translations. For each package exists one package comprising all languages:
**erlangen:~ #** zypper se -is kmail
Loading repository data...
Reading installed packages...
S | Name | Type | Version | Arch | Repository
--+---------------------------+---------+-------------+--------+------------------------
**i | kmail | package | 22.08.0-1.1 | x86_64 | openSUSE-Tumbleweed-Oss
**i | kmail-account-wizard | package | 22.08.0-1.1 | x86_64 | openSUSE-Tumbleweed-Oss
i | kmail-account-wizard-lang | package | 22.08.0-1.1 | noarch | openSUSE-Tumbleweed-Oss
i | kmail-application-icons | package | 22.08.0-1.1 | x86_64 | openSUSE-Tumbleweed-Oss
**i | kmail-lang | package | 22.08.0-1.1 | noarch | openSUSE-Tumbleweed-Oss
**i | kmailtransport | package | 22.08.0-1.1 | x86_64 | openSUSE-Tumbleweed-Oss
i | kmailtransport-lang | package | 22.08.0-1.1 | noarch | openSUSE-Tumbleweed-Oss
**erlangen:~ #**
**erlangen:~ #** zypper info --conflicts --obsoletes --provides --recommends --requires --suggests --supplements kmail-lang
Loading repository data...
Reading installed packages...
Information for package kmail-lang:
-----------------------------------
Repository : openSUSE-Tumbleweed-Oss
Name : kmail-lang
Version : 22.08.0-1.1
Arch : noarch
Vendor : openSUSE
Installed Size : 12.9 MiB
Installed : Yes (automatically)
Status : up-to-date
Source package : kmail-22.08.0-1.1.src
Upstream URL : https://apps.kde.org/kmail2
Summary : Translations for package kmail
Description :
Provides translations for the "kmail" package.
Provides : [57]
locale(kmail:ar)
locale(kmail:be)
locale(kmail:bg)
locale(kmail:ca)
locale(kmail:ca@valencia)
locale(kmail:cs)
locale(kmail:da)
locale(kmail:de)
locale(kmail:el)
locale(kmail:en_GB)
locale(kmail:eo)
locale(kmail:es)
locale(kmail:et)
locale(kmail:eu)
locale(kmail:fa)
locale(kmail:fi)
locale(kmail:fr)
locale(kmail:ga)
locale(kmail:gl)
locale(kmail:he)
locale(kmail:hi)
locale(kmail:hr)
locale(kmail:hu)
locale(kmail:ia)
locale(kmail:is)
locale(kmail:it)
locale(kmail:ja)
locale(kmail:kk)
locale(kmail:km)
locale(kmail:ko)
locale(kmail:lt)
locale(kmail:lv)
locale(kmail:mr)
locale(kmail:nb)
locale(kmail:nds)
locale(kmail:nl)
locale(kmail:nn)
locale(kmail:pa)
locale(kmail:pl)
locale(kmail:pt)
locale(kmail:pt_BR)
locale(kmail:ro)
locale(kmail:ru)
locale(kmail:sk)
locale(kmail:sl)
locale(kmail:sq)
locale(kmail:sr)
locale(kmail:sv)
locale(kmail:ta)
locale(kmail:tr)
locale(kmail:ug)
locale(kmail:uk)
locale(kmail:wa)
locale(kmail:zh_CN)
locale(kmail:zh_TW)
kmail-lang = 22.08.0-1.1
kmail-lang-all = 22.08.0
Requires : kmail = 22.08.0
Conflicts : ---
Obsoletes : ---
Recommends : ---
Suggests : ---
Supplements : [55]
(kmail and namespace:language(ar))
(kmail and namespace:language(be))
(kmail and namespace:language(bg))
(kmail and namespace:language(ca))
(kmail and namespace:language(ca@valencia))
(kmail and namespace:language(cs))
(kmail and namespace:language(da))
(kmail and namespace:language(de))
(kmail and namespace:language(el))
(kmail and namespace:language(en_GB))
(kmail and namespace:language(eo))
(kmail and namespace:language(es))
(kmail and namespace:language(et))
(kmail and namespace:language(eu))
(kmail and namespace:language(fa))
(kmail and namespace:language(fi))
(kmail and namespace:language(fr))
(kmail and namespace:language(ga))
(kmail and namespace:language(gl))
(kmail and namespace:language(he))
(kmail and namespace:language(hi))
(kmail and namespace:language(hr))
(kmail and namespace:language(hu))
(kmail and namespace:language(ia))
(kmail and namespace:language(is))
(kmail and namespace:language(it))
(kmail and namespace:language(ja))
(kmail and namespace:language(kk))
(kmail and namespace:language(km))
(kmail and namespace:language(ko))
(kmail and namespace:language(lt))
(kmail and namespace:language(lv))
(kmail and namespace:language(mr))
(kmail and namespace:language(nb))
(kmail and namespace:language(nds))
(kmail and namespace:language(nl))
(kmail and namespace:language(nn))
(kmail and namespace:language(pa))
(kmail and namespace:language(pl))
(kmail and namespace:language(pt))
(kmail and namespace:language(pt_BR))
(kmail and namespace:language(ro))
(kmail and namespace:language(ru))
(kmail and namespace:language(sk))
(kmail and namespace:language(sl))
(kmail and namespace:language(sq))
(kmail and namespace:language(sr))
(kmail and namespace:language(sv))
(kmail and namespace:language(ta))
(kmail and namespace:language(tr))
(kmail and namespace:language(ug))
(kmail and namespace:language(uk))
(kmail and namespace:language(wa))
(kmail and namespace:language(zh_CN))
(kmail and namespace:language(zh_TW))
**erlangen:~ #**
Deleting kmail-lang will delete translations for all languages.
Prexy
August 24, 2022, 9:05pm
#10
I deleted the 10 files mentioned above with no ill effects. Having read some of the options listed here, I did a search in yast for “-lang” and dozens of files, some of them quite large, were listed. Some of these list en (for English?) so I’m afraid to delete. I don’t want translation files, but I do want the files that provide the English language.
Prexy:
I deleted the 10 files mentioned above with no ill effects. Having read some of the options listed here, I did a search in yast for “-lang” and dozens of files, some of them quite large, were listed. Some of these list en (for English?) so I’m afraid to delete. I don’t want translation files, but I do want the files that provide the English language.
Hi
Never had an issue with removing all and then adding locks around 1,279 *-lang files locked here…
zypper se *-lang | wc -l
1279
zypper se -i *-lang
Loading repository data...
Reading installed packages...
No matching items found.
Prexy
August 25, 2022, 9:43pm
#12
malcolmlewis:
Hi
Never had an issue with removing all and then adding locks around 1,279 *-lang files locked here…
zypper se *-lang | wc -l
1279
zypper se -i *-lang
Loading repository data...
Reading installed packages...
No matching items found.
Don’t know what the switches on zypper se do,
zypper se --help
shows only i for installed. The first command gave me a count of 1323. The second command listed lots but not all of them. Now I’m guessing I should have run a delete command in between those two.
Prexy:
Don’t know what the switches on zypper se do,
zypper se --help
shows only i for installed. The first command gave me a count of 1323. The second command listed lots but not all of them. Now I’m guessing I should have run a delete command in between those two.
Hi
se == search for all *-lang packages and count (wc -l). The -i == installed. Yes, you need to delete the *-lang files in the output of the -i command… just go through the list and select a few at a time is it shows up other packages that are not language files.