{"id":59242,"date":"2023-06-01T14:39:59","date_gmt":"2023-06-01T18:39:59","guid":{"rendered":"https:\/\/pappp.net\/?p=59242"},"modified":"2023-06-01T14:39:59","modified_gmt":"2023-06-01T18:39:59","slug":"reinstalling-an-rhel-like-in-place","status":"publish","type":"post","link":"https:\/\/pappp.net\/?p=59242","title":{"rendered":"Reinstalling an RHEL-like in-place"},"content":{"rendered":"\n<p>Dumb Linux trick:<\/p>\n\n\n\n<p>Suspicious of damaged system files on an RHEL-like (rocky, alma, centos, probably fedora, whatever) system?<\/p>\n\n\n\n<p>Once you get it unfucked enough to use the package manager (dealing with filesystem problems, hand-re-installing the rpms required to make dnf work, etc.) , systematically reinstall all installed packages!<br \/><br \/>As root do a: <br \/><code>rpm -qa --queryformat \"%{NAME}\\n\" > installed.txt<\/code><br \/><code>dnf reinstall $(&lt;installed.txt)<\/code><\/p>\n\n\n\n<p>and settle in for a long operation.<\/p>\n\n\n\n<p>I&#8217;ve done it on Arch boxes where it is written as something like <code>pacman -Qqn | pacman -S -<\/code>, but hadn&#8217;t tried it with dnf until I had a Rocky 8 box wedge during a <code>dnf upgrade<\/code> yesterday and wipe out large pieces of the system, then cause some damage to the (annoying default XFS on LVM) root when a reboot failed.  It seems to have worked. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dumb Linux trick: Suspicious of damaged system files on an RHEL-like (rocky, alma, centos, probably fedora, whatever) system? Once you get it unfucked enough to use the package manager (dealing with filesystem problems, hand-re-installing the rpms required to make dnf &hellip; <a href=\"https:\/\/pappp.net\/?p=59242\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[4,1],"tags":[],"class_list":["post-59242","post","type-post","status-publish","format-aside","hentry","category-computers","category-general","post_format-post-format-aside"],"_links":{"self":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts\/59242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=59242"}],"version-history":[{"count":0,"href":"https:\/\/pappp.net\/index.php?rest_route=\/wp\/v2\/posts\/59242\/revisions"}],"wp:attachment":[{"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=59242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=59242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pappp.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=59242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}