12.07.2015 Views

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

Red Hat Enterprise Linux 5 Administration Unleashed

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

196CHAPTER 864-Bit, Multi-Core, and Hyper-Threading Technology ProcessorsNOTEFor the complete FHS guidelines explanation of how 32-bit and 64-bit libraries coexist,refer to http://www.pathname.com/fhs/pub/fhs-2.3.html#LIB64.Some packages have been compiled for the 64-bit architecture but are available in a 32-bitversion as well. When using <strong>Red</strong> <strong>Hat</strong> Network to install a package on a 64-bit system withthe 64-bit version of the OS installed, the 64-bit version of the package is installed ifavailable. If the 32-bit version is the only one available, it is installed. If both versions areavailable, the architecture can be specified if installing from <strong>Red</strong> <strong>Hat</strong> Network:yum install .Replace with the 32-bit architecture compatible with your 64-bit processor such asi386 for Intel Itanium, AMD64, and EM64T systems. If you are selecting a package toinstall via the RHN website, the architecture is included in the package name such asglibc-2.3.4-2.i686 and glibc-2.3.4-2.ia64. If you are installing software directly fromthe RPM package file, remember that the filename includes the architecture such asglibc-2.3.4-2.i686.rpm. Table 8.1 shows the architecture abbreviations used in the RPMfilename and in the package name listed on the RHN website. It also shows the compatible32-bit architectures.TABLE 8.1 Compatible ArchitecturesProcessor RPM Architecture Compatible 32-Bit ArchitecturesIntel Itanium ia64 i386, i686AMD64, EM64T x86_64 i386, i686IBM POWER ppc64 ppcIBM zSeries s390x s390After installing both versions of a library, how can you verify they are both installed? Therpm -q command doesn’t display the architecture of the package bydefault. But, the command can be configured to show this information by using the--queryformat option:rpm -q --queryformat=’%{NAME}-%{VERSION}.%{ARCH}\n’This changes the format displayed to also include a period at the end of the packagename followed by the architecture such as the following for two different builds of glibc:glibc-2.3.4-2.19.i686glibc-2.3.4-2.19.x86_64This option is very useful, but it is not easy to remember. Luckily, this format can besaved as the default for each user. In your home directory, create a .rpmmacros file if youdon’t already have one. In this file, add the following line:%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!