Skinnying up a fat install
Ben Steeves
ben.steeves at gmail.com
Sun Jul 3 20:35:09 UTC 2005
On 7/3/05, Philip A. Prindeville <philipp at enteka.com> wrote:
> Is there an easy way to figure out (even if it's non-deterministically or
> misses some corner cases) what .i386 packages can be dropped from a
> fat .x86_64 install?
This is very quick and dirty and probably wrong (since I don't have an
x86-64 system to test it on), but try:
$ yum list installed | perl -e 'while (<>) { ($name,$ver,$junk) =
split /\s+/,$_,3; if ($name =~ /(.*)\.(.*)$/) {
$hash{$2}{"$1-$ver"}=1; } } foreach (keys %{$hash{x86_64}}) { if
(exists $hash{i386}{$_}) { print "$_\n"; } } '
... it should print out a list of all the packages that conflict (as
long as the version numbers are the same -- if they're not, you can
remove the "-$ver" part from the hash assignment.
That should point you in the right direction at least.
--
Ben Steeves _ bcs at metacon.ca
The ASCII ribbon campaign ( ) ben.steeves at gmail.com
against HTML e-mail X GPG ID: 0xB3EBF1D9
http://www.metacon.ca/bcs / \ Yahoo Messenger: ben_steeves
More information about the fedora-list
mailing list