A quickie dirty method of determining if a Linux box is 64-bit is to check for the existence of a /lib64 directory or see if the uname -p is "x86_64" or "i386". You won't find those on a 32-bit system unless someone manually created on. There are some flags you can pass to rpm to make it tell you if the 32 or 64 bit version of an rpm is present, but I don't remember what it is off-hand. I don't know if there is an analogous flag for dpkg on Debian/Ubuntu, but you can just look at the output of dpkg -l and see if they are i386 (32) or amd64 (64).
<br><br>I usually just re-install the OS when going from 32 to 64 bit. I am usually more conservative about these things. There may be a direct upgrade path, but I don't know how well it works off-hand.<br><br>Hope that helps!
<br><br>-MM<br><br><div><span class="gmail_quote">On 6/28/07, <b class="gmail_sendername">Scott Ehrlich</b> <<a href="mailto:scott@mit.edu">scott@mit.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there a way to check whether 32 or 64-bit RHEL5 was installed on a system?<br>For that matter, any way to check 32 or 64-bit versions of any RedHat or<br>Linux-based (including Debian/Ubuntu) system?<br><br>Next, if a user's system was installed with 32-bit RHEL5, is there a reasonable
<br>way to upgrade it to 64-bit? Can the 64-bit CDs be installed and let them<br>take over? Does a fresh install need to be done?<br><br>Would the same hold true for Fedora, CentOS, etc?<br><br>Please advise.<br><br>Thanks.
<br><br>Scott<br><br>_______________________________________________<br>bblisa mailing list<br><a href="mailto:bblisa@bblisa.org">bblisa@bblisa.org</a><br><a href="http://www.bblisa.org/mailman/listinfo/bblisa">http://www.bblisa.org/mailman/listinfo/bblisa
</a><br></blockquote></div><br>