You are not logged in.

#1 2008-01-19 01:32:07

MillTek
Member
Registered: 2005-01-30
Posts: 442

Pacman lost database of installed packages. - Ignore this thread

Hi,

I noticed over the last few days (possibly longer) that a pacman -Suy did nothing.  Then I looked ay the main Arch web page and see that xorg-server has been updated and when I then did a pacman -Qi xorg-server, I get nothing.  I remember that pacman itself was upgraded rcently so I did a pacman -Qi pacman and again I get nothing.  So I did a pacman -S pacman which in turn needed glibc so I did that one first. Now when I do a pacman -Qe I get;

glibc 2.7-7
pacman 3.1.0-1


Here's my pacman.conf;

# See the pacman manpage for option directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#
#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

#[unstable]
# Add your preferred servers here, they will be used first
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs



Does anyone have any ideas what I can do to fix this??

Jim

Last edited by MillTek (2008-01-19 15:13:22)

Offline

#2 2008-01-19 01:41:23

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: Pacman lost database of installed packages. - Ignore this thread

Looks like your pacman local database might have disappeared somehow...

What does 'ls /var/lib/pacman/local' look like? If there are only the above two packages, you somehow managed to kill off the local DB which...is not good.

Offline

#3 2008-01-19 03:20:43

MillTek
Member
Registered: 2005-01-30
Posts: 442

Re: Pacman lost database of installed packages. - Ignore this thread

Damn toofishes.  All that's in it is the two packages and a few of their dependencies.  Is there a way to rebuild it??

Offline

#4 2008-01-19 05:30:10

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Pacman lost database of installed packages. - Ignore this thread

you could use the information in your pacman.log about your installed packages. Search the forums there are other similar threads and I think  someone even posted a script.

Offline

Board footer

Powered by FluxBB