File: faq.html

package info (click to toggle)
rpm2html 1.7-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,808 kB
  • ctags: 935
  • sloc: ansic: 13,013; sh: 8,491; php: 338; makefile: 204; perl: 122
file content (164 lines) | stat: -rw-r--r-- 6,944 bytes parent folder | download
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.imag.fr/TR/REC-html401/loose.dtd">
<html>
<head>
  <title>rpm2html/rpmfind FAQ</title>
  <meta http-equiv="Content-Type" content="text/html">
</head>

<body bgcolor="#FFFFFF">
<h1 align="center">rpm2html/rpmfind FAQ</h1>
<ol>
  <li><em>How can I upgrade to rpm v4 all rpm v4 packages are not readable by
    my installed rpm command</em>
    <p>Use rpm-3.05 or rpm-3.06 as an intermediate step, it can read both rpm
    v3 and v4</p>
    <p>Don't forget to run rpm --rebuilddb immediately after upgrading to
    v4</p>
  </li>
  <li><em>rpmfind-1.2 get signal 11 errors</em>
    <p>this seems to happen a lot lately, possibly after the upgrade of the
    rpm setup. The most generic solution is to <a
    href="ftp://rpmfind.net/pub/rpmfind/">refetch the latest src.rpm</a>
    (&gt;= 1.6), and rebuild it locally with</p>
    <p>rpm --rebuild rpmfind-1.6.src.rpm</p>
    <p>if everything goes well it will generate an binary rpm that you can
    install. Make sure you have rpm and rpm-devel packages installed as well
    as <a href="ftp://rpmfind.net/pub/libxml/">libxml and libxml-devel</a>
    recent ones (&gt;= 1.8.7).</p>
    <p>NOTE: <span style="background-color: #FF0000">I do not answer to bug
    reports concerning 1.2 anymore</span>, this is definitely too old !</p>
  </li>
  <li><em>Rpmfind fails with an Invalid PASV message when fetching an FTP
    package</em>
    <p>known issue, it seems the FTP implementation of libxml is not perfect
    nor complete, if your rpmfind relies on the libxml shared library it's a
    good idea to update libxml and try again.</p>
    <p>Version &gt;= 1.8.9 and 2.1.2 of libxml should fix this problem, get
    them <a href="ftp://rpmfind.net/pub/libxml/">there</a></p>
    <p>If this still fails and you have minimal development skills, <a
    href="XX">download the nanoftp.c module from the HEAD of CVS</a> and
    compile it locally (you will need libxml-devel or libxml2-devel
    installed):</p>
    <p><code>gcc -o nanoftp -I/usr/include/gnome-xml -I/usr/include/libxml
    -DTESTING nanoftp.c -lxml</code></p>
    <p>and send me back the result (should be verbose) of running</p>
    <p><code>nanoftp ftp://theserver/theresourcefailingtoload</code></p>
  </li>
  <li><em>Rpmfind/Rpm2html doesn't work on my installation failing to open the
    package database</em>
    <p>the RPM database format may have changed, you may need to recompile or
    fetch a more recent package for rpmfind/rpm2html/rpm</p>
    <p>Easiest is to <a href="download.html">fetch a recent src.rpm</a>, make
    sure that libxml, libxml-devel are installed an matches, as well as rpm
    and rpm-devel (and possibly popt), then launch the following (possibly as
    root):</p>
    <p>rpm --rebuild rpmfind-xxx.rpm.src</p>
    <p>if everything works okay this will build an rpm specific to your setup,
    just install this one.</p>
  </li>
  <li><em>I get the error rpmfind: error in loading shared libraries: rpmfind:
    undefined symbol: xmlIsBlankNode</em>
    <p>Upgrade your libxml RPM with a recent version &gt;= 1.8.8</p>
    <p><a
    href="ftp://rpmfind.net/pub/libxml/">ftp://rpmfind.net/pub/libxml/</a></p>
  </li>
  <li><em>How can I tune rpmfind to avoid getting package from distribution
    XXX ? How can I force packages to come from distribution YYY ?</em>
    <p>Change your $HOME/.rpmfind to adjust the rating for the distribution.
    Put a -1 rating for distributions you don't want packages from. To express
    preference toward a given distribution give a good rating (e.g. 1000) to
    it. You can ban distribution by using no_distrib option or try to for a
    distrib on the command line by using option --dist xxx</p>
  </li>
  <li><em>Rpmfind seems to only returns RPMs for the redhat system, I never
    got suggestions for other distributions</em>
    <p>Redhat ships rpmfind witha default rpmfind config file pointing to
    RedHat own RDF database. This database indexes only a very limited set of
    distributions, mostly Redhat ones. Edit your .rpmfind (and optionally
    /etc/rpmfind.config) and  set the following value:</p>
    <p><code>server=http://rpmfind.net/linux/RDF</code></p>
  </li>
  <li><em>Rpmfind tend to suggest me glibc binaries even if I'm running a
    libc5 based system</em>
    <p>Change your $HOME/.rpmfind in the section packages:</p>
    <pre>     -------------- original --------------
     ;
     ; Packages rejection criteria
     ;
     [packages]
     no_upgrade=glibc
     no_upgrade=glibc.so.*
     no_upgrade=libc
     no_upgrade=libc.so.*
     no_depend=libc.so.3
     --------------------------------------

     To 

     --------------------------------------
     ;
     ; Packages rejection criteria
     ;
     [packages]
     no_upgrade=glibc
     no_upgrade=glibc.so.*
     no_upgrade=libc
     no_upgrade=libc.so.*
     no_depend=libc.so.3

     no_upgrade=glibc.*
     no_depend=glibc.*
     no_depend=libc.so.6
     --------------------------------------</pre>
  </li>
  <li><em>I'm getting "Increase MAX_MIRRORS=20" messages.</em>
    <p>Update to <a href="ftp://rpmfind.net/pub/rpmfind">a newer version of
    rpmfind</a></p>
  </li>
  <li><em>I'm behind a firewall and rpmfind doesn't work.</em>
    <p>First check issue 1/</p>
    <p>Then edit ~/.rpmfind and change the variables httpProxy and/or ftpProxy
    to give the</p>
    <p>URL of the proxy</p>
    <pre>httpProxy=http://myhttpproxy:3128/
    </pre>
  </li>
  <li><em>How to build a Web page that described the packages installed on a
    machine.</em>
    <p>This is definitely possible, here is an example of a config file doing
    exactly that:</p>
    <pre>maint=Sysadmin
mail=root@host.domain
dir=/home/httpd/html/setup
url=/setup
tree=true

[localbase]
name=Current Setup
ftp=ftp://ftp.redhat.com/pub/redhat/redhat-5.0/i386/RedHat/RPMS
ftpsrc=ftp://ftp.redhat.com/pub/redhat/redhat-5.0/SRPMS
color=#ffffff
    </pre>
    <p>The point here is that [localbase] hard coded value force rpm2html to
    dump the RPM installed database instead of browsing a directory.</p>
    <p><strong>Note</strong>: I would recommend some care about exporting
    publicly the list of exported packages installed on a machine to the whole
    internet. While this feature is definitely useful as a system
    administration tool, this is a potential <strong>security hole</strong>
    and action should be taken to restrain accesses to the generated pages</p>
  </li>
</ol>

<center>
<p><font color="#3366FF">[ <a href="index.html">Home</a> | <a
href="news.html">News</a> | <a href="http://rpmfind.net/linux/RPM/">Try it
!</a> | <a href="docs.html">Docs</a> | <a href="help.html">Help</a> | <a
href="mirrors.html">Mirrors</a> | <a href="download.html">Download</a>
]</font></p>

<p><font color="#3366FF">[ </font><font color="#000000"> FAQ
</font><font>co</font></p>
</center>
</body>
</html>