#981093 fai-client: install_packages -L use hardcoded '-s'

#981093#5
Date:
2021-01-26 08:35:27 UTC
From:
To:
Dear Maintainer,

this happends with Red hat Enterprise Linux 7, so the Versions listet below are not correct.

/usr/sbin/install_packages -Lv runs on error:
install_packages: executing  yum -y install -s at gcc perl ...
...
Command line error: no such option: -s


At line 203 in https://github.com/faiproject/fai/blob/master/bin/install_packages
a '-s' is used to '--simulate' the package install, which is only for apt-get
but give an error for other package management tool, like yum.

#981093#10
Date:
2021-01-26 09:06:44 UTC
From:
To:
    > At line 203 in https://github.com/faiproject/fai/blob/master/bin/install_packages
    > a '-s' is used to '--simulate' the package install, which is only for apt-get
    > but give an error for other package management tool, like yum.

Do you know if there's a similar option for yum or dnf?

#981093#15
Date:
2021-01-26 09:18:57 UTC
From:
To:
I think '--assumeno' can used to simulate.

I tried:
	yum -y install --assumeno yum-plugin-versionlock
And the is not installed
-----Ursprüngliche Nachricht----- Von: Thomas Lange [mailto:lange@cs.uni-koeln.de] Gesendet: Dienstag, 26. Januar 2021 10:07 An: Schulz, Reiner <R.Schulz@dvz-mv.de>; 981093@bugs.debian.org Betreff: Re: Bug#981093: fai-client: install_packages -L use hardcoded '-s' > At line 203 in https://github.com/faiproject/fai/blob/master/bin/install_packages > a '-s' is used to '--simulate' the package install, which is only for apt-get > but give an error for other package management tool, like yum. Do you know if there's a similar option for yum or dnf?
#981093#20
Date:
2021-02-02 11:16:27 UTC
From:
To:
    > /usr/sbin/install_packages -Lv runs on error:
    > install_packages: executing  yum -y install -s at gcc perl ...
    > ...
    > Command line error: no such option: -s

For yum this could help:

yum -y update --setopt tsflags=test
yum deplist <package>