Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried with rpm -ivh, and its says it installed it, but it doesn't add anything to /etc/grub.conf, and it doesn't add an files to /usr/src/kernels.
TIA
Code:
[root@l ~]# rpm -ivh kernel-2.6.18-194.11.1.el5.src.rpm
warning: kernel-2.6.18-194.11.1.el5.src.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
1:kernel ########################################### [100%]
[root@l ~]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda5
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/
initrd /initrd-2.6.18-194.el5.img
[root@l ~]# ll /usr/src/kernels/
total 8
drwxr-xr-x 19 root root 4096 Sep 6 10:20 2.6.18-194.el5-x86_64
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
A bit more information about your system would have been helpful...
In KDE (and possibly Gnome) open the file manager (Konqueror) and click on the rpm -- OpenSuSE then installs everything properly. The rpm command per se is not aware of /boot/grub/menu.lst.
Well you only installed the source code and it should be someplace in /usr/src/redhat/SOURCES.
The rpm should not have something like kerne_xxx.src.rpm, it should be similar to this: kernel-2.6.18-194.11.3.el5.rpm, without "src" which means source code.
Well you only installed the source code and it should be someplace in /usr/src/redhat/SOURCES.
The rpm should not have something like kerne_xxx.src.rpm, it should be similar to this: kernel-2.6.18-194.11.3.el5.rpm, without "src" which means source code.
Thanks!
I assumed it compiled it automatically and also put the source files on the box.
[root@l ~]# rpm -ivh kernel-2.6.18-194.11.3.el5.x86_64.rpm
warning: kernel-2.6.18-194.11.3.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID e8562897
Preparing... ########################################### [100%]
1:kernel ########################################### [100%]
[root@l ~]# cat /etc/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda5
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-194.11.3.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.11.3.el5 ro root=/dev/sda5
initrd /initrd-2.6.18-194.11.3.el5.img
title CentOS (2.6.18-194.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-194.el5 ro root=LABEL=/
initrd /initrd-2.6.18-194.el5.img
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
Now that is interesting. SuSE doesn't do changes in menu.lst when you insert a kernel via rpm. Must be a RedHat / anaconda trick. Good for you, saves work .
Now that is interesting. SuSE doesn't do changes in menu.lst when you insert a kernel via rpm. Must be a RedHat / anaconda trick. Good for you, saves work .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.