How to Restore AUR Packages to Pamac⚓
Summary⚓
I ran into an issue where the Pamac GUI wasn't displaying all packages from the AUR. I tried the following, but it didn't resolve the issue:
- Rebooting the computer
- Refreshing the Pamac database
The following is a guide for how to resolve this issue.
Steps to Resolve⚓
Clean the package cache using Paccache⚓
To clean all packages, except the 3 most recent versions, run the following command:
Check again how many packages are left in the cache folder.
Now, check the total disk space used by the cache folder.
Use the following pacman command to remove all uninstalled packages:
Next Steps⚓
At this point, the missing packages were still not appearing in the Pamac GUI. The closest I can get to an understanding is that I had outdated mirrors that were being used and were not providing the proper packages. This required the following manual intervention...
Manual Intervention⚓
Check the output of the following command:
The output should look like the following:
-rw-r--r-- 1 root root 860 Mar 28 14:10 /etc/pacman-mirrors.conf
Once this is confirmed, run the following:
This should refresh all the mirrors and perform a complete update and database sync. Once completed, restart Pamac.