[arch-general] /var lost, how "reinstal" Archlinux?

Simon Brand simon.brand at postadigitale.de
Fri Apr 4 17:37:41 EDT 2014


Am 04.04.2014 23:24, schrieb Rodrigo Rivas:
> 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
> 

or use only "| sort -u" instead



More information about the arch-general mailing list