1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] Utter frustration
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Utter%20frustration&In-Reply-To=%3C50B36FAC.3040909%40kde.org%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="020265.html">
<LINK REL="Next" HREF="020375.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Utter frustration</H1>
<B>Anne Wilson</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Utter%20frustration&In-Reply-To=%3C50B36FAC.3040909%40kde.org%3E"
TITLE="[Mageia-dev] Utter frustration">annew at kde.org
</A><BR>
<I>Mon Nov 26 14:33:32 CET 2012</I>
<P><UL>
<LI>Previous message: <A HREF="020265.html">[Mageia-dev] Utter frustration
</A></li>
<LI>Next message: <A HREF="020375.html">[Mageia-dev] Utter frustration
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#20283">[ date ]</a>
<a href="thread.html#20283">[ thread ]</a>
<a href="subject.html#20283">[ subject ]</a>
<a href="author.html#20283">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 25/11/12 17:22, Liam R E Quin wrote:
><i> On Sun, 2012-11-25 at 14:01 +0000, Anne Wilson wrote:
</I>><i>
</I>>>><i> Since there's no identification in the message, all I could
</I>>>><i> suggest is a brute-force search of all files on the root or
</I>>>><i> /usr partitons for the string "ConsoleKit", which appears in
</I>>>><i> the error message. Then, identify the package which owns the
</I>>>><i> file using rpmdrake.
</I>>>><i>
</I>>><i> Makes sense. The only problem is I don't know how to do that. I
</I>>><i> tried to use a combination of cat and grep, but there is no
</I>>><i> recursive flag, so that won't work. How would you do it?
</I>><i>
</I>><i> (1) grep -l -r ConsoleKit . this is easiest; -r is "recursive" But
</I>><i> it will cross file system boundaries, so if you do it from / it
</I>><i> will go into /use and /media and anywhere else it can find!
</I>><i>
</I>><i> (2) find / /usr -type f -xdev -print0 | xargs -0 grep -l ConsoleKit
</I>><i> This is the usual "find" approach. -type f means only print names
</I>><i> of files, not directories, symbolic links or device files... -xdev
</I>><i> means don't stray into other filesystems like /home -print0 is the
</I>><i> same as -print (prints each matching name) but prints the filenames
</I>><i> with a NUL (character 0, hence the 0 in -print0) after each name,
</I>><i> instead of putting each file on a separate line. This is needed
</I>><i> because of filenames containing spaces or newlines.
</I>><i>
</I>><i> xargs reads a list of files, one per line, or, with -0 (again the
</I>><i> digit zero) separated by NUL bytes; it runs the command on each of
</I>><i> the files
</I>><i>
</I>><i> The -l option to grep says to print just the filename, needed in
</I>><i> case there are binaries that contain the string.
</I>><i>
</I>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/<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">system at 0004cf2cec30ebaa-f4cbcc04fef75c0b.journal</A>~
/var/log/journal/2d49f2c66f3a45939d7973a4109a2e81/<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">system at 0004ce3e93292fec-435b91656aa64987.journal</A>~
/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 - <A HREF="http://www.enigmail.net/">http://www.enigmail.net/</A>
iEYEARECAAYFAlCzb6IACgkQj93fyh4cnBdgsgCfe6W6EcvlGoAL9DcgRJs/KAup
CjEAnjotnVhipByP62l/+8OA/XnhANhq
=pgIo
-----END PGP SIGNATURE-----
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="020265.html">[Mageia-dev] Utter frustration
</A></li>
<LI>Next message: <A HREF="020375.html">[Mageia-dev] Utter frustration
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#20283">[ date ]</a>
<a href="thread.html#20283">[ thread ]</a>
<a href="subject.html#20283">[ subject ]</a>
<a href="author.html#20283">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|