You are not logged in.
Pages: 1
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
You can re download the database with
pacman -Syyu
Offline
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
Restore from backup.
Offline
Restore from backup.
*lol* Honestly - just _how_ many backs up the OS?? (personal files, yes; OS - I bet not many!!)
Offline
@ 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
@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
@ perbh
It's not my idea, it's in the wiki. There's no reason you can't generate it daily.
Offline
Pages: 1