home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 1: Linux / CD1.iso / doc / HOWTO / mini / RPM+Slackware < prev    next >
Text File  |  1998-10-14  |  4KB  |  199 lines

  1.   RPM+Slackware Mini-Howto
  2.   Dave Whitinger, dave@whitinger.net
  3.   v1.3, 13 April 1998
  4.  
  5.   This document describes how to get RPM installed and working properly
  6.   under Slackware.  The information contained herein, however, is proba-
  7.   bly applicable to any Linux distribution.
  8.   ______________________________________________________________________
  9.  
  10.   Table of Contents
  11.  
  12.  
  13.   1. Introduction
  14.  
  15.   2. Obtaining the software
  16.  
  17.   3. Installing the software
  18.  
  19.   4. Bugs (Important!)
  20.  
  21.   5. Acknowledgements
  22.  
  23.   6. Copyright
  24.  
  25.  
  26.  
  27.   ______________________________________________________________________
  28.  
  29.   1.  Introduction
  30.  
  31.  
  32.   RPM is the "Red Hat Package Manager" and is the heart of the Red Hat
  33.   Linux distribution.  It's most basic functionality is to install and
  34.   de-install packages.
  35.  
  36.   This document is geared toward installing RPM on a slackware system
  37.   using an Intel processor, but the information contained herein should
  38.   be applicable to any distribution.
  39.  
  40.   The latest version of this HOWTO is always available at
  41.   <http://www.threepoint.com/HOWTO/RPM+Slackware.html>
  42.  
  43.   For further reading, consult the RPM-HOWTO (available at your
  44.   neighborhood LDP mirror).  Also, consider buying a copy of the
  45.   excellent book, Maximum RPM, by Ed Bailey of Red Hat Software, Inc.
  46.  
  47.  
  48.   2.  Obtaining the software
  49.  
  50.  
  51.   The newest release of RPM is always available from:
  52.  
  53.  
  54.  
  55.        ftp.rpm.org/pub/rpm/dist/latest
  56.  
  57.  
  58.  
  59.  
  60.   As of this writing, the latest version was
  61.  
  62.  
  63.  
  64.        rpm-2.4.12-1.i386.tar.gz
  65.  
  66.  
  67.   Notice the .i386 section.  This means that it is a binary package for
  68.   the Intel architecture, ready to untar and run.  Make sure that the
  69.   file you download has the i386 in the filename, otherwise the
  70.   following instructions will not work.
  71.  
  72.  
  73.   3.  Installing the software
  74.  
  75.  
  76.   The easiest way to install RPM is to use Slackware's native package
  77.   manager.
  78.  
  79.   You must be root to install RPM.
  80.  
  81.  
  82.  
  83.                installpkg /home/dave/rpm-2.4.12-1.i386.tar.gz
  84.  
  85.  
  86.  
  87.  
  88.  
  89.   Of course, replace the /home/dave with the correct path for the
  90.   filename.
  91.  
  92.   (NOTE!) If that fails, simply untar the file with these commands:
  93.  
  94.  
  95.  
  96.                cd / ; tar zxvpf /home/dave/rpm-2.4.12-1.i386.tar.gz
  97.  
  98.  
  99.  
  100.  
  101.  
  102.   Next, you have to create a directory called "rpm" under the /var/lib
  103.   tree.
  104.  
  105.   mkdir /var/lib/rpm
  106.  
  107.   Now type 'rpm --initdb' to initialize the rpm database.
  108.  
  109.   If everything has gone correctly up to this point, you will have a
  110.   rpm-capable system!  Test it out by grabbing any rpm file and
  111.   installing it with 'rpm -Uvh filename.rpm'
  112.  
  113.  
  114.   4.  Bugs (Important!)
  115.  
  116.   Be aware that on several versions of RPM, the tar file has been
  117.   created using incorrect permissions.  As soon as you install RPM,
  118.   check your permissions of various directories (/bin, /usr, etc).  If
  119.   the permissions are of 700 (drwx------), then you have been infected
  120.   by the bug.
  121.  
  122.   To fix these permissions problems, run this shell script:
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.   ______________________________________________________________________
  134.   #!/bin/sh
  135.  
  136.   chmod 755 /bin
  137.   chmod 755 /usr
  138.   chmod 755 /usr/bin
  139.   chmod 755 /usr/doc
  140.   chmod 755 /usr/lib
  141.   chmod 755 /usr/man
  142.   chmod 755 /usr/man/man8
  143.   chmod 755 /usr/share
  144.   chmod 755 /usr/share/locale
  145.   chmod 755 /usr/share/locale/de
  146.   chmod 755 /usr/share/locale/de/LC_MESSAGES
  147.   chmod 755 /usr/share/locale/pt-br
  148.   chmod 755 /usr/share/locale/pt-br/LC_MESSAGES
  149.   chmod 755 /usr/share/locale/sv
  150.   chmod 755 /usr/share/locale/sv/LC_MESSAGES
  151.   chmod 755 /usr/src
  152.   ______________________________________________________________________
  153.  
  154.  
  155.  
  156.   Feel free to E-Mail me if you have any questions about this.
  157.  
  158.  
  159.   5.  Acknowledgements
  160.  
  161.   I recognize Red Hat Software, Inc. and Patrick Volkerding for their
  162.   fine Linux distributions.
  163.  
  164.   Thanks to Milan Kopacka (mkop5230@ss1000.ms.mff.cuni.cz) for bringing
  165.   to my attention a better way to install RPM (installpkg).
  166.  
  167.  
  168.   6.  Copyright
  169.  
  170.  
  171.   This HOWTO is copyright 1998 by Dave Whitinger, and is a free
  172.   document.  You can redistribute it and/or modify it under the terms of
  173.   the GNU General Public License as published by the Free Software
  174.   Foundation; either version 2 of the License, or any later version.
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.