Upgrade guidance
Bill McGonigle
bill at bfccomputing.com
Tue Oct 21 12:05:08 EDT 2008
On Oct 21, 2008, at 08:25, Ben Scott wrote:
> "close"? :) The man page seems to indicate that's exactly what
> it will do.
nice. I had as much luck Googling as you did. I think we need
keywords/tags for 'man -k' to use. The correct keyword was 'common',
but I was trying 'sets, intersections, etc.'.
> comm -12 <( package-cleanup --orphans | sort ) <( package-cleanup
> --leaves --all | sort )
To get something xargs would take you need to filter out the yum
message too:
#!/bin/bash
comm -12 <( package-cleanup --orphans | sort | grep -v 'Setting up
yum' ) \
<( package-cleanup --leaves --all | sort | grep -v 'Setting up yum' )
But then, yes, identical.
Efficiency is surprisingly worse with bash/comm, I don't get why:
bash/comm:
real 4m36.673s
user 1m32.313s
sys 3m36.114s
perl:
real 2m48.350s
user 0m46.550s
sys 1m49.258s
I ran it several times and got very similar results on each one.
Almost all the work should be in the package-cleanup calls, not the
set work. Unless comm is O(n^2), but I didn't look at the source.
Anybody else want to add datapoints?
> The above makes use of a shell trick I learned about not long ago,
useful++ Note, only valid in bash, not sh.
-Bill
-----
Bill McGonigle, Owner Work: 603.448.4440
BFC Computing, LLC Home: 603.448.1668
bill at bfccomputing.com Cell: 603.252.2606
http://www.bfccomputing.com/ Page: 603.442.1833
Blog: http://blog.bfccomputing.com/
VCard: http://bfccomputing.com/vcard/bill.vcf
More information about the gnhlug-discuss
mailing list