{"id":173,"date":"2011-04-30T12:39:59","date_gmt":"2011-04-30T00:39:59","guid":{"rendered":"http:\/\/mdickinson.dnsalias.org\/php\/wordpress\/?p=173"},"modified":"2011-05-23T17:42:35","modified_gmt":"2011-05-23T05:42:35","slug":"learnt-some-new-fedora-packaging-commands","status":"publish","type":"post","link":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=173","title":{"rendered":"Learnt some new Fedora packaging commands"},"content":{"rendered":"<p>So posting, for if nothing else my later reference. I will probably need them again.<\/p>\n<p>The issue was that in the last &#8216;yum update&#8217; I did (it included a kernel update) it worked perfectly on three machines. On my fourth, the one I use as my main desktop it was unable to boot into the new kernel (some strange error like unable to find fs at (0,0) message).<br \/>\nBooting off the DVD in rescue mode had no problems finding and mounting the filesystem.<\/p>\n<p>It would also still boot perfectly using the previous kernel menu option. So did that and used yum to downgrade that kernel, them yum to install that kernel. Reboot, same problem.<\/p>\n<p>A yum check showed lots of packages flagged as duplicates. Also some missing pre-requisites for two packages ????.<br \/>\nA &#8220;package-cleanup &#8211;dupes&#8221; warned that yum transactions were outstanding.<br \/>\nSo at some point I must have accidentally rebooted the server (or it crashed, this one has overheating probs) in the middle of a yum update.<\/p>\n<p>So<br \/>\n(1)   yum-complete-transaction<br \/>\n(2)   package-cleanup &#8211;dupes (to display) then package-cleanup &#8211;cleandups to fix<br \/>\n(3)   yum check<br \/>\n(4)   rpm -e all packages with missing prerequisites<br \/>\n(5)   yum check  (any probs go to 4 or 2 as appropriate)<\/p>\n<p>only when no problems left in yum-check<\/p>\n<p>(optional, I did it anyway to make sure no new probs)<br \/>\n   yum update<br \/>\n   yum check<\/p>\n<p>And then the biggie<br \/>\n(6) yum distro-sync<\/p>\n<p>The distro-sync option will update from the repositories as does a yum update, but more importantly it will also downgrade as needed any packages that have been backed out of the repositories for some reason (ie: if they had problems).<br \/>\nOn the machine I has booting problems on it modified 62 packages.<\/p>\n<p>Then rebooted.<br \/>\nIt now reboots of the new kernel<\/p>\n<p>Phew, saved by being able to boot of the old kernel and run fixups, would have been a pain in rescue mode from the dvd boot.<\/p>\n<p>So this post was made, so when I need to do it all again I have a reference.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So posting, for if nothing else my later reference. I will probably need them again. The issue was that in the last &#8216;yum update&#8217; I did (it included a kernel update) it worked perfectly on three machines. On my fourth, &hellip; <a href=\"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/?p=173\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-173","post","type-post","status-publish","format-standard","hentry","category-my-nux-thoughts-and-notes"],"_links":{"self":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=173"}],"version-history":[{"count":3,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions"}],"predecessor-version":[{"id":184,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/173\/revisions\/184"}],"wp:attachment":[{"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mdickinson.dyndns.org\/php\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}