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
|
<!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=%3C1353864141.4860.677.camel%40localhost.localdomain%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="020255.html">
<LINK REL="Next" HREF="020283.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Utter frustration</H1>
<B>Liam R E Quin</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Utter%20frustration&In-Reply-To=%3C1353864141.4860.677.camel%40localhost.localdomain%3E"
TITLE="[Mageia-dev] Utter frustration">liam at holoweb.net
</A><BR>
<I>Sun Nov 25 18:22:21 CET 2012</I>
<P><UL>
<LI>Previous message: <A HREF="020255.html">[Mageia-dev] Utter frustration
</A></li>
<LI>Next message: <A HREF="020283.html">[Mageia-dev] Utter frustration
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#20265">[ date ]</a>
<a href="thread.html#20265">[ thread ]</a>
<a href="subject.html#20265">[ subject ]</a>
<a href="author.html#20265">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>On Sun, 2012-11-25 at 14:01 +0000, Anne Wilson wrote:
><i> > Since there's no identification in the message, all I could suggest
</I>><i> > is a brute-force search of all files on the root or /usr partitons
</I>><i> > for the string "ConsoleKit", which appears in the error message.
</I>><i> > Then, identify the package which owns the 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 recursive
</I>><i> flag, so that won't work. How would you do it?
</I>
(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.
Liam
--
Liam Quin - XML Activity Lead, W3C, <A HREF="http://www.w3.org/People/Quin/">http://www.w3.org/People/Quin/</A>
Pictures from old books: <A HREF="http://fromoldbooks.org/">http://fromoldbooks.org/</A>
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
Co-author, 5th edition of "Beginning XML", Wrox, 2012
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="020255.html">[Mageia-dev] Utter frustration
</A></li>
<LI>Next message: <A HREF="020283.html">[Mageia-dev] Utter frustration
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#20265">[ date ]</a>
<a href="thread.html#20265">[ thread ]</a>
<a href="subject.html#20265">[ subject ]</a>
<a href="author.html#20265">[ 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>
|