[opensuse] Repairing the rpm system
Hi, I managed to remove everything in /var/lib/rpm (don't ask... :( ). Anyway, after running "rpm --rebuild db" I still end up with things like this: -> rpm -q --whatprovides /bin/ls file /bin/ls is not owned by any package Is there a way to get things fixed up? This is openSUSE 12.1 Thanks, Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 06.01.2012 17:52, schrieb Robert Schweikert:
Hi,
I managed to remove everything in /var/lib/rpm (don't ask... :( ). Anyway, after running "rpm --rebuild db" I still end up with things like this:
-> rpm -q --whatprovides /bin/ls file /bin/ls is not owned by any package
Is there a way to get things fixed up?
This is openSUSE 12.1
Thanks, Robert
Instead of your command what tells you rpm -qf /bin/ls (it should say coreutils) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 06.01.2012 18:14, schrieb Martin Helm:
Instead of your command what tells you
rpm -qf /bin/ls
(it should say coreutils) Sorry had to reread your mail, what is in /var/lib/rpm now after you rebuilt the database? I would guess it contains nothing useful. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 01/06/2012 12:27 PM, Martin Helm wrote:
Am 06.01.2012 18:14, schrieb Martin Helm:
Instead of your command what tells you
rpm -qf /bin/ls
(it should say coreutils) Sorry had to reread your mail, what is in /var/lib/rpm now after you rebuilt the database? I would guess it contains nothing useful.
After the rebuild /var/lib/rpm just contained the "Packages" file. I then ran "zypper up", which re-created the other files normally found in /var/lib/rpm and installed some "core" packages, such as bash and a few others. The content of these is of course already on the system, thus nothing really changed other than that the database started to get re-populated. Therefore an 'rpm -qa' now provides a very short list of packages. Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 06.01.2012 18:40, schrieb Robert Schweikert:
On 01/06/2012 12:27 PM, Martin Helm wrote:
Am 06.01.2012 18:14, schrieb Martin Helm:
Instead of your command what tells you
rpm -qf /bin/ls
(it should say coreutils) Sorry had to reread your mail, what is in /var/lib/rpm now after you rebuilt the database? I would guess it contains nothing useful.
After the rebuild /var/lib/rpm just contained the "Packages" file. I then ran "zypper up", which re-created the other files normally found in /var/lib/rpm and installed some "core" packages, such as bash and a few others. The content of these is of course already on the system, thus nothing really changed other than that the database started to get re-populated. Therefore an 'rpm -qa' now provides a very short list of packages.
Robert
That is normal since you deleted the complete content from the /var/lib/rpm your rebuild command was useless, there was absolutely nothing to rebuild. I am afraid I do not know any way to recover that other than restoring the full content of /var/lib/rpm from your latest backup and then run a rebuild of the rpm database (if it is needed at all). -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, Jan 06, 2012 at 11:52:38AM -0500, Robert Schweikert wrote:
I managed to remove everything in /var/lib/rpm (don't ask... :( ). Anyway, after running "rpm --rebuild db" I still end up with things like this:
-> rpm -q --whatprovides /bin/ls file /bin/ls is not owned by any package
Is there a way to get things fixed up?
/var/adm/backup/rpmdb/ might be of help for you. Lars -- Lars Müller [ˈlaː(r)z ˈmʏlɐ] Samba Team SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany
On 01/06/2012 02:03 PM, Lars Müller wrote:
On Fri, Jan 06, 2012 at 11:52:38AM -0500, Robert Schweikert wrote:
I managed to remove everything in /var/lib/rpm (don't ask... :( ). Anyway, after running "rpm --rebuild db" I still end up with things like this:
-> rpm -q --whatprovides /bin/ls file /bin/ls is not owned by any package
Is there a way to get things fixed up?
/var/adm/backup/rpmdb/ might be of help for you.
Thank you Lars, saved me a lot of hassle, scripting, and searching. Robert -- Robert Schweikert MAY THE SOURCE BE WITH YOU SUSE-IBM Software Integration Center LINUX Tech Lead rjschwei@suse.com rschweik@ca.ibm.com 781-464-8147 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
Lars Müller
-
Martin Helm
-
Robert Schweikert