For all installed packages prefixed with php56u
, check for availability php71u
package.
# yum list installed \
| grep -o '^php56u[^ ]*' \
| { \
mapfile -t packages; \
for package in "${packages[@]}"; do \
printf '>>> %s\n' "${package/php56/php71}"; \
yum info "${package/php56/php71}" | grep -o 'Error:'; \
done; \
}