Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th April 2009, 11:31 PM
Maryyy's Avatar
Maryyy Offline
Registered User
 
Join Date: Dec 2008
Posts: 301
32 and 64 bit RPM contents

I installed 64bit Linux for the first time, so my question can be quite silly.
After some struggle with nvidia installer and 32bit apps, and 32bit apps in general I noticed one thing. Same packages, but for different arch can actually contain identical files in identical locations.

Small example:

Code:
rpm -qa SDL_net-devel
SDL_net-devel-1.2.7-4.fc9.i386
SDL_net-devel-1.2.7-4.fc9.x86_64


rpm -ql SDL_net-devel-1.2.7-4.fc9.x86_64
/usr/include/SDL
/usr/include/SDL/SDL_net.h
/usr/lib64/libSDL_net.so

rpm -ql SDL_net-devel-1.2.7-4.fc9.i386
/usr/include/SDL
/usr/include/SDL/SDL_net.h
/usr/lib/libSDL_net.so
In this case SDL_net.h is the same in both cases. But there are many other examples of this.
Also, I noticed, that if I e.g. uninstall x86_64 arch package and leave the i386 one and then do rpm -ql name.i386.rpm, it shows files which are not available on the system anymore, because they were removed with the x86_64 rpm.

It's likely normal behaviour and I'm probably overlooking something obvious, but it's bugging me.

Thx in advance for enlightening.
Reply With Quote
  #2  
Old 5th May 2009, 04:09 AM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
The .h files are header includes, so unlike binaries they don't vary from i386 to x86_64. So in this case, it's safe for both packages to own them.

Although I don't think that removing the x86_64 RPM should also remove the header files if the i386 version is still installed.
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #3  
Old 5th May 2009, 05:09 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
Ehhh not so fast. A *lot* of the standard /usr/include .h files vary between 32 & 64.
You just haven't looked if you think otherwise. Pull glibc-headers for the two and
compare for example.

If a package is truly arch independent it will carry a 'noarch' suffix.
*Some, even many if the includes are common, but quite a few differ.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #4  
Old 5th May 2009, 05:24 AM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
glibc is a core system package though, it's a bit different... On the application level, it's very common for two arches to share the same headers.
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
Reply

Tags
bit, contents, rpm

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which is the contents of '/old' directory? guarriman Using Fedora 0 14th August 2006 05:25 PM
Contents of bootdisc? bombitmd Using Fedora 4 6th August 2005 04:36 AM
Contents of usr/src automan Using Fedora 5 8th July 2004 12:30 PM


Current GMT-time: 17:01 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat