Getting DB_RUNRECOVERY error from yum/rpm, what can you do to fix it? The error messages look something like this:
$ sudo yum install google-chrome-stable error: rpmdb: Thread/process 9662/3077695168 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db4 – (-30974) […]
Here’s how to list all packages whose names start with ‘nss’
yum info -v nss* | grep -v Committer | grep -w ‘Name\|Version\|Release\|Description\|Repo’
Here’s how to list all INSTALLED packages whose names start with ‘nss’
yum info -v nss* | grep -A12 -B5 -w ‘installed’ | grep -v Committer | grep -w ‘Name\|Version\|Release\|Description\|Repo\|installed’
And since […]
The yum repos are described in files which are stored in /etc/yum.repos.d/ . So if you want to remove a yum repo you just gotta go to that dir and remove the file in question.
It’s more or less obvious why one would want to add a new repo (to get stuff from it!) […]
Sometimes a yum/RPM package would get “stuck” and just won’t go away. Actually usually the package is already gone but yum/rpm fails to update it’s internal DB and still thinks it is there.
The error one usually sees in such cases is something like:
Error in PREUN scriptlet in rpm package stlinux23-sh4_uclibc-which
To enable a new RPM (yum) repository add a new .repo file for it under /etc/yum.repos.d. For example, to add a repository to install google’s Chrome browser add a file (e.g. google.repo) in the /etc/yum.repos.d directory and copy the following into it:
[google-chrome]
name=google-chrome – 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
[…]
If you want to find the relationship between files on your system and RPM packages (which one owns/belongs-to which) then this page will be of help to you.
1. Contents of an RPM package
1.1.1. This RPM command will show you the contents of a package which is already installed on your system:
rpm -ql […]
-
Categories
- Android Development
- Bash
- C programming
- dpkg/apt-get
- drupal
- Emacs
- Git
- Java
- Linux administration
- Linux device drivers
- Linux Gaming
- Linux kernel
- Linux Networking
- Linux on Windows
- Linux printing
- Linux sound and ALSA
- Package Managers
- Programming
- RPM
- Shell and environment
- Tips and tricks
- Uncategorized
- VirtualBox
- Virtualization
- web development
- wine
- WMaker
- Wordpress Tips
- X Window System
- XFCE
-
Articles
- August 2020
- August 2019
- May 2019
- July 2017
- February 2017
- January 2017
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- April 2016
- March 2016
- December 2015
- November 2015
- September 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- October 2014
- February 2014
- January 2014
- November 2013
- October 2013
- June 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- October 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
-
Calendar
June 2023 M T W T F S S « Aug 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 -
Meta
Cloud
audio bash boot compile C programming cups drupal emacs etc Fedora git grep how to httpd init kernel libc linux linux partition localtime login make mount mp3 mysql networking oracle package managers password phpMyAdmin programming rpm shell sql vbox version control system virtual box vm web server wordpress www xargs xfce xwin yum