Recover/offline download pkg after update losing pkg ?

Hello !
I've been upgrading installed pkg as usual with pkg update and pkg upgrade, but I don't know why, it screwed half of my system, removed several XFCE packages and updating a NVIDIA driver keeping the old one.
I recovered the NVIDIA part with no problem because X was causing a kernel panic, I recovered parts of removed XFCE packages, but some are now inexistent online (ie xfce meta port). They do exist on my other setup, but I need to reinstall thunar, which I can't because I can't find the package. I tried to build from source but it crashes at the end on a webkit2-gtk3 which I can't rely on because I also don't have it in pkg.

I recovered from my other setup cache thunar, thunar-tumbler but I do lack libgepub which I don't have in the cache.
Now, I try to desesperately reinstall thunar and recover a working pkg update list...

How can I download xfce and its dependencies from my other computer ? Things I tried (pkg fetch for instance doesn't work).

Thank you !
 
The old versions should still be in /var/cache/pkg/.
Also /var/log/messages holds all the operations pkg did during the upgrade process in the form of "<pkgname> upgraded: <oldversion> -> <newversion>", so you should be able to generate a list of filenames (/var/cache/pkg/<pkgname>-<oldversion>.pkg) that can be fed into pkg install.
The downside of this procedure though, all those packages will be handled as "installed manually" instead of dependencies; so they won't be cleared in the future if they are no longer needed.

The better approach might be to rollback zroot/usr/local to a snapshot before the pkg upgrade.
 
Thanks for replying !
Well no, the old versions are not anymore in the cache, the removed one seem to be also removed from the cache - that's why I was trying to recover them from another computer, as the packages I'm looking for are not available anymore in pkg search/install (ie. thunar : No packages available to install matching 'thunar' have been found in the repositories). pkg update -f does not do anything.
Is there a way to download the pkg directly from the servers ? There is a link to build (I don't remember, something like xx.freebsd.org/14.0:i386/All/Latest/package-version.something) but it didn't work.
 
Yiah ! Faulty source found !
 
Back
Top