tonywhitmore.co.uk  

      blog : gallery : wiki : articles : projects : shell scripts : wallpaper : cv : links :
 Project Homepage

RPM
RPM logo

Preparation

  1. Download the RPM i386 precompiled binaries from www.rpm.org.
    • Visit www.rpm.org and scroll down to the section headed "Resources to obtain the programs and source code for free".
    • Click on the link for "RPM FTP site".
    • Click on the link for the "rpm" directory.
    • Click on the link for the "dist" directory.
    • Click on the link for the "rpm-4.1.x" directory.
    • Click on the link for the i386 precompiled binaries of the latest version of RPM. The file is in .tar.gz format.
      • At the time of writing the latest version of RPM was version 4.1, so the file downloaded was rpm-4.1.i386.tar.gz.
    • You will be asked to where you wish to save the file. Chose a safe place and make a note of it.
    • The download is about 5.4Mb and will take about an hour over a modem, but a lot less over a broadband connection.
    • If you are using a download accelerator program, it will save the file to your default download directory.
  2. Download the following RPM files from www.rpmfind.net for the RedHat Linux 8.0 distribution or copy them from the RedHat Linux 8.0 Disc 1 CD-ROM:
    libelf-0.8.2.i386.rpm
    bzip2-libs-1.0.2-5.i386.rpm
    glibc-2.2.93-5.i386.rpm
    glibc-common-2.2.93-5.i386
    basesystem-8.0-1.noarch.rpm
    setup-2.5.20-1.noarch.rpm
    filesystem-2.1.6-5.noarch.rpm
    These files are essential for RPM to initialise and maintain its database of installed packages.
    • Visit ftp.rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS and click on each of the above files in turn to download them.
    • You will be asked to where you wish to save the files. Chose a safe place and make a note of it.
    • In total the files are 14.5Mb in size and will take over two hours over a modem, but a lot less over a broadband connection.
    • If you are using a download accelerator program, it will save the files to your default download directory.
  3. Burn the file rpm-4.1.i386.tar.gz and the RPM files to a CD. This page assumes that the subdirectory /apps is used for the .tar.gz and RPM files. The CD-ROM can be a multi-session disk.
    • Use your CD burning software to create an ISO9660 disc image with the file rpm-4.1.i386.tar.gz and the RPM files in the /apps directory.
    • Burn the CD and verify the data stored on it.

Back to simple version

Booting

  1. Boot your Core Linux PC.
  2. Login as root. You will need to enter the password at the prompt.
    • Wait for the following text to appear:
      localhost login:
    • Type root and press Enter.
    • The screen will display this message:
      Password:
    • Enter the password for root that you set earlier.
    • You will be shown a prompt that looks like this:
      [~]#

Back to simple version

Extract the binaries

  1. Place the CD-R in the CD-ROM drive. Mount the CD-ROM drive under /mnt/cdrom.
    • At the prompt enter:
      mount /dev/hdb /mnt/cdrom
    • You will see the following line appear:
      mount: block device /dev/hdb is write-protected, mounting read-only
  2. Change to the /apps directory on the CD-R.
    • At the prompt enter:
      cd /mnt/cdrom/apps
    • The prompt will change to:
      [/mnt/cdrom/apps]#
  3. Copy the rpm-4.1.i386.tar.gz file to the root directory.
    • At the prompt enter:
      cp rpm-4.1.i386.tar.gz /
    • The system will not display a message if everything is OK.
  4. Change to the root directory and extract the data from the .tar.gz file.
    • At the prompt enter
      cd /
    • The prompt will change to:
      [/]#
    • At the prompt enter:
      tar -zxvf rpm-4.1.i386.tar.gz
    • A long stream of unzipping files and directories should scroll up the screen for about thirty seconds.

Back to simple version

Install essential RPMS

  1. Change to the /mnt/cdrom/apps directory.
    • At the prompt enter:
      cd /mnt/cdrom/apps
    • The prompt will change to:
      [/mnt/cdrom/apps]#
  2. Install the setup-2.5.20-1.noarch.rpm RPM.
    • At the prompt enter:
      rpm -ivh setup-2.5.20-1.noarch.rpm
    • RPM will prepare and install the files. The process will display warnings about the following files:
      /etc/group created as /etc/group.rpmnew
      /etc/passwd created as /etc/passwd.rpmnew
      /etc/profile created as /etc/profile.rpmnew
      /etc/protocols saved as /etc/protocols.rpmorig
      /etc/services saved as /etc/services.rpmorig
    • The process finishes when the process bar reaches 100%.
  3. Install the filesystem-2.1.6-5.noarch.rpm RPM.
    • At the prompt enter:
      rpm -ivh filesystem-2.1.6-5.noarch.rpm
    • RPM will prepare and install the files. The process will display warnings about the following groups:
      group lock does not exist - using root
      group mail does not exist - using root
    • The process finishes when the process bar reaches 100%.
  4. Install the basesystem-8.0-1.noarch.rpm RPM.
    • At the prompt enter:
      rpm -ivh basesystem-8.0-1.noarch.rpm
    • RPM will prepare and install the files.
    • The process finishes when the process bar reaches 100%.
  5. Install the glibc-common-2.2.93-5.i386.rpm RPM.
    • At the prompt enter:
      rpm -ivh glibc-common-2.2.93-5.i386.rpm
    • RPM will prepare and install the files.
    • The process finishes when the process bar reaches 100%.
  6. Install the glibc-2.2.93-5.i386.rpm RPM.
    • At the prompt enter:
      rpm -ivh glibc-2.2.93-5.i386.rpm
    • RPM will prepare and install the files. The process will display warnings about the following files:
      /etc/localtime created as /etc/localtime.rpmnew
      /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
      /etc/rpc saved as /etc/rpc/rpmorig
      /usr/lib/gconv/gconv-modules created as /usr/lib/gconv/gconv-modules.rpmnew
    • The process finishes when the process bar reaches 100% and the following line is displayed:
      INIT: version 2.84 reloading
  7. Install the bzip2-libs-1.0.2-5.i386.rpm RPM.
    • At the prompt enter:
      rpm -ivh bzip2-libs-1.0.2-5.i386.rpm
    • RPM will prepare and install the files.
    • The process finishes when the process bar reaches 100%.
  8. Install the libelf-0.8.2-2.i386.rpm RPM.
    • At the prompt enter:
      rpm -ivh libelf-0.8.2-2.i386.rpm
    • RPM will prepare and install the files.
    • The process finishes when the process bar reaches 100%.

Back to simple version

Initialise the RPM database

  1. Initialise the RPM database using the command rpm --initdb
    • At the prompt enter:
      rpm --initdb
    • The system will not display a message if everything is OK.

Back to simple version

Checking RPM

  1. Check the list of installed RPMS using rpm -qa.
    • At the prompt enter:
      rpm -qa
    • The following list should appear on the screen:
      filesystem-2.1.6-5
      glibc-common-2.2.93-5
      bzip2-libs-1.0.2-5
      setup-2.5.20-1
      basesystem-8.0-1
      glibc-2.2.93-5
      libelf-0.8.2-2

Back to simple version

Using RPM

Back to simple version

Creative Commons License
The text of this page is licensed under a Creative Commons License.


Valid CSS!     Valid HTML 4.0!     Valid RSS
Original design © For oswd.org by SquireCD