-   Linux - General (
-   -   Red Hat Update Agent for kernel updates and custom kernels (

SparceMatrix 09-03-2002 12:10 PM

Red Hat Update Agent for kernel updates and custom kernels
When I have several kernels to choose from on my system, which one is updated when I use Update Agent to update my kernel? Does the Update Agent use a .Config file to update my kernel?

L.B 09-03-2002 03:19 PM

RedHat up2date simply installs the new kernel RPM, the one with the latest version number is the 'updated version.'
rpm -qa|grep kernel (shows what kernel rpms are installed)
The latest stable RedHat kernel is 2.4.18-10.

SparceMatrix 09-03-2002 04:16 PM

What I am trying to decide is if my kernel -- the one I installed when I first installed Red Hat 7.3 -- have the same configuration as the one that I am being upgraded with. I know I can customize and recompile my kernel and give it it's own name. But I am worried that somehow I have accidentally altered the configuration of my basic unmodified kernel. I am looking for some assurance that the kernel that I am being updated with is not based on some altered configuration of my original kernel.

If I update this kernel, will it be a fresh, new uncorrupted kernel? Or if I have damaged my old kernel, will the update carry the damage with it?

SparceMatrix 09-03-2002 04:21 PM

Maybe this is the question:

Is the updated kernel compiled at all when upacked from the RPM? I know that all RPM packages are binaries. Is the kernel any different? Is it strictly binaries?

L.B 09-03-2002 04:54 PM

The updated kernel is the default unmodified RedHat version of the Linux kernel.
It does not use a .config file, it simply installs the RPM.
You can change this kernel after which a .config file will be created in the kernel source directory:
For RedHat 7.3 the kernel source directory is:
/usr/src/linux-2.4/ which is a symlink to the latest installed kernel, for example:
older versions and their changes can be found in
Upgrading the Kernel
in the Red Hat Linux Customization Guide for more info.

neo77777 09-03-2002 04:58 PM

Yes it is compiled and bulky, it is a redhat default kernel which includes the support for Pentium family processors, networking, ide, etc., but doesn't contain the support for ntfs, for instance. If you are updating kernel-source as well then there are different configuration fies dropped into /usr/src/linux-2.4/configs directory you should copy the configuration file for your architecture to ../.config
cp /usr/src/linux-2.4/configs/kernel-version-release-architecture.config /usr/src/linux-2.4/.config
and then recompile your kernel, you can choose what already is in .config or you can costumize it, etc
make menuconfig
make dep clean bzImage modules modules_install
after successfull recompile you should update your initrd.img file with
/sbin/mkinitrd /boot/initrd-kernel.version-release.img Kernel.Version-Release
copy the compressed kernel image to /boot and adjust LILO/GRUB as needed.
P.S. I've had some disastrous consequences upgrading kernels by rpm's, so I stick with

All times are GMT -5. The time now is 03:34 PM.