Skip to content

Instantly share code, notes, and snippets.

@jdeathe
Created June 8, 2018 10:51
Show Gist options
  • Save jdeathe/5e41e582943fb1f2eaa608a54c369111 to your computer and use it in GitHub Desktop.
Save jdeathe/5e41e582943fb1f2eaa608a54c369111 to your computer and use it in GitHub Desktop.
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