Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam 201-450 topic 1 question 36 discussion

Actual exam question from LPI's 201-450
Question #: 36
Topic #: 1
[All 201-450 Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
glorofarz
Highly Voted 3 years, 9 months ago
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....
upvoted 6 times
khr
3 years, 8 months ago
You seem to be right - quote: "A patch is a small text document containing a delta of changes between two different versions of a source tree."
upvoted 2 times
...
...
chiaseed
Most Recent 7 months, 1 week ago
Selected Answer: BD
Voting for B and D
upvoted 1 times
...
MaikyCR28
1 year ago
B,D 100%
upvoted 1 times
...
bluepenguin
2 years ago
B,D - first uncompress the file, the run patch to the previous version. The patch command itself has no uncompress feature
upvoted 1 times
...
serruchozgz
2 years, 1 month ago
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)."
upvoted 3 times
...
Dohecadi
2 years, 2 months ago
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.
upvoted 3 times
...
EMordenti
2 years, 2 months ago
In my opinion, B and D https://www.kernel.org/doc/html/v4.18/process/applying-patches.html
upvoted 2 times
...
phucpeta
2 years, 4 months ago
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.
upvoted 1 times
...
benny1102
2 years, 5 months ago
B, D correct.
upvoted 2 times
phucpeta
2 years, 4 months ago
50/50 B&C
upvoted 1 times
...
...
schinderhannes
2 years, 7 months ago
C an D - 100%
upvoted 1 times
...
milan92stankovic
3 years, 3 months ago
B, D - 100%
upvoted 2 times
...
roach7
3 years, 3 months ago
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
...
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.

SaveCancel
Loading ...