Yum equivalent of rpm --nopreun
Solution 1:
I installed the yum-downloadonly
plugin:
# yum install yum-downloadonly
and then I told it to download the pkg to /opt
:
# yum update pkg-name -y --downloadonly --downloaddir=/opt
The -y
option means "Assume yes"
Then I executed the rpm -i --nopreun /opt/pkgname
Solution 2:
Not with yum
, but you can download the rpm and try to run
rpm with "--noscripts
" option.
EDIT: to your comment, there is a --nopreun
switch as well for rpm command
Solution 3:
With yum, no, but you can use yumdownloader
to retrieve the package and any dependencies (available in the yum-utils
package), then run rpm
manually.