summaryrefslogtreecommitdiffstats
path: root/src/spdk/test/common/config/pkgdep/dnf
blob: b009f106efde4b1d39ef7618024ea7f9d7b1b24a (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
68
69
70
71
72
package_manager=dnf

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

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

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

packages=(
	valgrind
	jq
	nvme-cli
	ceph
	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
	libabigail
	elfutils-libelf-devel
	flex
	bison
	targetcli
	perl-Switch
	librdmacm-utils
	libibverbs-utils
	gdisk
	socat
	sshfs
	sshpass
	python3-pandas
	btrfs-progs
	rpm-build
	iptables
	clang-analyzer
	bc
	kernel-modules-extra
	systemd-devel
	smartmontools
	wget
)

pre_install() {
	if [[ $INTSALL_TSOCKS == true ]]; then
		# currently, tsocks package is retired in fedora 31, so don't exit in case
		# installation failed
		# FIXME: Review when fedora starts to successfully build this package again.
		install tsocks || echo "Installation of the tsocks package failed, proxy may not be available"
	fi
}

if [[ $OSID != fedora ]]; then
	echo "Located dnf package manager, but it was tested for Fedora only"
fi