After the downloading patch-4.6.4.xz from http://kernel.org, what are the next steps to prepare the build of a version 4.6.4 Linux kernel? (Choose two.)
A.
Uncompress the file and move the resulting directory to /usr/src/linux
B.
Apply the patch file to the kernel source directory containing kernel version 4.6.0
C.
Apply the patch file to the kernel source directory containing kernel version 4.6.3
D.
Uncompress the file using xz to get the uncompressed patch file
E.
Use patch to apply the uncompressed patch file to the source directory of any previous kernel version
i'd appreciate help on that one, my book for LPIC-2, explicitly says that patches can only be applied to the kernels DIRECT predecessor, which would make C the correct answer, not E.
...then again in spite of said book referring to Version 450 of LPIC-2, it also uses kernel version 2.9.xxx as an example.... trying to understand the wording on kernel.org, but that does not really help me...
ANY help would be highly (and urgently) appreciated....
B & D are correct.
https://www.kernel.org/doc/html/v4.18/process/applying-patches.html:
"To apply a patch moving from 4.6 to 4.7, you’d do the following (note that such patches do NOT apply on top of 4.x.y kernels but on top of the base 4.x kernel – if you need to move from 4.x.y to 4.x+1 you need to first revert the 4.x.y patch)."
B & D are correct.
These patches are not incremental, meaning that for example the 4.7.3 patch does not apply on top of the 4.7.2 kernel source, but rather on top of the base 4.7 kernel source.
So, in order to apply the 4.7.3 patch to your existing 4.7.2 kernel source you have to first back out the 4.7.2 patch (so you are left with a base 4.7 kernel source) and then apply the new 4.7.3 patch.
50/50 between B and C.
D is correct
"Patch-4.6.4.xz" is an XZ compressed file, you need to decompress it first, or use the "xzcat" command to read the content. The naming method of the patch file is: "patch-4.6.4" is a diff made for "4.6.0". "Patch-4.6.3-4" is a diff created for "4.6.3". "Patch-4.6" is a diff created for "4.5.0".
Option A, if you want to compile the Linux kernel, you need to do it in the "/usr/src/linux" directory, but the patch file cannot be used directly to overwrite the source code. It needs to be used with the "patch" command.
Option B is correct. After decompression, apply it through the "patch" command. You can also read the file with the "xzcat" command if you don't decompress it in advance.
Option C, if the previous Linux kernel source code is not version 4.6.0, you must first apply other patch files to fix it to version 4.6.0.
Option D, correct.
Option E, if the previous Linux kernel source code is not version 4.6.0, you must first apply other patch files to fix it to version 4.6.0.
Excactly. You can not patch ANY kernel Version with the patch file 4.6.4.
Only a Kernel with Version 4.6.3. So the Answer E is not correct
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
glorofarz
Highly Voted 4 years, 4 months agokhr
4 years, 3 months agodebloid
Most Recent 4 months, 2 weeks agochiaseed
1 year, 2 months agoMaikyCR28
1 year, 8 months agobluepenguin
2 years, 8 months agoserruchozgz
2 years, 9 months agoDohecadi
2 years, 9 months agoEMordenti
2 years, 10 months agophucpeta
3 years agobenny1102
3 years agophucpeta
3 years agoschinderhannes
3 years, 2 months agomilan92stankovic
3 years, 10 months agoroach7
3 years, 10 months ago