Annotation of rpm2html/faq.html, revision 1.11
1.8 veillard 1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
2: "http://www.w3.org/TR/REC-html40/loose.dtd">
1.1 veillard 3: <html>
4: <head>
1.8 veillard 5: <title>rpm2html/rpmfind FAQ</title>
6: <meta http-equiv="Content-Type" content="text/html">
1.1 veillard 7: </head>
1.8 veillard 8:
1.1 veillard 9: <body bgcolor="#FFFFFF">
1.8 veillard 10: <h1 align="center">rpm2html/rpmfind FAQ</h1>
11: <ol>
12: <li><em>Rpmfind fails with an Invalid PASV message when fetching an FTP
13: package</em>
14: <p>known issue, it seems the FTP implementation of libxml is not perfect
15: nor complete, if your rpmfind relies on the libxml shared library it's a
16: good idea to update libxml and try again.</p>
1.10 veillard 17: <p>Version >= 1.8.9 and 2.1.2 of libxml should fix this problem, get
18: them <a href="ftp://rpmfind.net/pub/libxml/">there</a></p>
1.8 veillard 19: <p>If this still fails and you have minimal development skills, <a
20: href="XX">download the nanoftp.c module from the HEAD of CVS</a> and
21: compile it locally (you will need libxml-devel or libxml2-devel
22: installed):</p>
23: <p><code>gcc -o nanoftp -I/usr/include/gnome-xml -I/usr/include/libxml
24: -DTESTING nanoftp.c -lxml</code></p>
25: <p>and send me back the result (should be verbose) of running</p>
26: <p><code>nanoftp ftp://theserver/theresourcefailingtoload</code></p>
27: </li>
28: <li><em>Rpmfind/Rpm2html doesn't work on my installation failing to open the
29: package database</em>
30: <p>the RPM database format may have changed, you may need to recompile or
31: fetch a more recent package for rpmfind/rpm2html/rpm</p>
32: <p>Easiest is to <a href="download.html">fetch a recent src.rpm</a>, make
33: sure that libxml, libxml-devel are installed an matches, as well as rpm
34: and rpm-devel (and possibly popt), then launch the following (possibly as
35: root):</p>
36: <p>rpm --rebuild rpmfind-xxx.rpm.src</p>
37: <p>if everything works okay this will build an rpm specific to your setup,
38: just install this one.</p>
39: </li>
1.9 veillard 40: <li><em>Iget the error rpmfind: error in loading shared libraries: rpmfind:
41: undefined symbol: xmlIsBlankNode</em>
1.10 veillard 42: <p>Upgrade your libxml RPM with a recent version >= 1.8.8</p>
1.9 veillard 43: <p><a
44: href="ftp://rpmfind.net/pub/libxml/">ftp://rpmfind.net/pub/libxml/</a></p>
45: </li>
1.8 veillard 46: <li><em>How can I tune rpmfind to avoid getting package from distribution
47: XXX ? How can I force packages to come from distribution YYY ?</em>
48: <p>Change your $HOME/.rpmfind to adjust the rating for the distribution.
49: Put a -1 rating for distributions you don't want packages from. To express
50: preference toward a given distribution give a good rating (e.g. 1000) to
51: it. You can ban distribution by using no_distrib option or try to for a
52: distrib on the command line by using option --dist xxx</p>
53: </li>
1.11 ! veillard 54: <li><em>Rpmfind seems to only returns RPMs for the redhat system, I never
! 55: got suggestions for other distributions</em>
! 56: <p>Redhat ships rpmfind witha default rpmfind config file pointing to
! 57: RedHat own RDF database. This database indexes only a very limited set of
! 58: distributions, mostly Redhat ones. Edit your .rpmfind (and optionally
! 59: /etc/rpmfind.config) and set the following value:</p>
! 60: <p><code>server=http://rpmfind.net/linux/RDF</code></p>
! 61: </li>
1.8 veillard 62: <li><em>Rpmfind tend to suggest me glibc binaries even if I'm running a
63: libc5 based system</em>
64: <p>Change your $HOME/.rpmfind in the section packages:</p>
65: <pre> -------------- original --------------
66: ;
67: ; Packages rejection criteria
68: ;
69: [packages]
70: no_upgrade=glibc
71: no_upgrade=glibc.so.*
72: no_upgrade=libc
73: no_upgrade=libc.so.*
74: no_depend=libc.so.3
75: --------------------------------------
76:
77: To
78:
79: --------------------------------------
80: ;
81: ; Packages rejection criteria
82: ;
83: [packages]
84: no_upgrade=glibc
85: no_upgrade=glibc.so.*
86: no_upgrade=libc
87: no_upgrade=libc.so.*
88: no_depend=libc.so.3
89:
90: no_upgrade=glibc.*
91: no_depend=glibc.*
92: no_depend=libc.so.6
93: --------------------------------------</pre>
94: </li>
95: <li><em>I'm getting "Increase MAX_MIRRORS=20" messages.</em>
96: <p>Update to <a href="ftp://rpmfind.net/pub/rpmfind">a newer version of
97: rpmfind</a></p>
98: </li>
99: <li><em>I'm behind a firewall and rpmfind doesn't work.</em>
100: <p>First check issue 1/</p>
101: <p>Then edit ~/.rpmfind and change the variables httpProxy and/or ftpProxy
102: to give the</p>
103: <p>URL of the proxy</p>
104: <pre>httpProxy=http://myhttpproxy:3128/
105: </pre>
106: </li>
107: <li><em>How to build a Web page that described the packages installed on a
108: machine.</em>
109: <p>This is definitely possible, here is an example of a config file doing
110: exactly that:</p>
111: <pre>maint=Sysadmin
1.1 veillard 112: mail=root@host.domain
113: dir=/home/httpd/html/setup
114: url=/setup
115: tree=true
116:
117: [localbase]
118: name=Current Setup
119: ftp=ftp://ftp.redhat.com/pub/redhat/redhat-5.0/i386/RedHat/RPMS
120: ftpsrc=ftp://ftp.redhat.com/pub/redhat/redhat-5.0/SRPMS
121: color=#ffffff
1.8 veillard 122: </pre>
123: <p>The point here is that [localbase] hard coded value force rpm2html to
124: dump the RPM installed database instead of browsing a directory.</p>
125: <p><strong>Note</strong>: I would recommend some care about exporting
126: publicly the list of exported packages installed on a machine to the whole
127: internet. While this feature is definitely useful as a system
128: administration tool, this is a potential <strong>security hole</strong>
129: and action should be taken to restrain accesses to the generated pages</p>
130: </li>
131: </ol>
1.1 veillard 132:
133: <center>
1.8 veillard 134: <p><font color="#3366FF">[ <a href="index.html">Home</a> | <a
135: href="news.html">News</a> | <a href="http://rpmfind.net/linux/RPM/">Try it
136: !</a> | <a href="docs.html">Docs</a> | <a href="help.html">Help</a> | <a
137: href="mirrors.html">Mirrors</a> | <a href="download.html">Download</a>
1.1 veillard 138: ]</font></p>
139:
1.8 veillard 140: <p><font color="#3366FF">[ </font><font color="#000000"> FAQ
141: </font><font>co</font></p>
1.1 veillard 142: </center>
143: </body>
144: </html>
Webmaster