LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 08-13-2010, 07:53 AM   #1
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Rep: Reputation: 15
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?

Thank you for ahead.
 
Old 08-13-2010, 08:41 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
This has always been a 64-bit install, right?

If it's installing 32-bit packages, it's doing so for a reason. I would not try to stop it.
 
Old 08-13-2010, 09:18 AM   #3
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by Rodnower View Post
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:
Code:
exclude="*.i386 *.i586 *.i686"
 
1 members found this post helpful.
Old 08-14-2010, 07:14 AM   #4
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
This has always been a 64-bit install, right?

If it's installing 32-bit packages, it's doing so for a reason. I would not try to stop it.
May be it do it for reason, I don't know, but I think that it may cause some problems when your system has packages of another architecture.
 
Old 08-14-2010, 07:14 AM   #5
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by quanta View Post
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"

Last edited by Rodnower; 08-14-2010 at 07:21 AM.
 
Old 08-14-2010, 08:37 AM   #6
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Quote:
Originally Posted by Rodnower View Post
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.
 
Old 08-14-2010, 09:48 AM   #7
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
There's no problem; x86_64 processors can run i386 programs and they can coexist on your machine.
http://www.redhat.com/magazine/009ju...ures/multilib/
 
1 members found this post helpful.
Old 08-14-2010, 12:28 PM   #8
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Original Poster
Rep: Reputation: 15
Yes, I know that both of them may coexist.
And there is no need for "" in this line. Without quotes yum realy filters the packages.
 
Old 08-14-2010, 12:29 PM   #9
Rodnower
Member
 
Registered: Mar 2010
Posts: 54

Original Poster
Rep: Reputation: 15
Yes, I know that both of them may coexist.
And there is no need for "" in this line. Without quotes yum realy filters the packages.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference of using RPM and YUM in updating packages dwong05 Linux - Newbie 4 04-12-2009 08:19 PM
How current are rpm and yum repositories LaoTzu Linux - Software 4 11-19-2008 08:49 PM
How does yum (or rpm or other pm) update/upgrade in use packages engineman Linux - Software 2 09-26-2007 12:06 PM
How do I force an older rpm to install over a newer rpm of wine onyx Linux - Software 4 02-20-2004 12:44 AM
How do I get a current list of RPM packages installed on my system? needamiracle Linux - General 1 12-06-2002 05:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration