KDE4 64-bit & 32-bit programs & KDE3.5 programs

Jonas Norlander jonorland at gmail.com
Wed Feb 11 09:14:05 GMT 2009


2009/2/11 Wulfy <wulfmann at tiscali.co.uk>:
> I was wondering if anyone could tell me a simple way to determine which
> programs I have installed that are 32-bit and those that are compiled
> against KDE 3.5.  I have a /lib32 and I know that at least Kaffeine is
> compiled against KDE3.5.  Would this have an effect on CPU/memory load
> and the stability of KDE4?
>
> I run KDE 4.2 64-bit Intrepid Ibex
>
You can use the file command to see if a file is 32 or 64 bit. I
tested a quick and dirty hack and it worked and it should be easy to
put it in a script and expand it to work with apt-file to see what
package the file belongs to. I don't have an answer for finding KDE
3.5 files, perhaps if you know what libraries it uses you could grep
the output from the ldd command. Putting together a script  that can
do  this would come in handy perhaps some with more experience in
shell programming can think of something.

The one-line command to find 32-bit programs in your path:
for DIR in $(echo "$PATH" | sed -e "s/:/ /g") ; do find "$DIR" -type f
-exec file '{}' \; | grep -i 32-bit | sed "s/:.*$//" ; done

/ Jonas



More information about the kubuntu-devel mailing list