You are not logged in.
I use bleachbit to remove unneeded locales. I noticed that pacman gives a number of warnings related to what I believe to be missing files (again, bleachbit). Is there a switch or config setting to suppress these?
Example updating chromium:
(1/1) checking keys in keyring [############################################] 100%
(1/1) checking package integrity [############################################] 100%
(1/1) loading package files [############################################] 100%
(1/1) checking for file conflicts [############################################] 100%
(1/1) checking available disk space [############################################] 100%
warning: could not get file information for usr/lib/chromium/locales/ar.pak
warning: could not get file information for usr/lib/chromium/locales/bg.pak
warning: could not get file information for usr/lib/chromium/locales/bn.pak
warning: could not get file information for usr/lib/chromium/locales/ca.pak
warning: could not get file information for usr/lib/chromium/locales/cs.pak
warning: could not get file information for usr/lib/chromium/locales/da.pak
warning: could not get file information for usr/lib/chromium/locales/de.pak
warning: could not get file information for usr/lib/chromium/locales/el.pak
warning: could not get file information for usr/lib/chromium/locales/es.pak
warning: could not get file information for usr/lib/chromium/locales/et.pak
warning: could not get file information for usr/lib/chromium/locales/fa.pak
warning: could not get file information for usr/lib/chromium/locales/fi.pak
warning: could not get file information for usr/lib/chromium/locales/fr.pak
warning: could not get file information for usr/lib/chromium/locales/he.pak
warning: could not get file information for usr/lib/chromium/locales/hi.pak
warning: could not get file information for usr/lib/chromium/locales/hr.pak
warning: could not get file information for usr/lib/chromium/locales/hu.pak
warning: could not get file information for usr/lib/chromium/locales/id.pak
warning: could not get file information for usr/lib/chromium/locales/it.pak
warning: could not get file information for usr/lib/chromium/locales/ja.pak
warning: could not get file information for usr/lib/chromium/locales/ko.pak
warning: could not get file information for usr/lib/chromium/locales/lt.pak
warning: could not get file information for usr/lib/chromium/locales/mr.pak
warning: could not get file information for usr/lib/chromium/locales/ms.pak
warning: could not get file information for usr/lib/chromium/locales/nb.pak
warning: could not get file information for usr/lib/chromium/locales/nl.pak
warning: could not get file information for usr/lib/chromium/locales/pl.pak
warning: could not get file information for usr/lib/chromium/locales/pt-BR.pak
warning: could not get file information for usr/lib/chromium/locales/pt-PT.pak
warning: could not get file information for usr/lib/chromium/locales/ro.pak
warning: could not get file information for usr/lib/chromium/locales/ru.pak
warning: could not get file information for usr/lib/chromium/locales/sk.pak
warning: could not get file information for usr/lib/chromium/locales/sl.pak
warning: could not get file information for usr/lib/chromium/locales/sr.pak
warning: could not get file information for usr/lib/chromium/locales/sv.pak
warning: could not get file information for usr/lib/chromium/locales/tr.pak
warning: could not get file information for usr/lib/chromium/locales/uk.pak
warning: could not get file information for usr/lib/chromium/locales/vi.pak
warning: could not get file information for usr/lib/chromium/locales/zh-CN.pak
warning: could not get file information for usr/lib/chromium/locales/zh-TW.pak
Last edited by graysky (2016-02-06 11:44:03)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
It would be unwieldy for so many files, but maybe if you put them in NoExtract they wouldn't be processed? You could test with just one for starters at least.
That said, beyond being unwieldy to configure, I wonder if NoExtract is really designed to handle a large number of entries.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
I was also going to recommend NoExtract rather than whatever bleachbit is. I don't see why it would be unwieldy:
NoExtract = usr/lib/chromium/locales/*.pak
Although those errors seem to be indicative of a different (perhaps db related) issue. You should be able to delete files that were installed via pacman just fine - when the package is reinstalled/upgraded those files would just be replaced (unless this is a new warning with pacman 5).
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Thanks, I didn't realize NoExtract could handle globs. OTOH I expect he doesn't want to prevent all of them from being installed.
The errors seem to occur around the point pacman would otherwise display ":: Processing package changes...". This seems new to me, but I can't say I pay that much attention unless it appears something went wrong...
Last edited by alphaniner (2016-02-06 02:29:52)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
NoExtract = usr/lib/chromium/locales/*.pak !usr/lib/chromium/locales/en.pak
Offline
Placing the locales in NoExtract wouldn't be feasible because bleachbit and localepurge clean all the unnecessary locales installed by different packages on your system. You will have to add a NoExtract line for each of those packages.
Edit: I can confirm the same with libreoffice-still.
Last edited by x33a (2016-02-06 05:34:02)
Offline
The other option is to turn off CheckSpace...
Offline
Thanks! Commenting CheckSpace fixes the problem
Offline
The other option is to turn off CheckSpace...
That was the problem. Thanks, Allan!
To others regarding the NoExtract option: I could do that but I would need to know in advance of all the packages I have installed, which need entries like that. In contrast to adding a '#' in front of CheckSpace...
Last edited by graysky (2016-02-06 11:45:06)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I was also going to recommend NoExtract rather than whatever bleachbit is.
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Placing the locales in NoExtract wouldn't be feasible because bleachbit and localepurge clean all the unnecessary locales installed by different packages on your system. You will have to add a NoExtract line for each of those packages.
Not necessarily. Globing magic can help. I have excess locale-specific stuff blocked on my other computer. I will not have access to that system until Monday so I don't know what my exact entries are, but you have have multiple glob-segments (probably not the right word) for something like "/usr/lib/*/locales/* !/usr/lib/locales/en*"
Not that I just completely made that one up - I don't know how well it would work of if it would block desired files, but the point is that a small handful of well-written lines can do this quite well. There is no black magic in bleachbit either - it just has to find a pattern to match files against for deletion.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
x33a wrote:Placing the locales in NoExtract wouldn't be feasible because bleachbit and localepurge clean all the unnecessary locales installed by different packages on your system. You will have to add a NoExtract line for each of those packages.
Not necessarily. Globing magic can help. I have excess locale-specific stuff blocked on my other computer. I will not have access to that system until Monday so I don't know what my exact entries are, but you have have multiple glob-segments (probably not the right word) for something like "/usr/lib/*/locales/* !/usr/lib/locales/en*"
Not that I just completely made that one up - I don't know how well it would work of if it would block desired files, but the point is that a small handful of well-written lines can do this quite well. There is no black magic in bleachbit either - it just has to find a pattern to match files against for deletion.
True, but we need to know beforehand where all those files are stored. The globs will work fine for most cases, but not all. For example, I got this error with libreoffice-still.
warning: could not get file information for usr/lib/libreoffice/share/autocorr/acor_af-ZA.dat
This file was cleared by bleachbit.
Offline
There is some good advice on the wiki regarding the NoExtract (too lazy to look it up but from my /etc/pacman.conf):
# useless non-English manpages
NoExtract = usr/share/locale/* !usr/share/locale/en* !usr/share/locale/locale.alias
NoExtract = usr/share/help/* !usr/share/help/en*
NoExtract = usr/share/man/* !usr/share/man/man*
NoExtract = usr/share/vim/vim74/lang/* usr/share/licenses*
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
I use bleachbit myself, but mostly just to find new NoExtract rules.
I see no point in installing those files only to immediately remove them again. And it saves me from having to remember to run bleachbit after every pacman -Syu (although I guess with hooks now you can do that too).
Last edited by eschwartz (2016-02-07 01:01:20)
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
There is some good advice on the wiki regarding the NoExtract (too lazy to look it up but from my /etc/pacman.conf):
# useless non-English manpages NoExtract = usr/share/locale/* !usr/share/locale/en* !usr/share/locale/locale.alias NoExtract = usr/share/help/* !usr/share/help/en* NoExtract = usr/share/man/* !usr/share/man/man* NoExtract = usr/share/vim/vim74/lang/* usr/share/licenses*
I was getting an error with glibc
Generating locales...
en_GB.UTF-8...locale alias file `/usr/share/locale/locale.alias' not found: No such file or directory
So I had to add '!usr/share/locale/locale.alias'
NoExtract = usr/share/help/* !usr/share/help/en*
NoExtract = usr/share/locale/* !usr/share/locale/en* !usr/share/locale/locale.alias
NoExtract = usr/share/man/* !usr/share/man/man*
NoExtract = usr/lib/chromium/locales/*.pak !usr/lib/chromium/locales/en.pak
Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64
Offline
Right, that's already in the post you quoted.
Offline
Right, that's already in the post you quoted.
Thanks, so it is *smacks face*
Wherever I copied it from didn't have that part, I should be more observant!
Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64
Offline
My fault.
I added the original Wiki entry, but forgot to add that exception. Fixed.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
My fault.
I added the original Wiki entry, but forgot to add that exception. Fixed.
No problem and thanks.
You said earlier you use bleachbit to find new rules, would you mind posting any you've discovered you think might be of interest?
Ryzen 9 5950X, X570S Aorus Pro AX, RX 6600, Arch x86_64
Offline
usr/share/qt4/translations/*
usr/share/i18n/locales/*
usr/share/X11/locale/*
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
usr/share/qt4/translations/*
usr/share/i18n/locales/*
usr/share/X11/locale/*
Guessing you want to keep one particular one though....
NoExtract = usr/share/i18n/locales/* !usr/share/i18n/locales/en_US
Last edited by graysky (2016-02-18 19:44:17)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Yes, as usual make an exception for your chosen locale.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline