summaryrefslogtreecommitdiffstats
path: root/src/spdk/test/common/config/pkgdep/yum
blob: 32e89bc153beab06200ea42de335fe95e4276c97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package_manager=yum

upgrade() {
	sudo "$package_manager" upgrade -y
}

install() {
	(($#)) || return 0

	sudo "$package_manager" install -y "$@"
}

packages=(
	pciutils
	valgrind
	jq
	nvme-cli
	gdb
	fio
	librbd-devel
	kernel-devel
	gflags-devel
	libasan
	libubsan
	autoconf
	automake
	libtool
	libmount-devel
	iscsi-initiator-utils
	isns-utils-devel pmempool
	perl-open
	glib2-devel
	pixman-devel
	astyle-devel
	elfutils
	elfutils-libelf-devel
	flex
	bison
	targetcli
	perl-Switch
	librdmacm-utils
	libibverbs-utils
	gdisk
	socat
	sshfs
	sshpass
	python3-pandas
	rpm-build
	iptables
	clang-analyzer
	bc
	kernel-modules-extra
	systemd-devel
	python3
	wget
)

pre_install() {
	if [[ $ID == centos ]] && (( VERSION_ID == 8 )); then
		"$package_manager" update -y --refresh
	fi

	install nbd || {
		wget -O nbd.rpm https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/nbd-3.14-2.el7.x86_64.rpm
		install nbd.rpm
	}
}