Skip to content

Commit 66158b5

Browse files
GCoreTechgmelikov
authored andcommitted
Replaced yum localinstall with dnf install
* RHEL 7 uses yum but is end of life (2024-06-30) * RHEL 8/9 uses dnf instead of yum and localinstall is just an alias for install. Yum/dnf accepts local files and package names with install since RHEL 6, localinstall is deprecated and removed in Fedora. * use uname -m (uname -p returns unknown instead of e.g. x86_64)
1 parent c8a97bc commit 66158b5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/Developer Resources/Custom Packages.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ ZFS 2.1 release:
6969
7070
sudo yum install epel-release gcc make autoconf automake libtool rpm-build libtirpc-devel libblkid-devel libuuid-devel libudev-devel openssl-devel zlib-devel libaio-devel libattr-devel elfutils-libelf-devel kernel-devel-$(uname -r) python python2-devel python-setuptools python-cffi libffi-devel ncompress
7171
sudo yum install --enablerepo=epel dkms python-packaging
72+
73+
**NOTE:** RHEL/CentOS 7 is end of life. Use yum instead of dnf for install instructions below.
7274

7375
- **RHEL/CentOS 8**:
7476

@@ -106,7 +108,7 @@ Building rpm-based DKMS and user packages can be done as follows:
106108
$ cd zfs
107109
$ ./configure
108110
$ make -j1 rpm-utils rpm-dkms
109-
$ sudo yum localinstall *.$(uname -p).rpm *.noarch.rpm
111+
$ sudo dnf install *.$(uname -m).rpm *.noarch.rpm
110112
111113
kmod
112114
~~~~
@@ -124,7 +126,7 @@ options.
124126
$ cd zfs
125127
$ ./configure
126128
$ make -j1 rpm-utils rpm-kmod
127-
$ sudo yum localinstall *.$(uname -p).rpm
129+
$ sudo dnf install *.$(uname -m).rpm *.noarch.rpm
128130
129131
kABI-tracking kmod
130132
~~~~~~~~~~~~~~~~~~
@@ -142,7 +144,7 @@ option must be passed to configure.
142144
$ cd zfs
143145
$ ./configure --with-spec=redhat
144146
$ make -j1 rpm-utils rpm-kmod
145-
$ sudo yum localinstall *.$(uname -p).rpm
147+
$ sudo dnf install *.$(uname -m).rpm *.noarch.rpm
146148
147149
Debian and Ubuntu
148150
-----------------

0 commit comments

Comments
 (0)