You are not logged in.
My SSD partially died on me, I got some of it recovered to lost+found. A lot of things stayed intact, but it doesn't look like all of it survived, for example my home directory is untouched, ~~but I don't see the contents of /bin anywhere~~. I reinstalled the system to a different SSD, and now I want to reinstall all of my previous packages, does pacman store the active package list or .tar.xzs somewhere that I can use to recover them?
Edit: I think I found the /bin directory, is there a way to download all the packages and the proper setup for them through pacman with this information as a baseline?
Last edited by candy_pebbles (2022-02-27 18:55:37)
Offline
If pacman's database is intact see Tips_and_tricks#Reinstalling_all_packages. If it is not see the section after it entitled "Restore pacman's local database".
Offline
Or if /var/cache/pacman/pkg still exists then that should contain all of your previousley installed packages unless you configured it otherwise.
Offline
Fortunatelly I had both the log file and the cached pkgs. I recovered it by doing this:
sudo pacman -S pacutils
LOGFILE=/mnt/disk/backup/lost+found/#8719572/log/pacman.log
paclog --pkglist --logfile=$LOGFILE | awk -F " " '{print $1}' > /tmp/old.list
pacman -Q | awk -F " " '{print $1}' > /tmp/curr.list
cd /tmp
cat old.list curr.list > uniq.list
sort uniq.list | uniq -u > install.list
paru -S $(cat /tmp/install.list)Last edited by candy_pebbles (2022-02-27 18:57:08)
Offline