Upgrade Fedora Core kernel using RPM packages manually.
Upgrade Fedora Core 3 kernel using RPM packages.
Objective :-
● Manually upgrade fedora core kernel using rpm package
● To upgrade the package currently installed to a new version.
ability :-
● able to query information about currently installed package.
● able to verify the new package version.
● able to upgrade rpm package to new version.
tools :-
rpm {-U--upgrade} [install-options] PACKAGE_FILE ...
This upgrades or installs the package currently installed to a newer version. This is the same as install, except all other version(s) of the package are removed after the new package is installed.
Procedures to upgrade kernel using rpm packages:-
1. Check the current kernel version with this command.
[root@linux rpm]# uname -a
Linux linux.jmtibm.com 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386 GNU/Linux
2. Change to directory that contains your rpm (download) package.
[root@linux ‾]# cd rpm/
3. List the directory contents
[root@linux rpm]# ls
kernel-2.6.11-1.14_FC3.i686.rpm
kernel-utils-2.4-13.1.49_FC3.i386.rpm
policycoreutils-1.18.1-2.12.i386.rpm
selinux-policy-targeted-1.17.30-2.96.noarch.rpm
selinux-policy-targeted-sources-1.17.30-2.96.noarch.rpm
udev-039-10.FC3.7.i386.rpm
4. Check the rpm version that already installed, in this example 'kernel'
[root@linux rpm]# rpm -qi kernel
Name : kernel Relocations: (not relocatable)
Version : 2.6.9 Vendor: Red Hat, Inc.
Release : 1.667 Build Date: Wed 03 Nov 2004 04:24:55 AM MYT
Install Date: Thu 05 May 2005 01:03:41 PM MYT Build Host: tweety.build.redhat.com
Group : System Environment/Kernel Source RPM: kernel-2.6.9-1.667.src.rpm
Size : 43753461 License: GPLv2
Signature : DSA/SHA1, Wed 03 Nov 2004 05:06:30 AM MYT, Key ID b44269d04f2a6fd2Packager : Red Hat, Inc.
Summary : The Linux kernel (the core of the Linux operating system).
Description :
The kernel package contains the Linux kernel (vmlinuz), the core of the Red Hat Linux operating system. The kernel handles the basic functions of the operating system: memory allocation, process allocation, device input and output, etc.
-q for Query
-i info
Display package information, including name, version, and description. This uses the --queryformat if one was specified.
5. Base on the query information of the Kernel package that already install in this computer is 2.6.9-1.667 and the new package that already been download is kernel-2.6.11-1.14_FC3.i686.rpm
6. List rpm package in the directory...
[root@linux rpm]# ls
kernel-2.6.11-1.14_FC3.i686.rpm selinux-policy-targeted-1.17.30-2.96.noarch.rpm kernel-utils-2.4-13.1.49_FC3.i386.rpm selinux-policy-targeted-sources-1.17.30-2.96.noarch.rpm policycoreutils-1.18.1-2.12.i386.rpm udev-039-10.FC3.7.i386.rpm
7. Ugrade the kernel with this rpm command
[root@linux rpm]# rpm -Uvh kernel-2.6.11-1.14_FC3.i686.rpm
warning: kernel-2.6.11-1.14_FC3.i686.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
udev >= 039-10.FC3.7 is needed by kernel-2.6.11-1.14_FC3.i686
selinux-policy-targeted <>= 1.18.1-2.8 is needed by selinux-policy-targeted-1.17.30-2.96.noarch
selinux-policy-targeted = 1.17.30-2.19 is needed by (installed) selinux-policy-targeted-sources-1.17.30-2.19.noarch
8. Same as before the dependencies fail again ... add more package ones more times...
[root@linux rpm]# rpm -Uvh kernel-2.6.11-1.14_FC3.i686.rpm udev-039-10.FC3.7.i386.rpm selinux-policy-targeted-1.17.30-2.96.noarch.rpm policycoreutils-1.18.1-2.12.i386.rpm
warning: kernel-2.6.11-1.14_FC3.i686.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
selinux-policy-targeted = 1.17.30-2.19 is needed by (installed) selinux-policy-targeted-sources-1.17.30-2.19.noarch
9. And again... but now we meet all the dependencies require to install the new kernel package.
[root@linux rpm]# rpm -Uvh kernel-2.6.11-1.14_FC3.i686.rpm udev-039-10.FC3.7.i386.rpm selinux-policy-targeted-1.17.30-2.96.noarch.rpm policycoreutils-1.18.1-2.12.i386.rpm selinux-policy-targeted-sources-1.17.30-2.96.noarch.rpm
warning: kernel-2.6.11-1.14_FC3.i686.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing... ########################################### [100%]
1:policycoreutils ########################################### [ 20%]
2:udev ########################################### [ 40%]
3:kernel ########################################### [ 60%]
4:selinux-policy-targetedwarning: /etc/selinux/targeted/contexts/files/file_contexts created as /etc/selinux/targeted/contexts/files/file_contexts.rpmnew
########################################### [ 80%]
warning: /etc/selinux/targeted/policy/policy.18 created as /etc/selinux/targeted/policy/policy.18.rpmnew
5:selinux-policy-targeted########################################### [100%]
[root@linux rpm]#
10. Now all the hard work done... reboot your PC and ...
11. After reboot make sure to check the version of the new kernel. If there is no change to the kernel version, your upgrade may be failed. in this example, the upgrading process is successful base on the version change to new version.
[root@linux ‾]# uname -a
Linux linux.jmtibm.com 2.6.11-1.14_FC3 #1 Thu Apr 7 19:23:49 EDT 2005 i686 i686 i386 GNU/Linux
[root@linux ‾]# rpm -qi kernel
Name : kernel Relocations: (not relocatable)
Version : 2.6.11 Vendor: Red Hat, Inc.
Release : 1.14_FC3 Build Date: Fri 08 Apr 2005 07:55:04 AM MYT
Install Date: Tue 31 May 2005 05:33:09 PM MYT Build Host: bugs.build.redhat.com
Group : System Environment/Kernel Source RPM: kernel-2.6.11-1.14_FC3.src.rpm
Size : 49036749 License: GPLv2
Signature : DSA/SHA1, Tue 12 Apr 2005 04:19:16 AM MYT, Key ID b44269d04f2a6fd2
Packager : Red Hat, Inc.
Summary : The Linux kernel (the core of the Linux operating system).
Description :
The kernel package contains the Linux kernel (vmlinuz), the core of the Red Hat Linux operating system. The kernel handles the basic functions of the operating system: memory allocation, process allocation, device input and output, etc.
[kambing@linux ‾]# id
uid=501(kambing) gid=501(kambing) groups=501(kambing)
Keywords: upgrade fedora linux, upgrade fedora manually, upgrade fedora, linux fedora upgrade, upgrade linux kernel, upgrade fedora core kernel, upgrade fedora kernel, upgrade fedora rpm packages.
- 11520 reads
- Email this page
Recent comments
9 years 2 days ago
9 years 4 weeks ago
9 years 16 weeks ago
9 years 23 weeks ago
9 years 33 weeks ago
9 years 36 weeks ago
9 years 43 weeks ago
9 years 50 weeks ago
10 years 2 weeks ago
10 years 7 weeks ago