A comprehensive parser for yum/dnf package dependency error logs in RHEL 8/9 format that analyzes dependency chains and provides actionable fix recommendations.
- ✅ Parses complete dependency chains including "requires" relationships
- ✅ Identifies root cause missing dependencies
- ✅ Provides exact installation commands to resolve issues
- ✅ Organizes output by problem number for easy navigation
- ✅ Queries repositories to find available package versions
- ✅ Single comprehensive log file - all analysis in one place
- ✅ Clean stdout summary with quick fix commands
- Add your complete dependency error into
yumlog.txtin the same directory asyumlooper.sh(Example included) - Run the script:
./yumlooper.sh
- See the fix command in the output and run it, or review the full analysis in the log file
./yumlooper.sh # Standard analysis
./yumlooper.sh -v # Verbose mode (for future debugging features)
./yumlooper.sh --help # Show helpShows a clean summary with the most important information:
================================
ANALYSIS COMPLETE
================================
Missing Dependencies:
--------------------
• platform-python-pip
• libjansson.so.4(libjansson.so.4)(64bit)
• libjson-c.so.4(JSONC_0.14)(64bit)
RECOMMENDED FIX:
================
yum install jansson json-c platform-python-pip
Full analysis saved to: depparse_analysis.log
A single comprehensive file containing:
-
DETAILED DEPENDENCY CHAINS - Tree-structured view of all problems
=== Problem 1 === Installed: python3-pip-9.0.3-20.el8.noarch \-- MISSING: platform-python-pip = 9.0.3-22.el8 (needed by: python3-pip-9.0.3-22.el8.noarch) -
FAILED PACKAGES SUMMARY - Which packages failed and why
-
ROOT CAUSE - MISSING DEPENDENCIES - List of missing dependencies
-
REPOSITORY ANALYSIS - Available packages from enabled repos
-
RECOMMENDED FIXES - Exact commands to fix the issues
To fix the dependency issues, install/update these packages: • jansson-2.14-1.el8 (from rhel-8-for-x86_64-baseos-rpms) • json-c-0.13.1-3.el8 (from rhel-8-for-x86_64-baseos-rpms) • platform-python-pip-9.0.3-24.el8 (from rhel-8-for-x86_64-baseos-rpms) Installation commands: --------------------- yum install jansson json-c platform-python-pip # Or to update: yum update jansson json-c platform-python-pip
To view the full analysis:
cat depparse_analysis.log
# or
less depparse_analysis.logproblem with installed package- Identifies problematic packagesnothing provides <dependency>- Root cause missing dependenciespackage X requires Y- Dependency chain relationships- Repository queries via
yum whatprovides- Available package versions
- Simpler - Everything in one place, no juggling multiple files
- Complete - Full context and analysis together
- Portable - Easy to share the entire analysis
- Clean stdout - Shows only what you need to act on immediately