File:  [Public] / rpm2html / faq.html
Revision 1.13: download - view: text, annotated - select for diffs
Mon Nov 20 10:50:42 2000 UTC (23 years, 6 months ago) by veillard
Branches: MAIN
CVS tags: HEAD
On-line updates, daniel

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/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>

Webmaster