1 package_manager=apt-get
4 sudo "$package_manager" update
10 sudo "$package_manager" install -y "$@"
14 sudo "$package_manager" update
15 sudo "$package_manager" upgrade -y
20 echo "Package perl-open is not available at Ubuntu repositories" >&2
24 if [[ $INSTALL_TSOCKS == true ]]; then
28 # asan an ubsan have to be installed together to not mix up gcc versions
29 if install libasan5; then
32 echo "Latest libasan5 is not available" >&2
33 echo " installing libasan2 and corresponding libubsan0" >&2
37 if ! install rdma-core; then
38 echo "Package rdma-core is avaliable at Ubuntu 18 [universe] repositorium" >&2
44 if ! install libpmempool1; then
45 echo "Package libpmempool1 is available at Ubuntu 18 [universe] repositorium" >&2
47 if ! install clang-tools; then
48 echo "Package clang-tools is available at Ubuntu 18 [universe] repositorium" >&2
50 if ! install --no-install-suggests --no-install-recommends open-isns-utils; then
51 echo "Package open-isns-utils is available at Ubuntu 18 [universe] repositorium" >&2
54 # Package name for Ubuntu 18 is targetcli-fb but for Ubuntu 16 it's targetcli
55 if ! install targetcli-fb; then
59 # On Ubuntu 20.04 (focal) btrfs-tools are available under different name - btrfs-progs
60 if ! install btrfs-tools; then
98 if [[ $OSID != ubuntu ]]; then
99 echo "Located apt-get package manager, but it was tested for Ubuntu only"