Yum Install rpm - Missing Kernel-headers

[root@testdb1 ~]# yum install gcc

Loaded plugins: product-id, security, subscription-manager

Excluding Packages in global exclude list

Finished

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package gcc.x86_64 0:4.1.2-55.el5 set to be updated

--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc

--> Running transaction check

---> Package glibc-devel.x86_64 0:2.5-123.el5_11.3 set to be updated

--> Processing Dependency: glibc-headers = 2.5-123.el5_11.3 for package: glibc-devel

--> Processing Dependency: glibc-headers for package: glibc-devel

--> Running transaction check

---> Package glibc-headers.x86_64 0:2.5-123.el5_11.3 set to be updated

--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers

--> Processing Dependency: kernel-headers for package: glibc-headers

--> Finished Dependency Resolution

glibc-headers-2.5-123.el5_11.3.x86_64 from rhel-5-server-rpms has depsolving problems

  --> Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-123.el5_11.3.x86_64 (rhel-5-server-rpms)

glibc-headers-2.5-123.el5_11.3.x86_64 from rhel-5-server-rpms has depsolving problems

  --> Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-123.el5_11.3.x86_64 (rhel-5-server-rpms)

Error: Missing Dependency: kernel-headers is needed by package glibc-headers-2.5-123.el5_11.3.x86_64 (rhel-5-server-rpms)

Error: Missing Dependency: kernel-headers >= 2.2.1 is needed by package glibc-headers-2.5-123.el5_11.3.x86_64 (rhel-5-server-rpms)

 You could try using --skip-broken to work around the problem

 You could try running: package-cleanup --problems

                        package-cleanup --dupes

                        rpm -Va --nofiles –nodigest

 

Solution :

[root@testdb1 ~]# yum search kernel-headers

Loaded plugins: product-id, security, subscription-manager

Excluding Packages in global exclude list

Finished

Warning: No matches found for: kernel-headers

No Matches found

 

Your system is probably configured to exclude the kernel packages.

try:

sudo vi /etc/yum.conf

then comment (or remove the 'kernel*' part):

#exclude=kernel*

 

[root@testdb1 ~]# yum search kernel-headers

Loaded plugins: product-id, security, subscription-manager

rhel-5-server-cf-tools-1-rpms                                                                                                                                                                                         | 3.4 kB     00:00

rhel-5-server-rpms                                                                                                                                                                                                    | 3.4 kB     00:00

======================= Matched: kernel-headers ==================================

kernel-headers.x86_64 : Header files for the Linux kernel for use by glibc

 

[root@testdb1 ~]# yum install gcc

 

Comments