You are not logged in.

#1 2010-06-28 09:29:17

whitethorn
Member
Registered: 2010-05-02
Posts: 153

Deleted Pacman Database

Hi,

So I've been fooling around with arch a bit and trying out a bunch of ways to get my pc working a bit faster.  Since I have a good amount of ram on my pc I decided to try out using a ramdisk, so I followed what was written here.

http://wiki.archlinux.org/index.php/Ramdisk

Unfortunately I didn't really notice much of  a speedup, since my internet connection is the bottleneck and not so much the HD speed.  I decided to remove the ramdisk and I'm not quite sure what went wrong but after doing some stuff /var/pacman was gone.  I had a couple problems getting pacman to work again, but after creating a couple folders and files it worked.  What I didn't know at the time was that the whole database and the list of installed programs was gone, so no surprise why there weren't any upgrades available.  I tried installing a couple of packages, which brought to this problem

http://bbs.archlinux.org/viewtopic.php?id=99211

I'm trying to get the pacman database back, I've tried reinstalling most of the packages I know about on my pc and I have to install them with the -force option because otherwise I get the file/files already exist in the filesystem error.  Is there another way to rebuild my pacman database?  I've already gone through a bunch of folders with pacman -Qo and reinstalled a bunch of stuff but it's a long process...

Offline

#2 2010-06-28 09:37:07

Cr0k
Member
Registered: 2009-10-16
Posts: 174

Re: Deleted Pacman Database

You can re download the database with

pacman -Syyu

Offline

#3 2010-06-28 09:42:18

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: Deleted Pacman Database

If you've still got /var/log/pacman.log, browse to http://wiki.archlinux.org/index.php/Pacman_Tips and read the section "Restore pacman's local database".

Offline

#4 2010-06-28 12:22:13

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Deleted Pacman Database

Restore from backup.

Offline

#5 2010-06-28 18:28:58

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Deleted Pacman Database

karol wrote:

Restore from backup.

*lol* Honestly - just _how_ many backs up the OS?? (personal files, yes; OS - I bet not many!!)

Offline

#6 2010-06-28 18:38:18

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Deleted Pacman Database

@ perbh
I'm not sure if I got it right, but if you have a list of installed packages you can recreate the db w pacman + '-force', as you wrote. I'm not using yaourt etc. so I works for me. Adding one more little text file to my backup is not a problem at all.

Last edited by karol (2010-06-28 18:38:58)

Offline

#7 2010-06-29 01:39:16

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Deleted Pacman Database

@karol,
Yeah, that is actually a very good idea. I dont use it myself, but then I have several arch-linux computers and if I ever get into trouble (I had a diskcrash a while back), I just go to one of the other computers and generate a list from there ...
+1 for your idea!

[edit]
That being said - for a while I kept a toc-file like you suggested (those were the days when I put arch on everything in sight!). What I learned however, was that the changes (aur excluded) were fairly large so I ended up with a heavy editing job ...
However, if you make a toc-file sufficiently often, it should be ok ...

Last edited by perbh (2010-06-29 02:47:32)

Offline

#8 2010-06-29 09:28:53

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Deleted Pacman Database

@ perbh
It's not my idea, it's in the wiki. There's no reason you can't generate it daily.

Offline

Board footer

Powered by FluxBB