How to install a specific package?

Stuart Sears stuart at sjsears.com
Mon Aug 15 10:11:28 UTC 2005


erich.iseli at saint-gobain.com enlightened us with the following gems on
08/15/2005 10:43 AM:
> Hello list,
> 
> This question might seem really stupid but I've been trying to find how
> Redhat lets me search for a substring of a package name, then list me the
> packages it found, lets me check the packages I need and prompt me for the
> right CD to install.
> 
> - The package manager available on Redhat lets me check some packages and
> prompts for the CD(s) BUT doesn't let me search for packages. So if I am
> looking for a given library for example, I have to go through the many
> categories until eventually I find it. Sometimes I don't even find it
> because it is hidden in some arcane place...
the easiest way top find out which package provides a given library is
rpm --redhatprovides <filename/path>
which will take either full paths or just filenames

> - on the shell, I can rpm -iv any package, but to do this, I first need to
> go through all the CDs and see on what CD the package is available.

> I almost can't believe Redhat doesn't provide a tool which is available on
> every distro I've met so far (synaptic on Debian, Mandrake package manager
> on now Mandriva or yast on Suse)...
RH (at least the Enterprise releases) expects you to use up2date and Red
Hat Network for this kind of thing - at which point the CDs become
unnecessary except for the original installation.

system(aka redhat)-config packages sucks if you have done any updates at
all since installation.
you could always mount the various CDs and generate a package listing
for each... (examples for RHEL4, for RHEL3, /media=/mnt)
mkdir rhdisks
do this for each CD:
mount /media/cdrom
ls /media/cdrom/RedHat/RPMS > rhdisks/disk<number>.txt

once this is done all you need to do is
1. figure out which package you need
2. grep -r 'packagename' rhdisks/
which should return the relevant filename and line.

or you could set up a local installserver with your CDs instead.

HTH

Stuart

-- 
Stuart Sears RHCE RHCX
die_if_kernel("Penguin instruction from Penguin mode??!?!", regs);
        linux-2.2.16/arch/sparc/kernel/traps.c




More information about the redhat-list mailing list