I have a couple 64-bit CentOS 5 installations here and was wondering if there was a yum option to have it install only x86_64 arch by default if no arch is specified.
I tired of having to append .x86_64 on all package names I only want the x86_64 versions of, if I want the i386 versions too I would add the .i386 package to the list...
Thanks All,
Ross S. W. Walker Information Systems Manager Medallion Financial, Corp. 437 Madison Avenue 38th Floor New York, NY 10022 Tel: (212) 328-2165 Fax: (212) 328-2125 WWW: http://www.medallion.com http://www.medallion.com/
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
On 8/7/07, Ross S. W. Walker rwalker@medallion.com wrote:
I have a couple 64-bit CentOS 5 installations here and was wondering if there was a yum option to have it install only x86_64 arch by default if no arch is specified.
I tired of having to append .x86_64 on all package names I only want the x86_64 versions of, if I want the i386 versions too I would add the .i386 package to the list...
Unless you are planning to run only stripped-down systems, that can cause trouble. A lot of packages do not have 64-bit versions and need (lots of) 32-bit support packages and libraries to run. E.g., web browsers (whose 64-bit versions run just fine until you need a plug-in that's only available in 32-bit versions).
Just a comment - I don't have a specific solution (yet).
mhr
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Mark Hull-Richter Sent: Tuesday, August 07, 2007 2:01 PM To: CentOS mailing list Subject: Re: [CentOS] Yum install preferred arch only
On 8/7/07, Ross S. W. Walker rwalker@medallion.com wrote:
I have a couple 64-bit CentOS 5 installations here and was
wondering if
there was a yum option to have it install only x86_64 arch
by default
if no arch is specified.
I tired of having to append .x86_64 on all package names I
only want
the x86_64 versions of, if I want the i386 versions too I would add the .i386 package to the list...
Unless you are planning to run only stripped-down systems, that can cause trouble. A lot of packages do not have 64-bit versions and need (lots of) 32-bit support packages and libraries to run. E.g., web browsers (whose 64-bit versions run just fine until you need a plug-in that's only available in 32-bit versions).
Just a comment - I don't have a specific solution (yet).
Yeah, it's stripped down, server installs, I do have glibc.i686 and a couple other libs for CLI i386 only apps, but I'm tired of yum installing executable packages and having their i386 counter parts thrown in, take subversion for example and the ton of i386 dependencies it brings with it.
exclude=*.i386 is a so-so solution, but I cannot override it for explicit installs of i386 packages without commenting it out first.
-Ross
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
On Tuesday 07 August 2007, Mark Hull-Richter wrote: ...
Unless you are planning to run only stripped-down systems, that can cause trouble. A lot of packages do not have 64-bit versions
Quite a big leap from this (lots of packages, cause trouble, ..)
and need (lots of) 32-bit support packages and libraries to run. E.g., web browsers (whose 64-bit versions run just fine until you need a plug-in that's only available in 32-bit versions).
...to this (problem when you need a 3rd party browser plugin that's not available in 64-bit).
I run many machines just fine with very few ix86 packages (glibc as the op also mentioned can be nice to have around..). IMHO having lots of 32-bit packages causes more problems than it's worth (as a default).
/Peter
Just a comment - I don't have a specific solution (yet).
mhr
On 8/7/07, Ross S. W. Walker rwalker@medallion.com wrote:
I have a couple 64-bit CentOS 5 installations here and was wondering if there was a yum option to have it install only x86_64 arch by default if no arch is specified.
I tired of having to append .x86_64 on all package names I only want the x86_64 versions of, if I want the i386 versions too I would add the .i386 package to the list...
The exclude= line in this post -> http://lists.centos.org/pipermail/centos-devel/2007-August/003751.html should help you out.
Drop that in the individual repo files, or globally in your yum.conf Should work for you.
On 8/7/07, Ross S. W. Walker rwalker@medallion.com wrote:
I have a couple 64-bit CentOS 5 installations here and was wondering if there was a yum option to have it install only x86_64 arch by default if no arch is specified.
I tired of having to append .x86_64 on all package names I only want the x86_64 versions of, if I want the i386 versions too I would add the .i386 package to the list...
You can exclude=*.i386 in the repo file.
Akemi
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Akemi Yagi Sent: Tuesday, August 07, 2007 2:08 PM To: CentOS mailing list Subject: Re: [CentOS] Yum install preferred arch only
On 8/7/07, Ross S. W. Walker rwalker@medallion.com wrote:
I have a couple 64-bit CentOS 5 installations here and was
wondering if
there was a yum option to have it install only x86_64 arch
by default
if no arch is specified.
I tired of having to append .x86_64 on all package names I only want the x86_64 versions of, if I want the i386 versions too I would add the .i386 package to the list...
You can exclude=*.i386 in the repo file.
Yeah, I am doing that now and while it is ok I was wondering if there was a way to set an "affinity" to the target architecture so one can still explicitly install the .i386 version by explicitly specifying it on the install, and if there were any dependencies to i386 versions they would be resolved.
Maybe it's time for Yet-Another-Yum-Plugin YAYP, I will call it yum-arch-affinity and will only select the target arch of a package if multiple versions resolve, and if only 1 resolves to allow that to go through, this should allow packages that have explicit archs to resolve through.
-Ross
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.
On Tuesday 07 August 2007, Ross S. W. Walker wrote: ...
Maybe it's time for Yet-Another-Yum-Plugin YAYP, I will call it yum-arch-affinity and will only select the target arch of a package if multiple versions resolve, and if only 1 resolves to allow that to go through, this should allow packages that have explicit archs to resolve through.
Sounds like a nice plugin, when do you expect to have it ready? ;-)
/Peter
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Peter Kjellstrom Sent: Tuesday, August 07, 2007 2:34 PM To: centos@centos.org Subject: Re: [CentOS] Yum install preferred arch only
On Tuesday 07 August 2007, Ross S. W. Walker wrote: ...
Maybe it's time for Yet-Another-Yum-Plugin YAYP, I will call it yum-arch-affinity and will only select the target arch of a package if multiple versions resolve, and if only 1 resolves to allow that to go through, this should allow packages that have explicit archs to resolve through.
Sounds like a nice plugin, when do you expect to have it ready? ;-)
Would you like a copy when I get it done?
I'll post it to devel and maybe it can get included in extras or plus...
Let me get a SRPM of a similar plugin, maybe installonlyn and see if I can get it working.
-Ross
______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof.