You are not logged in.
Pages: 1
Being stupid as i am, i accidentaly deleted pacman.db file. Now i have no information on installed packages and pt-pacman-info -i says that there are 0 packages installed. This is all ofcourse logical because there is no pacman.db. How can this problem be solved????
Offline
there should be a pacman.db.bak there as well, maybe you can restore the db to soem extent from that
Offline
Tx for the post, but my /var/lib/pacman.bak is empty. Don't ask me how or why. Someone please halp me, i really don't have the time for whole reinstalling process....:(
Offline
I think your only reference will be /var/log/pacman.log then.
Offline
Oh no!!!
Offline
Never did any programming but learned a little about linux over time. Perhaps one of the programmers could help with a script to re-install all the packages that were installed using pacman.log as a reference. I have come up with a crude script that could give you some idea of the packages to re-install.
grep "installed" /var/log/pacman.log | cut -d' ' -f4 | sort -u
---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare
Offline
This is probably the stupidest thing i've ever done. It wasn't intended, but nevertheless. Seems like i'll end up with reinstalling the whole system from scratch...:(
Offline
May I suggest
grep -E '\] installed |\] upgraded ' /var/log/pacman.log | cut -d' ' -f4 | sort -u
instead? The above was already fine but didn't account for packages that were installed on the first installation, at least on my system.
1000
Offline
Another possibility is to re-install all the packages in /var/cache/pacman/pkg if you have not cleared it.
---for there is nothing either good or bad, but only thinking makes it so....
Hamlet, W Shakespeare
Offline
Pages: 1