You are not logged in.

#1 2021-12-11 07:48:54

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 116

Anyway to Disable Pacman Warnings About Missing Language Files?

I've set an option in Bleachbit to remove language files other than for my native language because I don't use them and they take up quite a bit of space. However, during system upgrades and AUR upgrades I get lines of warnings about missing language files. A small sampling of the errors follows:

warning: could not get file information for usr/share/locale/be/
warning: could not get file information for usr/share/locale/be/LC_MESSAGES/
warning: could not get file information for usr/share/locale/be/LC_MESSAGES/systemd.mo

warning: could not get file information for usr/lib/chromium/locales/ms.pak

warning: could not get file information for usr/share/man/de/
warning: could not get file information for usr/share/man/de/man1/
warning: could not get file information for usr/share/man/de/man1/inkscape.1.gz
warning: could not get file information for usr/share/man/de/man1/inkview.1.gz

Is there a way to disable the warnings?

Last edited by walkingstickfan (2021-12-11 07:49:25)


Arch Linux with Openbox & Tint2

Offline

#2 2021-12-11 07:53:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

man pacman.conf | less -p NoExtract

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-12-11 08:05:24

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 116

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

Okay, but wouldn't you need to list each package? If so, that would be quite a list.


Arch Linux with Openbox & Tint2

Offline

#4 2021-12-11 11:08:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,299

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

No, read the section properly. You don't list packages but filepaths and you can use globs and inverse globs

Offline

#5 2021-12-11 11:56:37

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,732
Website

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

https://wiki.archlinux.org/title/Pacman … _to_system

% grep NoE /etc/pacman.conf 
NoExtract   = usr/share/gtk-doc/* 
NoExtract   = usr/share/locale/* !usr/share/locale/en_US !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/licenses*
NoExtract   = usr/share/qt4/translations/*
NoExtract   = usr/share/X11/locale/*
NoExtract   = usr/lib/chromium/locales/* !usr/lib/chromium/locales/en-US.pak
NoExtract   = usr/lib/modules/*/kernel/crypto/speck.ko.xz

Last edited by graysky (2021-12-11 11:58:02)

Offline

#6 2021-12-11 19:18:17

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 116

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

@V1del & graysky: Okay, but that's still a bit much in my opinion just to disable warnings about missing language files. One thing that Debian does better in my opinion. I don't get any warnings about the missing language files in Debian. In any case, thank you both for your input.

Last edited by walkingstickfan (2021-12-11 19:20:26)


Arch Linux with Openbox & Tint2

Offline

#7 2021-12-11 19:20:52

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

The NoExtract solution is the correct approach. Bleachbit is breaking pacman: the warnings are there for a reason.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2021-12-11 19:23:27

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 116

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

How is it breaking pacman? Why does pacman care about missing language files? I don't use them, so therefore I don't want them. They take up quite a bit of disk space that I can put to better use.


Arch Linux with Openbox & Tint2

Offline

#9 2021-12-11 19:30:11

loqs
Member
Registered: 2014-03-06
Posts: 18,988

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

The only files pacman treats differently are backup files.  It has no concept of language files or low value files or files walkingstickfan does not want.

Offline

#10 2021-12-11 19:33:24

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

walkingstickfan wrote:

How is it breaking pacman? Why does pacman care about missing language files? I don't use them, so therefore I don't want them. They take up quite a bit of disk space that I can put to better use.

So don't install them in the first place. Bleachbit is a crude tool that operates behind pacman's back.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2021-12-11 19:37:50

walkingstickfan
Member
From: USA
Registered: 2021-05-10
Posts: 116

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

Here's a novel thought...why not change pacman to only install the language files for the language selected during the OS installation or the current language default selected by the user? Why is the default to install a bunch of language files that most people probably don't use?

Last edited by walkingstickfan (2021-12-11 19:39:43)


Arch Linux with Openbox & Tint2

Offline

#12 2021-12-11 19:41:00

loqs
Member
Registered: 2014-03-06
Posts: 18,988

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

walkingstickfan wrote:

Here's a novel thought...why not change pacman to only install the language files for the language selected during the OS installation or the current language default selected by the user? Why is the default to install a bunch of language files that most people probably don't use?

How could pacman do that when it has no concept of language files?

Offline

#13 2021-12-11 21:54:16

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,606
Website

Re: Anyway to Disable Pacman Warnings About Missing Language Files?

Q: how do I stop pacman noticing that I've removed files that it installed
A: tell pacman not to install those files in the first place
R: but I want to keep installing the files, then deleting the files afterwards! Make spacebar-heating a configurable option!.

The appropriate solutions are there for you to utilise. If you want to implement alternative pacman behaviour, feel free to fork the project.

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB