[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vermasseltes chown wieder rückgängig machen



On Day 46 of The Aftermath 3170, Andreas Pakulat wrote:

> apt-get install --reinstall $(dpkg --get-selections |grep 'install$' | awk '{print $1}')
>
> Damit werden alle Pakete die installiert sind erneut installiert.

Das ist nicht ganz unproblematisch, da 'install$' ebenfalls auf
"deinstall" matcht, so daß er dann unter umständen auch Pakete wieder
installiert hat, die er gar nicht mehr haben wollte.
Mir fällt jetzt aber auf die schnelle auh nichts eleganteres ein als da
zusätzlich noch ein "grep -v '$deinstall'" einzubauen.

ttyl8er, t.k.

-- 
I'm perfectly willing to admit that Unix not only lets you shoot yourself
in the foot, it gives you an assortment of guns already loaded and pointed
in the proper direction.
     -- Michael Wojcik <michael.wojcik@merant.com> in alt.folklore.computer



Reply to: