使用bash设置参数
rpm -Uvh --define "_transaction_color 3" myPackage.rpm
#!/bin/bashINSTALL_CMD=rpm INSTALL_OPT="-Uvh --define '_transaction_color 3'"${INSTALL_CMD} ${INSTALL_OPT} myPackage.rpm
error: Macro % has illegal name (%define)
--define
_transaction_color
INSTALL_OPT
${INSTALL_OPT[@]}
.
--define
呼唤远方
慕姐4208626
凤凰求蛊