LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2021, 02:08 AM   #1
vershooter
LQ Newbie
 
Registered: Jul 2020
Posts: 5

Rep: Reputation: Disabled
RPM REBUILD Question


Hi I have issue running rpm -qa command and it says db_runrecovery fatal error run database recovery

Is there will be no issue running a rpm -rebuild command?

Thank you.
 
Old 10-20-2021, 03:00 AM   #2
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by vershooter View Post
Is there will be no issue running a rpm -rebuild command
It's rpm --rebuilddb (note the double dashes and db). However, a proper recovery procedure may require more than this. Before running the command, please see

https://rpm.org/user_doc/db_recovery.html
https://www.thegeekdiary.com/how-to-...n-rpm-database
https://www.tecmint.com/rebuild-corr...base-in-centos
https://www.cyberciti.biz/tips/rebui...-database.html
https://access.redhat.com/solutions/6903

The docs will often speak of rpmdb --rebuilddb, but it's the same: rpm --rebuilddb will just call rpmdb internally.

Last edited by shruggy; 10-20-2021 at 03:54 PM.
 
Old 10-20-2021, 07:47 PM   #3
vershooter
LQ Newbie
 
Registered: Jul 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thank you,

But this one will not corrupt the existing installed packages ? or update anything on the packages?
 
Old 10-21-2021, 02:06 AM   #4
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
In short, no.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to rebuild the corrupted rebuild RPM database pantdk Linux - Server 3 02-19-2015 01:01 AM
RPM rebuild? GT I.N.C Linux - Software 4 10-20-2002 01:10 PM
rpm --rebuild can't work in Red Hat 8.0 explorer1979 Linux - General 1 10-15-2002 10:26 PM
RPM --rebuild function finds no directory. sk545 Linux - Software 1 08-27-2002 09:36 PM
rpm --rebuild: No such file or directory Halz Linux - Software 8 10-25-2001 05:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration