[solved] Questions about pacman -Qk and -Qkk output.

I was looking through the pacman manual today to see if there was anything I could add to a some Arch maintenance scripts I've been working on and came across -Qk which, among other things, lists missing files. I ran pacman -Qk in terminal and found a few package installations were missing files. I reinstalled them manually check again and the files were no longer missing. The first package I saw that was missing a file was gnome-command-center for instance.
So I really have two questions.
1) Is it normal for packages to have missing files?
2) Is it a good idea to reinstall these packages to replace the missing files.
I then ran pacman -Qkk, and got even more disturbing information such as modification time mismatches and size mismatches.
$ pacman -Qkk |grep warning
warning: avahi: /etc/avahi/avahi-daemon.conf (Modification time mismatch)
warning: avahi: /etc/avahi/hosts (Modification time mismatch)
warning: avahi: /etc/avahi/services/sftp-ssh.service (Modification time mismatch)
warning: avahi: /etc/avahi/services/ssh.service (Modification time mismatch)
warning: avahi: /usr/lib/avahi/service-types.db (Modification time mismatch)
warning: avahi: /usr/share/avahi/service-types (Modification time mismatch)
warning: bash: /etc/bash.bash_logout (Modification time mismatch)
warning: bash: /etc/bash.bashrc (Modification time mismatch)
warning: bash: /etc/skel/.bash_logout (Modification time mismatch)
warning: bash: /etc/skel/.bash_profile (Modification time mismatch)
warning: bash: /etc/skel/.bashrc (Modification time mismatch)
warning: bluez: /etc/bluetooth/main.conf (Modification time mismatch)
warning: bluez: /etc/dbus-1/system.d/bluetooth.conf (Modification time mismatch)
warning: ca-certificates-java: /etc/default/cacerts (Modification time mismatch)
warning: cdrtools: /etc/default/cdrecord (Modification time mismatch)
warning: cdrtools: /etc/default/rscsi (Modification time mismatch)
warning: chromium: /etc/chromium/default (Modification time mismatch)
warning: chromium: /etc/chromium/default (Size mismatch)
warning: colord: /var/lib/colord (UID mismatch)
warning: colord: /var/lib/colord (GID mismatch)
warning: dhcpcd: /etc/dhcpcd.conf (Modification time mismatch)
warning: e2fsprogs: /etc/mke2fs.conf (Modification time mismatch)
warning: filesystem: /etc/crypttab (Modification time mismatch)
warning: filesystem: /etc/fstab (Modification time mismatch)
warning: filesystem: /etc/fstab (Size mismatch)
warning: filesystem: /etc/group (Modification time mismatch)
warning: filesystem: /etc/group (Size mismatch)
warning: filesystem: /etc/gshadow (Permissions mismatch)
warning: filesystem: /etc/gshadow (Modification time mismatch)
warning: filesystem: /etc/gshadow (Size mismatch)
warning: filesystem: /etc/host.conf (Modification time mismatch)
warning: filesystem: /etc/hosts (Modification time mismatch)
warning: filesystem: /etc/issue (Modification time mismatch)
warning: filesystem: /etc/ld.so.conf (Modification time mismatch)
warning: filesystem: /etc/motd (Modification time mismatch)
warning: filesystem: /etc/mtab (Modification time mismatch)
warning: filesystem: /etc/mtab (Symlink path mismatch)
warning: filesystem: /etc/nsswitch.conf (Modification time mismatch)
warning: filesystem: /etc/passwd (Modification time mismatch)
warning: filesystem: /etc/passwd (Size mismatch)
warning: filesystem: /etc/profile (Modification time mismatch)
warning: filesystem: /etc/resolv.conf (Modification time mismatch)
warning: filesystem: /etc/resolv.conf (Size mismatch)
warning: filesystem: /etc/securetty (Modification time mismatch)
warning: filesystem: /etc/shadow (Permissions mismatch)
warning: filesystem: /etc/shadow (Modification time mismatch)
warning: filesystem: /etc/shadow (Size mismatch)
warning: filesystem: /etc/shells (Modification time mismatch)
warning: flashplugin: /etc/adobe/mms.cfg (Modification time mismatch)
warning: flashplugin: /etc/adobe/mms.cfg (Size mismatch)
warning: glibc: /etc/locale.gen (Modification time mismatch)
warning: glibc: /etc/locale.gen (Size mismatch)
warning: gnome-control-center: /usr/share/polkit-1/rules.d/gnome-control-center.rules (Permission denied)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/GnoMenu (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/GnoMenu (Size mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/GnoMenu.conf (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/GnoMenu.conf (Size mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/auto-load.conf (Permissions mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/auto-load.conf (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/auto-load.conf (Size mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/icon (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/icon (Size mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/preview (Permissions mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/preview (Modification time mismatch)
warning: gnomenu: /usr/share/cairo-dock/plug-ins/Dbus/third-party/GnoMenu/preview (Size mismatch)
warning: grub: /boot/grub/grub.cfg (Permissions mismatch)
warning: grub: /boot/grub/grub.cfg (Modification time mismatch)
warning: grub: /boot/grub/grub.cfg (Size mismatch)
warning: iproute2: /etc/iproute2/ematch_map (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_dsfield (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_protos (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_realms (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_scopes (Modification time mismatch)
warning: iproute2: /etc/iproute2/rt_tables (Modification time mismatch)
warning: jack: /etc/security/limits.d/99-audio.conf (Modification time mismatch)
warning: java-common: /etc/profile.d/jre.csh (Modification time mismatch)
warning: java-common: /etc/profile.d/jre.sh (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/calendars.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/content-types.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/flavormap.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/fontconfig.bfc (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/fontconfig.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/logging.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/net.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/psfont.properties.ja (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/psfontj2d.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/sound.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/tz.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/amd64/jvm.cfg (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/images/cursors/cursors.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/management/jmxremote.access (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/management/jmxremote.password (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/management/management.properties (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/management/snmp.acl (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/security/java.policy (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/security/java.security (Modification time mismatch)
warning: jre7-openjdk-headless: /etc/java-7-openjdk/security/nss.cfg (Modification time mismatch)
warning: krb5: /etc/krb5.conf (Modification time mismatch)
warning: krb5: /var/lib/krb5kdc/kdc.conf (Modification time mismatch)
warning: libcups: /etc/cups/client.conf (Modification time mismatch)
warning: libirman: /etc/irman.conf (Modification time mismatch)
warning: libnl: /etc/libnl/classid (Modification time mismatch)
warning: libnl: /etc/libnl/pktloc (Modification time mismatch)
warning: libreoffice-still-common: /etc/libreoffice/bootstraprc (Modification time mismatch)
warning: libreoffice-still-common: /etc/libreoffice/psprint.conf (Modification time mismatch)
warning: libreoffice-still-common: /etc/libreoffice/sofficerc (Modification time mismatch)
warning: libreoffice-still-common: /etc/profile.d/libreoffice-still-common.csh (Modification time mismatch)
warning: libreoffice-still-common: /etc/profile.d/libreoffice-still-common.sh (Modification time mismatch)
warning: linux: /etc/mkinitcpio.d/linux.preset (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.alias (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.alias (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.alias.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.alias.bin (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.builtin.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.dep (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.dep (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.dep.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.dep.bin (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.devname (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.softdep (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.symbols (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.symbols (Size mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.symbols.bin (Modification time mismatch)
warning: linux: /usr/lib/modules/3.16.2-1-ARCH/modules.symbols.bin (Size mismatch)
warning: lirc-utils: /etc/lirc/lirc_options.conf (Modification time mismatch)
warning: lirc-utils: /etc/lirc/lircd.conf (Modification time mismatch)
warning: lirc-utils: /etc/lirc/lircmd.conf (Modification time mismatch)
warning: lvm2: /etc/lvm/lvm.conf (Modification time mismatch)
warning: mdadm: /etc/mdadm.conf (Modification time mismatch)
warning: mime-types: /etc/mime.types (Modification time mismatch)
warning: mkinitcpio: /etc/mkinitcpio.conf (Modification time mismatch)
warning: mkinitcpio: /etc/mkinitcpio.conf (Size mismatch)
warning: mplayer: /etc/mplayer/codecs.conf (Modification time mismatch)
warning: mplayer: /etc/mplayer/input.conf (Modification time mismatch)
warning: nano: /etc/nanorc (Modification time mismatch)
warning: networkmanager: /etc/NetworkManager/NetworkManager.conf (Modification time mismatch)
warning: openresolv: /etc/resolvconf.conf (Modification time mismatch)
warning: openssl: /etc/ssl/openssl.cnf (Modification time mismatch)
warning: pacman: /etc/makepkg.conf (Modification time mismatch)
warning: pacman: /etc/makepkg.conf (Size mismatch)
warning: pacman: /etc/pacman.conf (Modification time mismatch)
warning: pacman: /etc/pacman.conf (Size mismatch)
warning: pacman-mirrorlist: /etc/pacman.d/mirrorlist (UID mismatch)
warning: pacman-mirrorlist: /etc/pacman.d/mirrorlist (GID mismatch)
warning: pacman-mirrorlist: /etc/pacman.d/mirrorlist (Modification time mismatch)
warning: pacman-mirrorlist: /etc/pacman.d/mirrorlist (Size mismatch)
warning: pam: /etc/environment (Modification time mismatch)
warning: pam: /etc/default/passwd (Modification time mismatch)
warning: pam: /etc/security/access.conf (Modification time mismatch)
warning: pam: /etc/security/group.conf (Modification time mismatch)
warning: pam: /etc/security/limits.conf (Modification time mismatch)
warning: pam: /etc/security/namespace.conf (Modification time mismatch)
warning: pam: /etc/security/namespace.init (Modification time mismatch)
warning: pam: /etc/security/pam_env.conf (Modification time mismatch)
warning: pam: /etc/security/time.conf (Modification time mismatch)
warning: polkit: /etc/polkit-1/rules.d/50-default.rules (Permission denied)
warning: pulseaudio-alsa: /etc/asound.conf (Modification time mismatch)
warning: rhash: /etc/rhashrc (Modification time mismatch)
warning: rhash: /etc/rhashrc (Size mismatch)
warning: rsync: /etc/rsyncd.conf (Modification time mismatch)
warning: rsync: /etc/xinetd.d/rsync (Modification time mismatch)
warning: samba: /etc/conf.d/samba (Modification time mismatch)
warning: samba: /etc/logrotate.d/samba (Modification time mismatch)
warning: samba: /etc/pam.d/samba (Modification time mismatch)
warning: sudo: /etc/sudoers (Modification time mismatch)
warning: sudo: /etc/sudoers (Size mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.hostname1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.locale1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.login1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.machine1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.systemd1.conf (Modification time mismatch)
warning: systemd: /etc/dbus-1/system.d/org.freedesktop.timedate1.conf (Modification time mismatch)
warning: systemd: /etc/pam.d/systemd-user (Modification time mismatch)
warning: systemd: /etc/systemd/bootchart.conf (Modification time mismatch)
warning: systemd: /etc/systemd/coredump.conf (Modification time mismatch)
warning: systemd: /etc/systemd/journald.conf (Modification time mismatch)
warning: systemd: /etc/systemd/logind.conf (Modification time mismatch)
warning: systemd: /etc/systemd/resolved.conf (Modification time mismatch)
warning: systemd: /etc/systemd/system.conf (Modification time mismatch)
warning: systemd: /etc/systemd/timesyncd.conf (Modification time mismatch)
warning: systemd: /etc/systemd/timesyncd.conf (Size mismatch)
warning: systemd: /etc/systemd/user.conf (Modification time mismatch)
warning: systemd: /etc/udev/udev.conf (Modification time mismatch)
warning: systemd: /var/log/journal/remote (GID mismatch)
warning: texlive-core: /etc/texmf/web2c/updmap.cfg (Modification time mismatch)
warning: texlive-core: /etc/texmf/web2c/updmap.cfg (Size mismatch)
warning: util-linux: /etc/pam.d/chfn (Modification time mismatch)
warning: util-linux: /etc/pam.d/chsh (Modification time mismatch)
warning: util-linux: /etc/pam.d/login (Modification time mismatch)
warning: util-linux: /etc/pam.d/su (Modification time mismatch)
warning: util-linux: /etc/pam.d/su-l (Modification time mismatch)
warning: vim-runtime: /etc/vimrc (Modification time mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Modification time mismatch)
warning: vlc: /usr/lib/vlc/plugins/plugins.dat (Size mismatch)
warning: xorg-xinit: /etc/X11/xinit/xinitrc (Modification time mismatch)
warning: xorg-xinit: /etc/X11/xinit/xserverrc (Modification time mismatch)
warning: xorg-xinit: /etc/skel/.xinitrc (Modification time mismatch)
warning: xorg-xinit: /etc/skel/.xsession (Modification time mismatch)
warning: xorg-xinit: /etc/skel/.xsession (Size mismatch)
warning: yaourt: /etc/yaourtrc (Modification time mismatch)
I'm assuming all of those are bad. "Warning" rarely sounds friendly, though for those files I've modified myself, such as passwd, shadow, and group, its okay. I assume I can fix msot of these by running # pacman -S {package}?
Last edited by nstgc (2014-09-14 01:26:04)

 Awk processes the output from pacman, splits it using [white]space[⁣s] as delimiter and prints only first field $1, which is the package name. Those reoccur if several files are involved, so just to be sure, I also used awks sort, maybe that could be skipped or alternatively sort command outside awk used instead. This sorted output gets fed into uniq, which outputs only unique strings coming from input. And that leaves you with the package list.
Edit: I think those are whitespaces actually, which if I recall correctly include space.
Edit2: So this might be better and certainly a little faster:
pacman -S $(pacman -Qkq | awk '{print $1}' | uniq)
# And this should be even faster, since the output pacman
# delivers seems to be sorted anyway. Should you parse
# something else, use my first suggestion instead.
pacman -Qkq | awk 'BEGIN{ y=0; }; {x=$1; if (x == y){ next; }; print $1; y=x;}'
Edit3: Out of curiosity I tested different methods measuring execution time with a input file consisting out of 1443 lines from pacman -Qkkq. Here are the results and the bottom is the test script.
Sun 14 Sep 15:14:26 CEST 2014, Generating input file
Sun 14 Sep 15:15:22 CEST 2014, Loops: 10
0 : /tmp/awk-adv.log
0.01 : /tmp/awk-sort.log
0 : /tmp/awk-sort-outside.log
0.002 : /tmp/awk-uniq.log
Seconds: 0
Sun 14 Sep 15:15:22 CEST 2014, Loops: 20
0.001 : /tmp/awk-adv.log
0.0095 : /tmp/awk-sort.log
0.0005 : /tmp/awk-sort-outside.log
0 : /tmp/awk-uniq.log
Seconds: 1
Sun 14 Sep 15:15:23 CEST 2014, Loops: 50
0 : /tmp/awk-adv.log
0.0096 : /tmp/awk-sort.log
0.0002 : /tmp/awk-sort-outside.log
0 : /tmp/awk-uniq.log
Seconds: 2
Sun 14 Sep 15:15:25 CEST 2014, Loops: 100
0.0003 : /tmp/awk-adv.log
0.0092 : /tmp/awk-sort.log
0 : /tmp/awk-sort-outside.log
0.0003 : /tmp/awk-uniq.log
Seconds: 5
Sun 14 Sep 15:15:30 CEST 2014, Loops: 200
0.00045 : /tmp/awk-adv.log
0.00955 : /tmp/awk-sort.log
0.0001 : /tmp/awk-sort-outside.log
0.0006 : /tmp/awk-uniq.log
Seconds: 8
Sun 14 Sep 15:15:38 CEST 2014, Loops: 500
0.00042 : /tmp/awk-adv.log
0.0094 : /tmp/awk-sort.log
0.0004 : /tmp/awk-sort-outside.log
0.00026 : /tmp/awk-uniq.log
Seconds: 21
Sun 14 Sep 15:15:59 CEST 2014, Loops: 1000
0.00034 : /tmp/awk-adv.log
0.00942 : /tmp/awk-sort.log
0.00042 : /tmp/awk-sort-outside.log
0.00025 : /tmp/awk-uniq.log
Seconds: 42
Sun 14 Sep 15:16:41 CEST 2014, Loops: 2000
0.00038 : /tmp/awk-adv.log
0.009355 : /tmp/awk-sort.log
0.000285 : /tmp/awk-sort-outside.log
0.00042 : /tmp/awk-uniq.log
Seconds: 83
Sun 14 Sep 15:18:04 CEST 2014, Loops: 5000
0.000388 : /tmp/awk-adv.log
0.009274 : /tmp/awk-sort.log
0.00034 : /tmp/awk-sort-outside.log
0.000366 : /tmp/awk-uniq.log
Seconds: 208
Sun 14 Sep 15:21:32 CEST 2014, Loops: 10000
0.00036 : /tmp/awk-adv.log
0.009286 : /tmp/awk-sort.log
0.000346 : /tmp/awk-sort-outside.log
0.000358 : /tmp/awk-uniq.log
Seconds: 419
Sun 14 Sep 15:28:31 CEST 2014, Loops: 20000
0.00029 : /tmp/awk-adv.log
0.009115 : /tmp/awk-sort.log
0.0002725 : /tmp/awk-sort-outside.log
0.000299 : /tmp/awk-uniq.log
Seconds: 828
Sun 14 Sep 15:42:19 CEST 2014, Loops: 50000
0.0003174 : /tmp/awk-adv.log
0.0093014 : /tmp/awk-sort.log
0.0002422 : /tmp/awk-sort-outside.log
0.000292 : /tmp/awk-uniq.log
Seconds: 2171
 The awk internal sorting is the slowest method, but it seems it initializes longer, since there appears to be a constant difference between internal and external sorting. Uniq fed by awk is faster with smaller loops, but gets slower if repeated more often, yet overall remain fastest with the unique function I used within awk. It appears the more lines the input has, the slower uniq in comparison uniq in awk gets. Here is the testing script:
#!/bin/bash
LOOPS=('10' '20' '50' '100' '200' '500' '1000' '2000' '5000' '10000' '20000' '50000');
rm /tmp/results*.log
echo $(date), Generating input file;
pacman -Qkkq > /tmp/input.txt
for LOOP in ${LOOPS[@]}; do
START=$(date +%s);
echo $(date), Loops: $LOOP;
for i in $(seq $LOOP); do env TIME='%e:%U:%S' time awk '{print $1 | "sort" }' /tmp/input.txt | uniq; done 2>&1 >/dev/null | grep : > /tmp/awk-sort.log
for i in $(seq $LOOP); do env TIME='%e:%U:%S' time awk '{print $1}' /tmp/input.txt | sort | uniq; done 2>&1 >/dev/null | grep : > /tmp/awk-sort-outside.log
for i in $(seq $LOOP); do env TIME='%e:%U:%S' time awk '{print $1}' /tmp/input.txt | uniq; done 2>&1 >/dev/null | grep : > /tmp/awk-uniq.log
for i in $(seq $LOOP); do env TIME='%e:%U:%S' time awk 'BEGIN{ y=0; }; {x=$1; if (x == y){ next; }; print $1; y=x;}' /tmp/input.txt; done 2>&1 >/dev/null | grep : > /tmp/awk-adv.log
for FILE in /tmp/awk-*.log; do awk 'BEGIN{x=0; y=0; FS=":"}; {x++; y=y+$1;}; END{print "\t"y/x"\t:\t"FILENAME;}' "$FILE"; done | sort >> /tmp/results-sorted.log
for FILE in /tmp/awk-*.log; do awk 'BEGIN{x=0; y=0; FS=":"}; {x++; y=y+$1;}; END{print "\t"y/x"\t:\t"FILENAME;}' "$FILE"; done | tee -a /tmp/results.log
END=$(date +%s);
DIFF=$(( $END - $START ));
echo Seconds: $DIFF;
done | tee /tmp/awk.log
Last edited by emeres (2014-09-14 14:38:18)

Similar Messages

  • [SOLVED] Question about package updates and ABS

    Hello,
    I have manually compile my kernel in order to apply a patch my laptop needs to suspend. So I use abs and customize the pkgbuild. A few days ago when the update for kernel26-2.6.33.3-2 came out, I thought I'd just refresh abs, rebuild, and then I'd be up to date. But instead now pacman -Syu tells me that there is still an update for the kernel.
    Does building from ABS not get you the latest package update?
    Also, what exactly is the package update compared to a software update? I'm guessing that it is an arch only update to the package but the software itself is the same version. Or am I totally off?
    Thanks for the help!
    Last edited by Fingel (2010-05-12 03:42:38)

    When building via ABS, the package installed gets its version from the PKGBUILD ($pkgver-$pkgrel).  Pacman just looks at available version vs installed version to tell if you should upgrade.
    Your abs tree was probably just not up to date; just because pacman -Syu says your mirror has a package, doesn't mean building via abs _at that moment_ will get that version.
    Be sure to run `abs` to update your tree, then when you're editing the PKGBUILD, check which version it's building.  In some cases, you can simply increment those numbers right in the PKGBUILD before building as source files are often fetched based on those variables, etc. -- but I don't know if I'd recommend that when building something like the kernel.
    Last edited by brisbin33 (2010-05-11 17:08:12)

  • [SOLVED] Question about URxvt - fontconfig and ulr launching

    So today I am slightly rewriting my .Xdefaults (actually outright copying MrElendig's...), and now my URxvt won't launch...
    Here is what I get as an output:
    [ ~ ] urxvt
    urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.
    What's the error?
    You can find my .Xdefaults here:
    http://pastie.org/231515
    Also, I have an issue with my URL handling from within URxvt:
    I want to launch a URL clicking on it. But no matter what I specify for urxvt*matcher.Button, I can only use my middle mouse button (on a Thinkpad X60s.... could that be the problem?).
    Last edited by Stalafin (2008-07-11 14:14:54)

    pseup wrote:
    Xft is for prettier, anti aliased / hinted fonts I think. But I find that using xft makes urxvt extremely sluggish when using large terminals.
    Eg, I open a full screen URXVT (1920x1200), running 'time seq -s " " 1 100000' to print out heaps of text:
    0m0.306s with '-*-terminus-*-*-*-*-12-*-*-*-*-*-*-*'
    0m12.165s with 'xft:terminus:pixelsize=12'
    Sure I'm not looking at full screen terminals of scrolling text all the time, but it is still noticeably slow even in small terminals.
    I don't have url matching enabled now, but I did use Gigamo's config at one stage to try it, and the mouse behaved as expected. Not sure if there is anything in it that would make a difference: http://github.com/gigamo/config/tree/master/.Xdefaults
    pseup: I get different results.  urxvt -fn xft:terminus:pixelsize=12 gives me a time of 5.351s and urxvt -fn -*-terminus-*-*-*-*-12-*-*-*-*-*-*-* gives me a time of ranges from 4-9 seconds! This is in a half screen terminal with the other terminal running the urxvt -fn *** command.
    Fullscreen terminal (1280x800) with fonts defined in Xdefaults give the same results you got. intresting.
    Last edited by semperfiguy (2008-07-10 18:10:04)

  • [SOLVED] Question about DM's and WM's

    ok, so, i am not really a newbie, but im sure this is a newbie question. so im trying to run window manager's such as MetaCity and BlackBox, and i would like to also run a Display Manager, such as GDM (Gnome Display Manager) which is the one i normally use. i know that adding
    # ...Or add any other  Display Manager you want here.
    exec metacity
    to .xinitrc will make it start up, but i think that Display Managers may bypass the .xinitrc, though i may be wrong. i have a few Window Managers installed, but none of them are listed in GDM, only actual Desktop Environments. I have no clue what to do with this, but i do know that i want to have a window manager show up in my display manager, so that i can lock my computer if need be. i know a lot of people just simply use a Window Manager and dont bother with a Display Manager, but i would like to use one. any information or links to a wiki page i may have not found yet would be appreciated, thanks!
    Last edited by SpidermanD5 (2014-12-27 00:15:43)

    SpidermanD5 wrote:... but i think that Display Managers may bypass the .xinitrc
    Some do, some don't.
    SpidermanD5 wrote:any information or links to a wiki page i may have not found yet would be appreciated, thanks!
    What have you found?  Each DM should have a wiki page, and probably a man page.  That's how you'd find out how to configure them as they are all different.

  • [SOLVED]Questions about openbsd ffs and linux ext2fs

    Hello everyone.
    First of all, forgive me if the post is not on the correct section.
    I'm going to install arch linux to my thinkpad and i have some questions:
    I have two external hard disks (once) formatted to openbsd ffs. (now i'm making efforts to turn it to ext2fs )
    1) Does Arch have by default read support for openbsd ffs filesystems or i have to build a custom kernel?
    2)I would mostly like to have read and write access from both OSs. I know that ext2fs should work for read and write from Openbsd and Linux so this could be a good option. My problem starts when i try it for example to format the disks under Openbsd; i successfully created a working ext2 partition, but when i try it
    with an Ubuntu live cd to see if it works, i see no partitions and i have to reformat it. On the other hand, if i create it under Linux, then it's not working under Openbsd.
    So now that i'm migrating to arch, which are the good practices to make partitions work/cooperate under both OSs?
    notes: On Linux, i tried with both gparted and disk utility with no luck.( It works for linux but not for OpenBSD).
    Has anyone managed to work with both ext2fs and both Linux Openbsd?
    What are the best practices in such cases?
    Last edited by lambda (2012-09-26 12:07:26)

    well fstype is one thing , bsd labels vs mbr is another. In case with linux and bsd dualboot best practice is vfat (aka fat32) but with all its limitations ( i can be wrong here 'cos i never tested dual zfs for instance ).

  • [Solved] Questions about /etc/group and /etc/gshadow

    This morning, package filesystem was upgraded to 2015.02-1 and pacnew files were created for /etc/group and /etc/gshadow. I ran diff against my current files, and the differences seem very minor, to me. I need some guidance to understand whether I should implement the pacnew changes.
    The only significant difference I see in the group file is that in my original version, my username is added to the wheel group. This seems correct, to me.
    For gshadow, there is the same difference for wheel. However, there are several entries where my original entry contains an exclamation point, but the new version does not. For example:
    < proc:!::
    > proc:::
    If I run man /etc/gshadow, it does not give me what I understand as a man page, and gives me what appears to be a listing of the stuff in my /etc/gshadow file, instead. Which does not help me.
    So, like I say, I need some guidance on dealing with these pacnew files.
    Tim
    PS - I now see that "man gshadow" gives me an actual man page. Sorry. I am currently studying it.
    Last edited by ratcheer (2015-02-24 21:37:52)

    After the update to filesystem 2015.02-1 some voices in /etc/gshadow were changed (in the pacnew file) from
    systemd-journal-gateway:!::
    systemd-timesync:!::
    systemd-network:!::
    systemd-bus-proxy:!::
    systemd-resolve:!::
    to
    systemd-journal-gateway:::
    systemd-timesync:::
    systemd-network:::
    systemd-bus-proxy:::
    systemd-resolve:::
    What's the change? Before they had a locked password (the ! sign) and now they haven't?

  • Question About Color's and Gradients

    Hi all,
    I have a question about color swatches and gradients.
    I am curious to know, if I have 2 color swatches that I make into a gradient color, is it posible to change the tint of each indivdual color in that gradient and have that applied to the gradient without having to adjust the gradients opacity.
    The reason that I'm asking this is because in creating a project I found that the colors that I chose for to make my gradient from my swatches were to dark, and while I can adjust each one's tint to my liking (if the object they were applied to was going to be a solid color) but that doesn't seem to apply to the overall gradient.
    I hope that makes sense, I know that this was something that was able to be accomplished in quark and was wondering if I can do something similar.

    If you double click your gradient swatch (after adding it to the swatches)
    Then click a colour stop in the gradient, and then change the drop down menu to CMYK (or rgb)
    And you can alter the percentages there. It's not much use for spot colours but it's a start.
    But making tint swatches would be a good start anyway.
    At least then when you double click the gradient (in the swatches) to edit it you can choose from CMYK, RGB, LAB, or Swatches and adjust each colour stop to your liking.

  • Question about clear page and reset pagination

    Hi,
    I have a question about clear pages and the reset pagination in an URL. What is the reason why a clear page doesn't also trigger a reset pagination on the pages which are cleared?
    I can't really imagine a business case where it makes sense to clear all data of page items on a page and don't reset the pagination of reports on that page which probably use a page item in there where clause...
    The drawback of this behavior is that a developer always has to set the reset pagination checkbox when he clears the target page and the even bigger drawback is that if you specify other pages to clear, you can't reset pagination for them, because reset pagination only works for the target page.
    Thanks for your input.
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

    Enhancement request filed, thanks,
    Scott

  • The question about portlet customization and synchronization

    I have a question about portlet customization and synchronization.
    When I call
    NameValuePersonalizationObject data = (NameValuePersonalizationObject) PortletRendererUtil.getEditData(portletRenderRequest);
    portletRenderRequest.setPortletTitle(str);
    portletRenderRequest.putString(aKey, aValue);
    PortletRendererUtil.submitEditData(portletRenderRequest, data);
    Should I make any synchronization myself (use "synchronized" blocks or something else) or this procedure is made thread-safe on the level of the Portal API?

    HI Dimitry,
    I dont think you have to synchronize the block. i guess the code is synchronized internally.
    regards,
    Harsha

  • A question about item "type and release" of  source system creation

    Hello expert,
    I have a question about item "type and release" of  source system creation.
    As we know,when we create a web servie source system,there will display a pop-up which includes three items as "logical system","source system"and "type and release".
    About the item "type and release",when we push "F4" button,there will be three default selections as below:
    "ORA 115     Oracle Applications 11i
    TLF 205     Tealeaf 2.05B
    XPD 020     SAP xPD".
    Who can tell me when and how should I use the three selections.
    And also I attempted to input the item by some optional letters except the default three selections and it seems that I can input it freely.
    Thank you and Best Regards,
    Maggie

    Hello DMK,
    Thank you very much for your answer.It is very helpful for me.
    Can I ask you further about it?
    I got that it is a semantic description item.
    You said the default selections are set by our basis people.Would you like to tell me how should we creat a new value except the default ones for item "type and release"?Only by inputing the value in the item directly?But you see we canot see the new value item we created by ourself when we push "F4" button next time ,is that ok?Or do we have to ask basis people to define one new value item just like the default seletions before we use it.
    Also if possible would you like to describe detail about "This becomes important when you are troubleshooting certain issues especially when RFC connection problems."
    Thank you and Best Regards,
    Maggie
    Message was edited by: Maggie

  • A few questions about the ka790gx and dka790gx

    i have a few questions about the ka790gx and dka790gx , how much better is the dka790gx compaired to the ka790gx ? . how much difference does the ACC function make to overclocking etc , i plan on getting a phenom II 940BE or 720BE . i already have the ka790gx so would it be worth building another system using the dka790gx mobo , or should i keep what i already have and just change the cpu ?

    It's largely irrelevant what other boards had VRM issues other than the KA790GX - the fact is it died at stock settings. Since there is little cost difference between the more robust DKA790GX (or Platinum if you really need 1394) why bother with the proven weakling? There are other examples around of the KA not having a robust power section.  There's no way I would use even a 95W TDP CPU in the KA and absolutely not O/C.....!
    As for the credentials of Custom PC, I have generally found their reviews accurate and balanced, and echo my own findings where applicable. If a little too infrequent.
    The fact that the KA has such a huge VRM heatsink leads me to my other comments on the Forum, particularly regarding the "fudge" aspect:
    """Henry is spot on - the notion that adding a heatsink to the top of the D2PAK or whatever MOSFETS is effective is virtually worthless. The device's die thermal junction is the tab on the device back - which is always against the PCB pad. The majority of heat is therefore dissipated in to the board, and the fact that the epoxy plastic encapsulation gets hot is simply due to the inability of the heat to be conducted away from the device die via the tab. Not sure when Epoxy become an effective conductor of heat.... Good practice is to increase the size of the PCB pad (or "land" in American) such that the enlarged PCB copper area acts as an adequate heatsink. This is still not as effective as clamping a power device tab to an actual piece of ali or copper, but since the devices used are SMD devices, this is not possible. However, the surface area required to provide sufficient PCB copper area to act as a heatsink for several devices isn't available in the current motherboard layouts. Where industrial SBC designs differ in this respect is to place the VRM MOSFETs on the back of the PCB on very enlarged PCB pads - where real estate for components is not an issue.
    Gigabyte's UD3 2oz copper mainboards sound like a good idea, on the face of it. However, without knowing how they have connected the device tabs to where and what remains a mystery. I suspect it is more hype than solution, although there will be some positive effect. From an electrical perspective, having lower resistance connecting whatever to whatever (probably just a 0V plane) is no bad thing.
    The way the likes of ASUS sort of get round the problem is to increase the sheer number of MOSFET devices and effectively spread the heat dissipation over a larger physical area. This works to a degree, there is the same amount of heat being dissipated, but over several more square inches. The other advantage of this is that each leg of the VRM circuit passes less current and therefore localised heat is reduced. Remember that as well as absolute peak operating temperature causing reduced component life, thermal cycling stresses the mechanical aspects of components (die wire bonds for example) as well as the solder joints on the board. Keeping components at a relatively constant temperature, even if this is high (but within operating temperature limits), is a means of promoting longevity.
    For myself, the first thing I do with a seperate VRM heatsink is take it off and use a quiet fan to blow air on to the VRM area of the PCB - this is where the heat is. This has the added benefit of actively cooling the inductors and capacitors too....
    Cooling the epoxy component body is a fudge. If the epoxy (and thus any heatsink plonked on top of it) is running at 60C, the component die is way above that.....
    It's better than nothing, but only just."""

  • [SOLVED] Question about CPU temperature

    Hi everybody,
    I just want to ask a question about "standard" CPU temperatures because my laptop (a Dell Vostro 3700) is permanently hot with the fans on even when I am not doing anything special.
    I have CPU freq scaling active with the conservative governor, and I use Gnome Shell 3.2 with an nVidia using the nouveau driver.
    Here are "stable" temperatures while writing this post:
    # sensors
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +72.5°C (crit = +103.0°C)
    nouveau-pci-0100
    Adapter: PCI adapter
    temp1: +78.0°C (high = +100.0°C, crit = +110.0°C)
    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +73.0°C (high = +95.0°C, crit = +105.0°C)
    Core 2: +73.0°C (high = +95.0°C, crit = +105.0°C)
    And this is the output of mpstat
    # mpstat -P ALL
    Linux 3.1.6-1-ARCH (fm) 01/04/2012 _x86_64_ (4 CPU)
    10:16:50 PM CPU %usr %nice %sys %iowait %irq %soft %steal %guest %idle
    10:16:50 PM all 1.59 0.18 0.54 0.02 0.00 0.02 0.00 0.00 97.65
    10:16:50 PM 0 1.88 0.15 0.72 0.02 0.00 0.01 0.00 0.00 97.22
    10:16:50 PM 1 1.64 0.21 0.40 0.02 0.00 0.01 0.00 0.00 97.73
    10:16:50 PM 2 1.47 0.15 0.67 0.02 0.00 0.06 0.00 0.00 97.64
    10:16:50 PM 3 1.36 0.20 0.39 0.02 0.00 0.01 0.00 0.00 98.01
    The fan, of course, is full speed (very annoying)
    I think that these temperatures are quite high, but I don't know what's really causing all this heating because my laptop is basically idle.
    Any suggestion?
    Thanks.
    P.S.: Running Linux fm 3.1.6-1-ARCH #1 SMP PREEMPT Thu Dec 22 09:11:48 CET 2011 x86_64 Intel(R) Core(TM) i5 CPU M 430 @ 2.27GHz GenuineIntel GNU/Linux
    Last edited by fm (2012-01-06 09:32:01)

    samuvuo wrote:
    fm wrote:Just to wrap up this topic, I "solved" the issue by adding these parameters to the kernel:
    Just curious: what are the temperatures now? Sensors output after the "fix" would be nice.
    It's in the previous posts:
    Before (idle)
    # sensors
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +72.5°C (crit = +103.0°C)
    nouveau-pci-0100
    Adapter: PCI adapter
    temp1: +78.0°C (high = +100.0°C, crit = +110.0°C)
    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +73.0°C (high = +95.0°C, crit = +105.0°C)
    Core 2: +73.0°C (high = +95.0°C, crit = +105.0°C)
    After (idle)
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +63.5°C (crit = +103.0°C)
    nouveau-pci-0100
    Adapter: PCI adapter
    temp1: +68.0°C (high = +100.0°C, crit = +110.0°C)
    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +62.0°C (high = +95.0°C, crit = +105.0°C)
    Core 2: +64.0°C (high = +95.0°C, crit = +105.0°C)
    After (after playing 8 min youtube video)
    acpitz-virtual-0
    Adapter: Virtual device
    temp1: +74.5°C (crit = +103.0°C)
    nouveau-pci-0100
    Adapter: PCI adapter
    temp1: +78.0°C (high = +100.0°C, crit = +110.0°C)
    coretemp-isa-0000
    Adapter: ISA adapter
    Core 0: +73.0°C (high = +95.0°C, crit = +105.0°C)
    Core 2: +75.0°C (high = +95.0°C, crit = +105.0°C)
    Fan spinning is better (less noisy) after specifying the kernel parameters.
    Thanks
    Last edited by fm (2012-01-06 13:43:05)

  • Generic questions about CMYK profiles and proofing

    I just read a big book about color management and am trying to make it happen but it seems that in real life I can't get good results.
    I have my scanner profiled and it produces aRGB docs.
    All good and fine. The images look good on the monitor (which also is profiled.)
    Now these images I place inside InDesign as aRGB.
    And at some point comes the time for soft proofing.
    So I start experimenting with different CMYK profiles.
    First question: Should I already do a CMYK conversion for my images in Photoshop or is it ok to do it in InDesign when exporting to PDF?
    Coated Fogra27/39, ISO Coated v2 and Euroscale Coated v2 seem to change the colors only slightly.
    But when I turn on "Simulate Paper Color" all hell breaks loose. The paper color seems to be always a cold horrible grey and the image is darkened and dulled. It looks like in need of serious color correction.
    And further how do these generic profiles know about my paper color anyway?
    So maybe this feature should only be used if the profile is custom made for a specific printer and paper.
    Second question: has anyone succesfully used the simulation of paper color with a custom made profile?
    But it seems that custom profiles are something I can only use at home because the printing service providers seem to be quite unaware of profiling their machines for a specific paper (or profiling it at all).
    They tell me to send a "pure" CMYK file without any profiles. But that is impossible because to transform an RGB in CMYK one MUST use a profile.
    Third question: Which kind of profile should I use when I am instructed to provide a profile-less CMYK document?
    And finally what is the purpose of proofing in the first place if I don't know exactly the profile created for the combination of the output machine and output paper? This issue becomes clearer when using (slightly) colored paper.
    - Rami Ojares

    >First question: Should I already do a CMYK conversion for my images in Photoshop or is it ok to do it in InDesign when exporting to PDF?
    You can save the conversion until you make the PDF if you like, especially if you don't know the correct profile in advance, but you lose the ability to fine-tune and individual image.
    >But when I turn on "Simulate Paper Color" all hell breaks loose. The paper color seems to be always a cold horrible grey and the image is darkened and dulled. It looks like in need of serious color correction.
    I think this is mostly a case of your eye accommodating to the brightness of the screen. I'm not sure how to avoid this, and I generally don't use the simulate paper color. Comparing my screen to the real printed output without the simulation seems pretty close. Even a generic profile makes an assumption about the color of the paper stock, but a custom profile would be more accurate.
    >Third question: Which kind of profile should I use when I am instructed to provide a profile-less CMYK document?
    As you already said, you can't do the conversion without knowing the profile. What they are asking is that you don't embed that profile when you do the conversion to PDF. This means they can use a file prepared for the wrong profile and not risk further conversion at the RIP which would create rich blacks from you 100% K elements (type), but the colors wouldn't be 100% correct unless the profile you chose for conversion originally matched the press.
    Generic profiles are a quasi-standard that most presses can match, but may not be able to produce quite as wide a color gamut as a custom profile, but many presses don't have a custom profile available. You should ask for a "contract proof" to check the color before the press runs, and if possible go to the printer for the make-ready and check the color on the press before the whole run is printed. There is a LOT of color control available to a skilled press operator, and expect some variation through the run.
    Peter

  • General question about iTunes Match and multiple libraries

    Hello to everyone,
    I have a general question about the iTunes Match service, which is available since yesterday in my country (Italy). Currently my library situation is the following:
    Computer A (desktop, Windows 7): "big" iTunes library (about 20 GB), at the moment not associated with my Apple ID
    Computer B (MacBook Air 2011): "small" iTunes library (about 5 GB), associated with my Apple ID
    At the moment, both my iOS devices (iPhone 4 and iPad 2) are synchronized with the smaller library on the MacBook Air.
    Question is as follows: should I subscribe to iTunes Match, would it be possible to upload the "big" library (provided I associate it with my Apple ID) to iCloud while keeping my devices synchronized with the "small" one?
    Ideally, at the end of the day, the situation should be the following: both iOS devices with music from the small library + possibility of downloading songs from iCloud (coming from the big one). Is this possible?
    Maybe the question sounds stupid, but I want to be sure about this before paying for the service.
    Thanks a lot.

    Yes, you could also associate your larger library with iTunes match if you associated your Apple ID with it. However any purchases in the library made from another Apple ID will not be matched with iTunes much.
    If both libraries are part of iTunes match, then all your devices will see all of the content from both libraries, which content you choose to have on those devices and which you have accessible via iTunes match is entirely up to you.

  • Question about Id3-tags and song managem

    Hello, I am getting ready to buy a Zen Touch 20GB in a couple of weeks and I have a few questions about the management software.
    (Correct me if I am wrong about something)
    ) Are songs organized into groups by Genre instead of just folders like on the Ipod?
    2) Are Id3-tags used instead of filename for identification?
    3) What parts of the tag are needed besides title and artist?
    4) Which version of tags does the Zen Touch recognize: Version or Version 2?
    5) If I edit my tags using an external program such as Id3-TagIT, will the tags carry over to the Creative software and to the player?
    Thanks a lot for your help. I want to make sure I have my music collection in order before I get my Zen Touch.

    euph_jay wrote:Ok, so lets say I have all my music in folders right now seperated into different categories on my hard dri've. Some folders denote the artist, some the album, and some a genre. Example: Folder: Chicago Contents: Chicago .mp3 files Folder: Techno Contents: various Techno artist's songs What is the best way of organizing my folder system, so that the transition will be easy to the player?
    Folders are pretty much irrelevant. What the software will do is look at the *tags* in the files and then use these to build the player's library.
    Will imbedded folders work on the player? (like Techno->Crystal Method->Cystal Method .mp3's)
    Again the player has no concept of folders, although if you set Techno as a Genre tag you will be able to view via this in the Music Library.
    Or, am I misunderstanding how music is stored into the mp3 player. Instead of storing music in a "folder like" system (like the Chicago folder or Techno folder), does it store all the songs individually on the device? Then you have to sort it by artist, album, or genre?
    Using your example, in the Music Library you have essentially three categories: Album, Artist, and Genre. So under Album you would see "Vegas" (the Crystal Method's album), under Artist you would see "The Crystal Method", and under Genre you would see "Techno" (and then either the album or artist under this... I forget which it is offhand).
    Make sense?

Maybe you are looking for