LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2017, 01:33 AM   #1
tiger2000
LQ Newbie
 
Registered: Jul 2009
Posts: 7

Rep: Reputation: 0
corrupt the rpmdb intentionally


Any idea how to corrupt the rpmdb intentionally?

I have tried :

1. sudo rm /var/lib/rpm/__db.00X
2. sudo echo "XXXXX" >> /var/lib/rpm__db.00X

they don't work for me...

BTW, how to verify current rpmdb is fine?? can I just run "$ rpm -qa" , if $? is 0 , then it means it's good?
 
Old 07-20-2017, 12:36 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,555

Rep: Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088Reputation: 2088
Those "__db" files are not the RPM database. They are just used for transaction locks, and can be safely deleted if there is no RPM operation in progress. It is all of the other files in that directory that make up the database. The primary file there is "Packages". All of the other files can be rebuilt from that one by "rpm --rebuilddb". Serious damage to the "Packages" file may be unrecoverable.
 
  


Reply

Tags
rpms


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: AMD Intentionally Crippled Their HDMI Adapters LXer Syndicated Linux News 0 10-08-2013 05:20 PM
Intentionally Malforming Packets for Testing 0xdefec8 Linux - Networking 1 08-31-2008 05:13 AM
Preventing wireless from starting automatically (intentionally). mdmalik Linux - Wireless Networking 1 11-26-2006 03:14 AM
Windows intentionally kill linux partitions Oxagast Linux - General 4 08-29-2006 09:27 PM
How to intentionally drop packets? imarunner Linux - Networking 5 12-31-2003 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:55 PM.

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