- Package:
- fai-client
- Source:
- fai
- Submitter:
- Reiner Schulz
- Date:
- 2021-02-02 11:21:03 UTC
- Severity:
- minor
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.
> 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?
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?
> /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>