A
A
Alex vak2017-07-27 15:09:48
linux
Alex vak, 2017-07-27 15:09:48

How to check that the patch will fit the updated kernel sources?

After the next system update, the network card stopped working. Got a kernel patch.
How to check that the patch will fit the updated kernel sources.
Which command to check if the patch will be applied to the sources:

patch --dry-run
patch --applicable
patch --unified
patch -pl
patch --context

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2017-07-27
@Itmoing100

The patch contains relative paths to files and must be applied in a specific directory. This should normally be the root directory of the project, but the patch contains 1 level more directories. The extra level is truncated with the -p1 option. This is a unit, not a lowercase l, as you wrote.
patch -p1 --dry-run < patch

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question