id0ddlmZmZmZGddeeZy))Plugin RedHatPlugin PluginOptcNeZdZdZdZdZdZdZdZe ddd gZ d Z d Z d Z y) DNFPlugina The DNF plugin collects information for the dnf package manager and how it is configured for local system. By default, this plugin will collect configuration files from /etc/dnf, repo files defined in /etc/yum.repos.d/, module information, and various 'dnf list' commands. When using the 'history-info' option, detailed transaction information will be collected for the most recent 50 dnf transactions, and will be saved to the sos_commands/dnf/history-info directory. zdnf package managerdnf)systempackagemanagersysmgmt)/etc/dnf/dnf.conf)r history-infoFz$collect detailed transaction history)defaultdescc|sy|jD]6}d|vs|jd}|dk7s!|jd|zd8y)Nz[i]rzHint:zdnf module info dnf_module_infotags) splitlinessplitadd_cmd_output)selfmoduleslinemodules 8/usr/lib/python3/dist-packages/sos/report/plugins/dnf.pyget_modules_infozDNFPlugin.get_modules_info(sa &&( @D}aW$''(:V(C->(@  @c|jddi|jgd|jdgd|jdr|jdn3|jd |jd |jd |jd d |jgd|jdddg|jdddg|jd|j ddg|jgd|jds|jddn|j dd}d}|drE|dj D]/} t|jddj}ntd t|d zd!D]}|jd"|zdd#$d%}|j |}|j|dy#t$rYwxYw)&Nz/etc/dnf/modules.d/.*.module dnf_modules)z /etc/dnf/z /etc/yum.confz/etc/yum/pluginconf.d/z/etc/yum/vars/z/etc/yum.repos.d/) yum_repos_d dnf_repos_ddnf_reporall_logsz/var/log/dnf.*z/var/log/dnf.log*z/var/log/dnf.librepo.log*z/var/log/dnf.rpm.log*zdnf module listdnf_module_list)z dnf --versionzdnf list extraszpackage-cleanup --dupeszpackage-cleanup --problemszdnf list installedyum_list_installeddnf_list_installedzdnf -C repolist yum_repolist dnf_repolistzdnf -C repolist --verbosez/etc/pki/entitlement/key.pemz/etc/pki/entitlement/*-key.pem)z/etc/pki/product/*.pemz/etc/pki/consumer/cert.pemz/etc/pki/entitlement/*.pemr z dnf history dnf_historyoutput|r2zdnf history info %ddnf_history_info)subdirrzdnf module list --installed) add_file_tags add_copy_spec get_optionradd_forbidden_pathcollect_cmd_outputrintrstrip ValueErrorrangeminr)rhistory transactionsrtr_id module_cmdrs rsetupzDNFPlugin.setup4sU  *M     . J  L ??: &   / 0   2 3   : ;   6 7 -!2  4    0"68L!M  O -"0.!A  C 78  * ,!    ~.    M  B--m3@.BGLx #H-88:D'*4::c?1+=+C+C+E'F  q#l1nb"9: =##$9E$A+9);$= = 3 ))*5 gh/0&s/+G:: HHcfd}d}dD]}|j||||jd||y)Nz(password(\s)*=(\s)*)(\S+)\nz \1********\n)z/etc/yum.repos.d/*z/etc/dnf/vars/*r )do_path_regex_sub do_file_sub)rregexpreplfs rpostproczDNFPlugin.postproc~sD1: 4A  " "1fd 3 4 ,fd;rN)__name__ __module__ __qualname____doc__ short_desc plugin_nameprofilesfilespackagesr option_listrr?rFrrrrsL 'JK6H "EH .%= ?K @H1TrSs?>G< G