Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Identify Unavailable IUS Packages Between PHP 5.6 and 7.1

Identify Unavailable IUS PHP Packages Between 5.6 and 7.1

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; \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment