in scripts/elf_rockylinux_dependency_analyzer.py [0:0]
def check_requirements():
required_commands = ['ldd', 'file', 'rpm', 'repoquery']
missing_commands = [cmd for cmd in required_commands if shutil.which(cmd) is None]
if missing_commands:
print("Error: The following required commands are missing:")
for cmd in missing_commands:
print(f" - {cmd}")
print("\nPlease install these commands and try again.")
if 'repoquery' in missing_commands:
print("Note: 'repoquery' is typically part of the 'yum-utils' package.")
sys.exit(1)