General
cancel
Showing results for 
Search instead for 
Did you mean: 

how to install multiple rpm's + check kernel version?

SOLVED
Go to solution
cx2
Occasional Contributor

how to install multiple rpm's + check kernel version?

Hi everyone,

I'm new to Linux (just installed Redhat 6.2 on a PC) but have some HP-UX experience, so please bare with me, as I have some probably very stupid questions!!

First of all, I've downloaded some security patches from Redhat's website. Can someone please tell me how to install multiple rpm's so that I don't have to do each one individually?

Secondly, I would like to install LVM on this system, but have read that I need a specific version of kernel to do this. How can I find out which version I have?

Thanks in advance for you help,

cx2
4 REPLIES
cx2
Occasional Contributor

Re: how to install multiple rpm's + check kernel version?

phew.. found the version to the kernel by:

rpm -q kernel

Anyone got any ideas on installing multiple rpms?

ta,

cx2
Kodjo Agbenu
Honored Contributor
Solution

Re: how to install multiple rpm's + check kernel version?

Hello,

First, to install multiple RPMs, I would suggest :

for file in *.rpm
do
rpm -Uvh $file
done

According to LVM, I would say : "if you don't know what you are doing, don't think about having LVM with RedHat !".

LVM is not part of the RedHat distribution, so it may be difficult to make it runining.
However if you still want to do so :

* Download LVM patch for Linux 2.2 series from www.sistina.com.

* Patch and recompile the kernel, including the LVm functionality.

* Intall the user-space utilities (vgchange, vgscan, vgcreate...). You can download them from http://rpmfind.net.

If you need LVM, use Mandrake and SuSE.

Good luck.

Kodjo
Learn and explain...
dirk dierickx
Honored Contributor

Re: how to install multiple rpm's + check kernel version?

installing multiple RPM's couldn't be easier.

You can simply specify all rpm's on one line:

for installing:
rpm -ivh ...

for upgrading:
rpm -Uvh ...

rpm will install them in the right sequence. ofcourse this will not work if some rpm needs files included in an rpm you did not include (it will complain during the 'preperation' phase.

you can alsways get a list of installed rpm's with:

rpm -qa
Jochen Heuer
Respected Contributor

Re: how to install multiple rpm's + check kernel version?

Hello,

to install multiple rpm's in one go just run

$ rpm -Uvh *.rpm

You can find info about the installed kernel by issuing

$ rpm -qi kernel
$ uname -a

If you want to know if your kernel supports lvm just run

$ cat /proc/devices | grep lvm

But AFAIK RedHat does not use LVM.

Regards,

Jochen
Well, yeah ... I suppose there's no point in getting greedy, is there?