{"id":7368,"date":"2004-03-23T02:07:42","date_gmt":"2004-03-23T00:07:42","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2004\/03\/23\/fix-rpm-process-hanging-on-a-red-hat-linux-installation\/"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T22:00:00","slug":"fix-rpm-process-hanging-on-a-red-hat-linux-installation","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2004\/03\/23\/fix-rpm-process-hanging-on-a-red-hat-linux-installation\/","title":{"rendered":"Fix RPM process hanging on a Red Hat Linux installation"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>\t<img decoding=\"async\" class=\"alignright\" src=\"\/wordpress\/wp-content\/20040420-redhat.jpg\" alt=\"\">Unfortunately, it happens rather often recently that Red Hat Package Manager (rpm) just hangs during some operation. After it does so, rpm stops working completely and even reboot (hehe) doesn&#8217;t help. Well, the problem is well known and is in Red Hat&#8217;s bugzilla. For now, here is a quick fix for you.\n<\/p>\n<p><!--more-->\t<\/p>\n<p>First, kill the rpm process:<\/p>\n<div class=\"asis\"><code><br \/>\n<br \/>\n[root@home tmp]# killall -KILL rpm<br \/>\n<br \/>\n<\/code><\/p>\n<\/div>\n<p>Now, you need to remove lock files which rpm created for it&#8217;s database. If you will list the files in \/var\/lib\/rpm, then you will notice 3 (three) files which have their names like __db.001, __db.002, __db.003 . Remove them. Fast way to it would be:<\/p>\n<div class=\"asis\"><code><br \/>\n<br \/>\n[root@home tmp]# rm -f \/var\/lib\/rpm\/__db.00?<br \/>\n<br \/>\n<\/code><\/p>\n<\/div>\n<p>That&#8217;s it. Now, your rpm utility will start to work again. Enjoy.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Unfortunately, it happens rather often recently that Red Hat Package Manager (rpm) just hangs during some operation. After it does so, rpm stops working completely and even reboot (hehe) doesn&#8217;t help. Well, the problem is well known and is in Red Hat&#8217;s bugzilla. For now, here is a quick fix for you.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,62],"tags":[],"keyring_services":[],"class_list":["post-7368","post","type-post","status-publish","format-standard","hentry","category-general","category-technology"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":7367,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/03\/23\/repeat-of-the-last-command-in-bash\/","url_meta":{"origin":7368,"position":0},"title":"Repeat of the last command in bash","author":"Leonid Mamchenkov","date":"March 23, 2004","format":false,"excerpt":"Ok, we all know that to repeat the last command in bash (as well as many other shells) you just need to press the Up key. Sometimes though it is handy to test a command before using it as a subset of a bigger command. Example: if I want to\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":118,"url":"https:\/\/mamchenkov.net\/wordpress\/2003\/01\/14\/practical-rpm\/","url_meta":{"origin":7368,"position":1},"title":"Practical RPM","author":"Leonid Mamchenkov","date":"January 14, 2003","format":false,"excerpt":"This document presents few practical tips for users of Redhat Pacakage Manager (RPM). Introduction This document will not cover or explain any theory behind RPM, since it has been nicely done in few other documents. Please consider reading man rpm for a general list of options and RPM-Howto for the\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7782,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/08\/09\/disagreement-with-sean-russells-rpm-hell\/","url_meta":{"origin":7368,"position":2},"title":"Disagreement with Sean Russell&#8217;s RPM Hell","author":"Leonid Mamchenkov","date":"August 9, 2004","format":false,"excerpt":"Today I read an essey by Sean Russell called \"RPM Hell. A Perfect Example of Good Software Crippled by Bad Design\". In this essey Sean is explaining why he does not like RPM to the level when he is prepared to change the Linux distribution he is using. I, on\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7380,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/03\/23\/how-can-i-display-a-list-of-all-rpm-packages-on-the-system-with-their-sizes\/","url_meta":{"origin":7368,"position":3},"title":"How can I display a list of all rpm packages on the system with their sizes?","author":"Leonid Mamchenkov","date":"March 23, 2004","format":false,"excerpt":"\"rpm query size\" RPM (Red Hat Package Manager) has an excellent --qf (query format) option, which behaves much like printf function. Command rpm -q mozilla --qf '%{SIZE} \\n' will display the size of mozilla package. To list all packages with their sizes, you may use something like: rpm -qa --qf\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22791,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/11\/03\/fpm-build-packages-for-multiple-platforms-deb-rpm-etc-with-great-ease-and-sanity\/","url_meta":{"origin":7368,"position":4},"title":"fpm &#8211; build packages for multiple platforms (deb, rpm, etc) with great ease and sanity","author":"Leonid Mamchenkov","date":"November 3, 2014","format":"link","excerpt":"fpm -\u00a0Effing package management! Build packages for multiple platforms (deb, rpm, etc) with great ease and sanity.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7261,"url":"https:\/\/mamchenkov.net\/wordpress\/2003\/10\/13\/apt-rpm\/","url_meta":{"origin":7368,"position":5},"title":"apt-rpm","author":"Leonid Mamchenkov","date":"October 13, 2003","format":false,"excerpt":"For the last couple of days I played a bit more with apt. This time, the goal was to setup a local repository. There are two excellent documents which together cover everything there is to it: FreshRPM's guide to setting up an apt server and this Red Hat apt Repository\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/7368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=7368"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/7368\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=7368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=7368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=7368"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=7368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}