View Full Version : get rid of packages languages...
gorogoren
2nd May 2012, 04:19 PM
How to get rid of all the packages languages of my system? really need to save disk space...
tia!
stevea
2nd May 2012, 04:47 PM
You can use 'yumex' and remove various the language support - but that won't save much space.
Switching desktops to lxde and removing gnome3 might save ~150GB.
'yum clean all' can save an unconscionable amount. Yum logs are very fat.
Remove 'gcc' and the development package if you don't use them.
nonamedotc
2nd May 2012, 04:52 PM
Aren't language packs *i18n packs? For example
yum search i18n
Loaded plugins: langpacks, presto, refresh-packagekit
[ ... ]
kde-i18n-Brazil.noarch : Brazil(pt_BR) Portuguese language support for KDE3
kde-i18n-British.noarch : British(en_GB) English support for KDE3
kde-i18n-Bulgarian.noarch : Bulgarian(bg) language support for KDE3
kde-i18n-Catalan.noarch : Catalan(ca) language support for KDE3
kde-i18n-Chinese.noarch : Chinese(zh_CN) (Simplified Chinese) language support for KDE3
kde-i18n-Chinese-Big5.noarch : Chinese(zh_TW) (Big5) language support for KDE3
[ ... ]
Not sure if this is what you are looking for though.
[ ... ]
Switching desktops to lxde and removing gnome3 might save ~150GB.
[ ... ]
You mean 150 MB right?
PabloTwo
2nd May 2012, 05:05 PM
You can surgically remove the foreign language support files included in rpm packages by deleting all the directories in /usr/share/locale/ except the en_US directory. Of course, installing any new package or updating any package that places files there will bring them back. On my system, doing that would free up about 402MB of disk space.
BASH:~/-> du -hs /usr/share/locale
402M /usr/share/locale
BASH:~/-> du -hs /usr/share/locale/en_US
80K /usr/share/locale/en_US
Doing "yum clean all" is not much of a solution, as yum will only have to re-create most, or all, wiped files the very next time you use yum. Though, if you ever used "yum search", those filelists.db files are huge, and avoiding the use of "yum search" again will keep those at bay. As stevea already suggested, removing packages you don't either need or use can pare off a lot of unneeded bloat.
BASH:~/-> ll /var/cache/yum/x86_64/16/fedora/4497b3b08a1e8698de02474c664f6c513a5c4d83370543228f 31523234e6874a-filelists.sqlite
-rw-r--r--. 1 root root 121817088 Mar 28 19:15 /var/cache/yum/x86_64/16/fedora/4497b3b08a1e8698de02474c664f6c513a5c4d83370543228f 31523234e6874a-filelists.sqlite
Edit: Note also, removing those locale directories could provoke yum into spitting out a lot of warning messages when yum does a "yum check".
gorogoren
2nd May 2012, 06:30 PM
You mean 150 MB right?
http://ompldr.org/vYjIyag/icon_mrgreen.gifhttp://ompldr.org/vZGxodw/icon_cunao.gif[/IMG[IMG]http://ompldr.org/vYjJmcg/icon_razz.gifhttp://ompldr.org/vYjJmcg/icon_razz.gif
stevea
2nd May 2012, 09:10 PM
Aren't language packs *i18n packs? For example
[....]
You mean 150 MB right?
Yeah - Doh ! But even that's not the complete story .....
yum erase gnome\*
results in .....
Remove 58 Packages (+115 Dependent packages)
Installed size: 492 M
Is this ok [y/N]:
but that overstates the case - some of those dependent packages are needed.
Salamandra
3rd May 2012, 10:25 AM
Bleachbit
http://bleachbit.sourceforge.net/
Removes unused languages.
You can try it.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.