[CentOS] conflict error installing ghostscript

Sun Jul 16 16:24:36 UTC 2006
Johnny Hughes <mailing-lists at hughesjr.com>

On Sun, 2006-07-09 at 10:36 -0500, Erick Perez wrote:
> How can I make sure my x86_64 system does not download i686 or i386
> stuff? Does it need to?

Maybe ... :)

Not everything that can install from the x86_64 tree is x86_64.
OpenOffice.org is one package, there are others, that are i386 only.  If
you don't need any of the i386/i586/i686 packages you can remove them
and prevent them form trying to be installed.

The first thing you need to do is add this to a file called .rpmmacros
in your user's home directory:

%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

Then when you do "rpm -q" items, it will also show you the arch.

Then you can do:

rpm -qa | grep i[3,4,5,6]86 | sort

to see what x86 packages are installed on your machine.

Then you can see if you have to have them, or can remove them.

THIS IS CRITICAL :) ... If you remove x86 type packages where both x86
and x86_64 packages are installed, reinstall the x86_64 packages after
you are done ... this is because a file can only belong to 1 package, so
some files you need may have belonged to the package you removed, and
will be reinstalled when you reinstall the x86_64 packages.

If you can get rid of all the x86 packages, you can then add this
to /etc/yum.conf

exclude=*.i386 *.i586 *.i686

You will then not add anything except x86_64 packages with yum.

Thanks,
Johnny Hughes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060716/ccf99d34/attachment-0005.sig>