oo_miguel 2017-01-31 18:50:41
Can I somehow check if all files from all packages are in place?
rjsalts 2017-01-31 18:53:31
oo_miguel: yes
rjsalts 2017-01-31 18:54:54
oo_miguel: https://packages.debian.org/sid/tiger provides a script that almost does that
oo_miguel 2017-01-31 18:55:24
rjsalts: thank you, I will study this script
rjsalts 2017-01-31 18:56:01
oo_miguel: but basically if you have a package installed it will list the files it owns in /var/lib/dpkg/info/foo.list
oo_miguel 2017-01-31 18:56:32
yeah I more thought about some kind of oneliner, that will get a list of all files installed and check if there are indeed there
rjsalts 2017-01-31 19:03:18
oo_miguel: yeah, something like IFS=$'\n' for file in $(cat /var/lib/dpkg/info/*.list);do if [ -f ${file} ];do echo ${file} is there;else echo ${file} is missing;fi;done
oo_miguel 2017-01-31 19:03:36
hehe yeah I came up with something similar : for fn in `cat /var/lib/dpkg/info/*.list`; do [ -f $fn ] && echo "$fn =>exists" || echo "$fn =>not exist!"; done | grep "=>not exists"
rjsalts 2017-01-31 19:04:23
use the IFS=$'\n' for filenames with spaces in them
oo_miguel 2017-01-31 19:05:15
oh ok, thank you. did not know about this