mirror of
https://github.com/dynup/kpatch
synced 2025-04-25 04:27:56 +00:00
readme: update, add RHEL 7 as supported distro, break up long lines and beautify using GitHub flavored markdown
This commit is contained in:
parent
cde33f13ed
commit
d5bb38d42d
67
README.md
67
README.md
@ -35,17 +35,21 @@ Installation
|
|||||||
|
|
||||||
Install the dependencies for compiling kpatch:
|
Install the dependencies for compiling kpatch:
|
||||||
|
|
||||||
sudo yum install gcc kernel-devel elfutils elfutils-devel
|
```bash
|
||||||
|
sudo yum install gcc kernel-devel elfutils elfutils-devel
|
||||||
|
```
|
||||||
|
|
||||||
Install the dependencies for the "kpatch-build" command:
|
Install the dependencies for the "kpatch-build" command:
|
||||||
|
|
||||||
sudo yum install rpmdevtools pesign yum-utils
|
```bash
|
||||||
sudo yum-builddep kernel
|
sudo yum install rpmdevtools pesign yum-utils
|
||||||
sudo debuginfo-install kernel
|
sudo yum-builddep kernel
|
||||||
|
sudo debuginfo-install kernel
|
||||||
|
|
||||||
# optional, but highly recommended
|
# optional, but highly recommended
|
||||||
sudo yum install ccache
|
sudo yum install ccache
|
||||||
ccache --max-size=5G
|
ccache --max-size=5G
|
||||||
|
```
|
||||||
|
|
||||||
####RHEL 7
|
####RHEL 7
|
||||||
|
|
||||||
@ -54,35 +58,45 @@ Install the dependencies for the "kpatch-build" command:
|
|||||||
|
|
||||||
Install the dependencies for compiling kpatch:
|
Install the dependencies for compiling kpatch:
|
||||||
|
|
||||||
sudo yum install gcc kernel-devel elfutils elfutils-devel
|
```bash
|
||||||
|
sudo yum install gcc kernel-devel elfutils elfutils-devel
|
||||||
|
```
|
||||||
|
|
||||||
Install the dependencies for the "kpatch-build" command:
|
Install the dependencies for the "kpatch-build" command:
|
||||||
|
|
||||||
sudo yum install rpmdevtools pesign yum-utils zlib-devel binutils-devel newt-devel python-devel perl-ExtUtils-Embed audit-libs-devel numactl-devel pciutils-devel bison
|
```bash
|
||||||
sudo yum-builddep kernel
|
sudo yum install rpmdevtools pesign yum-utils zlib-devel \
|
||||||
sudo debuginfo-install kernel
|
binutils-devel newt-devel python-devel perl-ExtUtils-Embed \
|
||||||
|
audit-libs devel numactl-devel pciutils-devel bison
|
||||||
|
|
||||||
# optional, but highly recommended
|
sudo yum-builddep kernel
|
||||||
sudo yum install ccache
|
sudo debuginfo-install kernel
|
||||||
ccache --max-size=5G
|
|
||||||
|
# optional, but highly recommended
|
||||||
|
sudo yum install ccache
|
||||||
|
ccache --max-size=5G
|
||||||
|
```
|
||||||
|
|
||||||
####Ubuntu 14.04
|
####Ubuntu 14.04
|
||||||
|
|
||||||
*NOTE: You'll need about 15GB of free disk space for the kpatch-build cache in
|
*NOTE: You'll need about 15GB of free disk space for the kpatch-build cache in `~/.kpatch` and for ccache.*
|
||||||
`~/.kpatch` and for ccache.*
|
|
||||||
|
|
||||||
Install the dependencies for compiling kpatch:
|
Install the dependencies for compiling kpatch:
|
||||||
|
|
||||||
apt-get install make gcc libelf-dev
|
```bash
|
||||||
|
apt-get install make gcc libelf-dev
|
||||||
|
```
|
||||||
|
|
||||||
Install the dependencies for the "kpatch-build" command:
|
Install the dependencies for the "kpatch-build" command:
|
||||||
|
|
||||||
apt-get install dpkg-dev
|
```bash
|
||||||
apt-get build-dep linux
|
apt-get install dpkg-dev
|
||||||
|
apt-get build-dep linux
|
||||||
|
|
||||||
# optional, but highly recommended
|
# optional, but highly recommended
|
||||||
apt-get install ccache
|
apt-get install ccache
|
||||||
ccache --max-size=5G
|
ccache --max-size=5G
|
||||||
|
```
|
||||||
|
|
||||||
Install kernel debug symbols:
|
Install kernel debug symbols:
|
||||||
|
|
||||||
@ -178,20 +192,17 @@ Compile kpatch:
|
|||||||
|
|
||||||
###Install
|
###Install
|
||||||
|
|
||||||
OPTIONAL: Install kpatch to /usr/local:
|
OPTIONAL: Install kpatch to `/usr/local`:
|
||||||
|
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
Alternatively, the kpatch and kpatch-build scripts can be run directly from the
|
Alternatively, the kpatch and kpatch-build scripts can be run directly from the git tree.
|
||||||
git tree.
|
|
||||||
|
|
||||||
|
|
||||||
Quick start
|
Quick start
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
*NOTE: While kpatch is designed to work with any recent Linux
|
> NOTE: While kpatch is designed to work with any recent Linux kernel on any distribution, the `kpatch-build` command has **ONLY** been tested to work on Fedora 20, RHEL 7 and Ubuntu 14.04.
|
||||||
kernel on any distribution, the "kpatch-build" command currently only works on
|
|
||||||
Fedora 20 and Ubuntu 14.04.*
|
|
||||||
|
|
||||||
First, make a source code patch against the kernel tree using diff, git, or
|
First, make a source code patch against the kernel tree using diff, git, or
|
||||||
quilt.
|
quilt.
|
||||||
|
Loading…
Reference in New Issue
Block a user