You are not logged in.

#1 2013-10-15 20:14:19

becatlibra
Member
Registered: 2010-06-25
Posts: 61

Accidentally RM'd contents of /var/lib/pacman/local/

I have been working on setting up a new workstation for myself, and getting it to be consistent with the old workstation that I had (with the exception of encrypting all of / this time rather than just encrypting /home).  Have been working on this for some time now and due to many frustrations (hardware related), lack of sleep and too many terminal sessions I ended up running an RM command inside /var/lib/pacman/local, removing all contents.

I need to find a way to rebuild this if at all possible.  I'm thinking parsing out the package names from the pacman.log and then running reinstall for all things, however that is not really an ideal/clean solution.  Is there a better one that someone can point me to?  I found this: https://bbs.archlinux.org/viewtopic.php?pid=670876 however that seems to provide a list, without explaining further steps and I believe that I can get a list out of pacman.log which should be 100% accurate ... something like: yaourt -S `cat /var/log/pacman.log | grep "\[PACMAN\] installed" | awk '{print $5}' | sort | tr '\n' ' '`

Open to suggestions on this.  I really do not want to have to start over ... again

Thanks

B

Offline

#2 2013-10-15 20:22:57

becatlibra
Member
Registered: 2010-06-25
Posts: 61

Re: Accidentally RM'd contents of /var/lib/pacman/local/

Apparently I didn't search 'enough'  ... found more suggestions online that I'm going to try.  This post can be removed.

-b

Offline

#3 2013-10-15 20:26:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,645
Website

Re: Accidentally RM'd contents of /var/lib/pacman/local/

...or you can post the solution that worked for you so other users who may happen across it and can learn from it.

https://wiki.archlinux.org/index.php/Fo … way_Street

Last edited by graysky (2013-10-15 20:26:26)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2013-10-15 20:51:00

becatlibra
Member
Registered: 2010-06-25
Posts: 61

Re: Accidentally RM'd contents of /var/lib/pacman/local/

As you request: https://wiki.archlinux.org/index.php/Pa … l_database

It's a similar method to what I mentioned, however using tools that already exist for things like parsing the pacman log.

Offline

Board footer

Powered by FluxBB