[Mageia-dev] Utter frustration

Anne Wilson annew at kde.org
Mon Nov 26 14:33:32 CET 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 25/11/12 17:22, Liam R E Quin wrote:
> On Sun, 2012-11-25 at 14:01 +0000, Anne Wilson wrote:
> 
>>> Since there's no identification in the message, all I could 
>>> suggest is a brute-force search of all files on the root or
>>> /usr partitons for the string "ConsoleKit", which appears in
>>> the error message. Then, identify the package which owns the
>>> file using rpmdrake.
>>> 
>> Makes sense.  The only problem is I don't know how to do that.  I
>>  tried to use a combination of cat and grep, but there is no 
>> recursive flag, so that won't work.  How would you do it?
> 
> (1) grep -l -r ConsoleKit . this is easiest; -r is "recursive" But
> it will cross file system boundaries, so if you do it from / it
> will go into /use and /media and anywhere else it can find!
> 
> (2) find / /usr -type f -xdev -print0 | xargs -0 grep -l ConsoleKit
>  This is the usual "find" approach. -type f means only print names
> of files, not directories, symbolic links or device files... -xdev
> means don't stray into other filesystems like /home -print0 is the
> same as -print (prints each matching name) but prints the filenames
> with a NUL (character 0, hence the 0 in -print0) after each name,
> instead of putting each file on a separate line. This is needed
> because of filenames containing spaces or newlines.
> 
> xargs reads a list of files, one per line, or, with -0 (again the 
> digit zero) separated by NUL bytes; it runs the command on each of
>  the files
> 
> The -l option to grep says to print just the filename, needed in
> case there are binaries that contain the string.
> 
Perfect.  The 'find' returns

/usr/lib/libpowerdevilcore.so.0.1.0
/usr/lib/packagekitd
/usr/lib/libpolkit-qt-core-1.so.1.103.0
/usr/bin/xdm
/usr/bin/gnome-session
/usr/share/doc/nautilus/NEWS
/usr/share/doc/dbus/NEWS
/usr/share/doc/networkmanager-applet/ChangeLog
/usr/share/doc/sane-backends-1.0.23/ChangeLog
/usr/share/doc/gnome-power-manager/NEWS
/usr/share/gtk-doc/html/gio/gdbus.html
/usr/share/gtk-doc/html/NetworkManager/ref-migrating.html
/root/.bash_history
/var/lib/mlocate/mlocate.db
/var/lib/rpm/Providename
/var/run.runmove~/ConsoleKit/database
/var/log/journal/2d49f2c66f3a45939d7973a4109a2e81/system at 0004cf2cec30ebaa-f4cbcc04fef75c0b.journal~
/var/log/journal/2d49f2c66f3a45939d7973a4109a2e81/system at 0004ce3e93292fec-435b91656aa64987.journal~
/etc/security/msec/perm.netbook
/etc/security/msec/perm.standard
/etc/security/msec/perm.webserver
/etc/security/msec/perm.fileserver
/etc/security/msec/perm.secure
/usr/lib/libpowerdevilcore.so.0.1.0
/usr/lib/packagekitd
/usr/lib/libpolkit-qt-core-1.so.1.103.0
/usr/bin/xdm
/usr/bin/gnome-session
/usr/share/doc/nautilus/NEWS
/usr/share/doc/dbus/NEWS
/usr/share/doc/networkmanager-applet/ChangeLog
/usr/share/doc/sane-backends-1.0.23/ChangeLog
/usr/share/doc/gnome-power-manager/NEWS
/usr/share/gtk-doc/html/gio/gdbus.html
/usr/share/gtk-doc/html/NetworkManager/ref-migrating.html

Anne
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlCzb6IACgkQj93fyh4cnBdgsgCfe6W6EcvlGoAL9DcgRJs/KAup
CjEAnjotnVhipByP62l/+8OA/XnhANhq
=pgIo
-----END PGP SIGNATURE-----


More information about the Mageia-dev mailing list