-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bob wrote:
> Hi,
> How can I do this, the way I'd like it to work is
> cat /var/log/dpkg.log > ./list
> but filtering by date so it only includes packages installed after a
> certain time (grep sed?)
> 
> vi ./list
> to delete lines for packages you want to keep (running kernel, less,
> hddtemp, whatever...)
> 
> pass the ./list file to a command that will beautify it and output
> another list of just package names that you can pass to
> apt-get --purge remove
> 
> Shouldn't be too hard but my bash is rusty, so I thought I'd ask if
> anyone had done this already before I crack my knuckles and get all man
> bash sed grep on it?
> 
> Thanks.
> 
> 
Perhaps something list this:  (adapt it for your needs)

#!/bin/bash
dpkg -l | grep beryl | gawk -F" " '{ print $2 }' > beryl.list
apt-get remove --purge $(cat beryl.list)
rm beryl.list
#end

Joe
- --
Registerd Linux user #443289 at http://counter.li.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF/QWuiXBCVWpc5J4RAtrFAKCiT8tNnaARTd5FbeYmU6l8Yw3Y+gCglOuR
ZRylLzaVusn5tjnLRITef8w=
=7rIp
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to