NetAdminTools.com
 
SignalQ Sites:
NetAdminTools - Coprolite - NoNIC - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - MCJ - FixRambler
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


How to Tell Which Glibc You Are Using Before Updating
Topic: GNU/Linux   Posted:2003-12-29
Printer Friendly: Print

spacerspacer
One problem that can get really nasty is if you update an RPM system with the wrong version of glibc. First, we need to find out what glibc RPMs are installed, and then we can determine the architecture:

[root@srv-3 root]# rpm -qa | grep glibc
glibc-devel-2.3.2-101
glibc-common-2.3.2-101
glibc-kernheaders-2.4-8.36
glibc-2.3.2-101
glibc-headers-2.3.2-101
[root@srv-3 root]# rpm -q --qf '%{arch}\n' glibc-common
i386
[root@srv-3 root]# rpm -q --qf '%{arch}\n' glibc-devel
i386
[root@srv-3 root]# rpm -q --qf '%{arch}\n' glibc-kernheaders
i386
[root@srv-3 root]# rpm -q --qf '%{arch}\n' glibc-headers
i386
[root@srv-3 root]# rpm -q --qf '%{arch}\n' glibc
i686
[root@srv-3 root]#

Of course, you can use this to determine the architecture of other RPMs as well. The {} will reveal other fields. For instance:

[root@srv-3 root]# rpm -q --qf '%{distribution}\n' glibc
Red Hat Linux
[root@srv-3 root]#

See the RPM Manpage for more info.




Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com

Created by:
MCJ
MCJ CMS