You are not logged in.

#1 2007-02-21 10:31:40

randomshinichi
Member
Registered: 2006-10-23
Posts: 12

Recovering from 'rm -rf /var/lib/pacman'?

Well, even after a pacman -Sy clamav still didn't want to update to the newest version that archlinux.org listed. So I deleted /var/lib/pacman and started afresh.

Guess that was a really bad idea. Now pacman thinks my system is completely empty, when in fact it has gstreamer, amarok, kde, xorg-x11, iptraf and a whole lot of really cool things that I spent the better half of a year configuring and making to work.

So, how can I get it back? I have /var/log/pacman.log, if that helps. I saw a post on the forum that says I have to use grep "(*)" and then somehow give it back to pacman by |xargs pacman -S, however, it complains about some packages missing from sync db, such as gstreamer and devfsd (which was gone a long time ago). So what can I do in this case?

Offline

#2 2007-02-21 15:24:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Recovering from 'rm -rf /var/lib/pacman'?

Create a file with the package list from your log, edit out anything that doesn't work e.g. devfsd, and then pipe it into pacman.

Offline

#3 2007-02-21 17:07:38

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: Recovering from 'rm -rf /var/lib/pacman'?

theres a script in the forums that tries to rebuild your database using the log file

Offline

Board footer

Powered by FluxBB