How to force yum and rpm install only current archetecture match packages
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to force yum and rpm install only current archetecture match packages
Hello, I have 64 bit processor and 64 bit compatible CentOS 5.5 distribution, but some times when I run yum info, I get information about both 32 abd 64 bit installed packages:
For example when I reinstall selinux I see that previously I had both archetecture match packages version:
Reinstalling:
libselinux i386 1.33.4-5.5.el5 base
libselinux x86_64 1.33.4-5.5.el5 base
My question is: Is there some rpm or yum configurable option to strict installation to some archetecture, that, that when rpm/yum will try to install package for i386 when it prohibited I will get some error?
My question is: Is there some rpm or yum configurable option to strict installation to some archetecture, that, that when rpm/yum will try to install package for i386 when it prohibited I will get some error?
You can add the following line in the [main] section of /etc/yum.conf:
You can add the following line in the [main] section of /etc/yum.conf:
Code:
exclude="*.i386 *.i586 *.i686"
It works also for disable x86 updating?
I get this during updating:
Updating:
NetworkManager i386 1:0.7.0-10.el5_5.1 updates 1.0 M
NetworkManager x86_64 1:0.7.0-10.el5_5.1 updates 1.1 M
And I put exclude line here:
[main]
(some other configurations)
exclude="*.i386 *.i586 *.i686"
It works also for disable x86 updating?
I get this during updating:
Updating:
NetworkManager i386 1:0.7.0-10.el5_5.1 updates 1.0 M
NetworkManager x86_64 1:0.7.0-10.el5_5.1 updates 1.1 M
And I put exclude line here:
[main]
(some other configurations)
exclude="*.i386 *.i586 *.i686"
I haven't tested but try to remove the double quotes and do it again.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.