To reinstall a package, for example, openssh
, issue the following command:
zypper --non-interactive in -f openssh
Due to the –non-interactive
flag, the console will not prompt for questions and instead assume the default answers which is useful in case the terminal is not an interactive terminal.