You are not logged in.

#1 2006-05-12 10:59:02

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Pacman forgot installed packages

When there was the bug with the libxfixes file, I uninstalled the whole Xorg package. But now i recognized, that pacman forgot all installed packages, what means i cant really upgrade my system. Is there a way to recover the database of installed packages? Or any other possible solution?

greetz

issue

Offline

#2 2006-05-12 11:05:58

FUBAR
Member
From: Belgium
Registered: 2004-12-08
Posts: 1,029
Website

Re: Pacman forgot installed packages

If you haven't cleaned out your cache, all the installed packages are located in /var/cache/pacman/pkg. You can install them again using "pacman -A $pkgname-$pkgver-$pkgrel.pkg.tar.gz". You're database should be fine after that.


A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.

Offline

#3 2006-05-12 11:13:25

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: Pacman forgot installed packages

The prob is, that i cleared it hmm

Offline

#4 2006-05-12 11:14:09

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

Re: Pacman forgot installed packages

You need to give some more details. What entry did you use to remove xorg? What's the response to pacman -Syu? The only way pacman would "forget" all installed packages is if /var/lib/pacman/local is deleted - hopefully you didn't do that, or did you?

Offline

#5 2006-05-12 11:22:00

IsSuE
Member
Registered: 2006-04-29
Posts: 309

Re: Pacman forgot installed packages

well, I cleared the local dir.
I dunno exactly how i remoeved Xorg, but I think with -Rs.
Then I reinstalled Xorg but found the problem again.  So i cleared all local pacman files, means I deleted the local folder  hmm . I am now thinking about installing all the packages on the base CD.

pacman -Syu updates the new installed files, which i installed since this mistake smile

Offline

#6 2006-05-12 21:56:18

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Pacman forgot installed packages

do ls /var/lib/pacman/local and if it looks like packages are missing and your cache is cleared as you say it is backup and reinstall. Trust me, its not worth the hassel of hacking a solution to restore the database once its been deleted because you'll never get them all.

Offline

#7 2006-05-20 01:14:15

B15HOP
Member
From: Australia
Registered: 2005-02-10
Posts: 138

Re: Pacman forgot installed packages

Crap... I did the same thing trying to hack fix the xorg / font problem.  :oops:  :x


"The ecological crisis is a moral issue."

Offline

#8 2006-05-20 15:38:42

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: Pacman forgot installed packages

well if you still have your /var/log/pacman.log you can get the relevant entries and feed them to pacman with this cmd:

grep "(*)" /var/log/pacman.log|cut -d " " -f 4|xargs pacman -S

that should work i think.


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

Board footer

Powered by FluxBB