You are not logged in.

#1 2016-12-23 15:31:41

sinholueiro
Member
Registered: 2015-08-01
Posts: 9

Recognize the installed package after disaster

Hi,

I deleted /var by accident, but it could be worse. The main problem that I have is that pacman doesn't know what packages I have installed. Is there a way that I can list all my installed packages and let know pacman of those?

Thanks!

Offline

#2 2016-12-23 15:42:27

jaergenoth
Member
Registered: 2015-01-16
Posts: 85

Re: Recognize the installed package after disaster

Both the local package installation database and the downloaded packages cache are by default stored in /var (/var/lib/pacman/local and /var/cache/pacman/pkg).
Unless you have saved a list of installed packages somewhere, I'm afraid the best solution propably is to reinstall.

Offline

#3 2016-12-23 15:46:22

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,544

Re: Recognize the installed package after disaster

You can use pkgfile to find out what packages each file belongs to and rebuild your database from that.

Offline

Board footer

Powered by FluxBB