File:  [Public] / rpm2html / faq.html
Revision 1.9: download - view: text, annotated - select for diffs
Sat Jul 8 10:23:52 2000 UTC (23 years, 10 months ago) by veillard
Branches: MAIN
CVS tags: HEAD
Updated the FAQ with libxml recent dep, Daniel

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
                      "http://www.w3.org/TR/REC-html40/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>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>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>Iget 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.6</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 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