[arch-general] /var lost, how "reinstal" Archlinux?
Rodrigo Rivas
rodrigorivascosta at gmail.com
Fri Apr 4 17:24:45 EDT 2014
On Thu, Apr 3, 2014 at 9:12 PM, Lukas Jirkovsky <l.jirkovsky at gmail.com> wrote:
> If you have enough time, I would try using pkgfile to recover the
> installed packages. I thing something like this should suffice:
> # update the pkgfile database
> pkgfile -u
> # find the package names for all binaries
> find /usr/bin -type f -exec pkgfile '{}' ';' | uniq
Good idea. But just a little correction, use `sort` or else `uniq`
will not work properly:
find /usr/bin -type f -exec pkgfile '{}' ';' | sort | uniq
--
Rodrigo
More information about the arch-general
mailing list