Weird situation where pacman thinks I have no packages installed

It looks as if your /var/lib/pacman/local has been deleted or corrupted somehow.

Signs that pacman needs a local database restoration:

  • pacman -Q gives absolutely no output, and pacman -Syu erroneously reports that the system is up to date.
  • When trying to install a package using pacman -S package, and it outputs a list of already satisfied dependencies.

:eye: https://wiki.archlinux.org/title/Pacman/Restore_local_database

1 Like