You are not logged in.

#1 2014-01-20 04:41:55

studentik
Member
Registered: 2013-05-24
Posts: 38

[SOLVED] Arch has pacman -Qkk "Size mismatch" for files in /usr !

Hello!

With following command I was checking on files that differ from it's original versions in mtree:

pacman -Qlkk 2>/tmp/pacman_size_mismatch 1>/dev/null; cat /tmp/pacman_size_mismatch | grep "Size mismatch" | grep -v /etc/

Files in /usr look suspicious, because /usr should only have read-only data (according to wiki):
warning: linux: /usr/lib/modules/3.12.7-2-ARCH/modules.alias (Size mismatch)
warning: linux: /usr/lib/modules/3.12.7-2-ARCH/modules.alias.bin (Size mismatch)
warning: linux: /usr/lib/modules/3.12.7-2-ARCH/modules.dep (Size mismatch)
warning: linux: /usr/lib/modules/3.12.7-2-ARCH/modules.dep.bin (Size mismatch)
warning: linux: /usr/lib/modules/3.12.7-2-ARCH/modules.symbols (Size mismatch)
warning: linux: /usr/lib/modules/3.12.7-2-ARCH/modules.symbols.bin (Size mismatch)

I have checked other machine and reinstalled linux package, but it seems like it's default behaviour.
Is there any explanation on that? Is this some error?

Last edited by studentik (2014-01-20 13:33:36)

Offline

#2 2014-01-20 04:45:41

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,591

Re: [SOLVED] Arch has pacman -Qkk "Size mismatch" for files in /usr !

depmod is run in the post-install script when installing the kernel, so those files get modified at that time.

Offline

#3 2014-01-20 05:13:28

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] Arch has pacman -Qkk "Size mismatch" for files in /usr !

Just so you know, you don't need the 'l' in -Qlkk.  Just -Qkk will yield the same results.  If you use -Qlkk, pacman will first list all the files in every single package first, then give you the -Qkk results.

Offline

#4 2014-01-20 13:32:50

studentik
Member
Registered: 2013-05-24
Posts: 38

Re: [SOLVED] Arch has pacman -Qkk "Size mismatch" for files in /usr !

Thanks! So it's not a bug, its a feature smile

Offline

Board footer

Powered by FluxBB