Re: Skinnying up a fat install

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

 



On 7/3/05, Philip A. Prindeville <philipp@xxxxxxxxxx> 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@xxxxxxxxxx
 The ASCII ribbon campaign     ( )            ben.steeves@xxxxxxxxx
   against HTML e-mail          X                GPG ID: 0xB3EBF1D9
http://www.metacon.ca/bcs      / \     Yahoo Messenger: ben_steeves


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux