Re: Processor type a kernel was compiled for

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 24 Feb 2003 15:58:20 -0600, Thomas Dodd wrote:

> >>is there an easy way to figure out for which processor a kernel was
> >>compiled?  I.e., on my laptop (Pentium MMX), I have
> >>kernel-2.4.18-24.8.0.i386 and kernel-2.4.18-18.8.0.i586 .
> >>    
> >>
> >
> >rpm -q --qf '%{arch} \n' kernel
> >  
> >
> 
> That only gives the arch of the latest installed kernel.
> 
> That may be what Michael wanted, but is there a way to find out what 
> arch the currently running kernel was built for?

$ rpm -q --qf "%{arch}\n" kernel-$(uname -r)

> What about an arbitrary kernel in /boot, can you determine what arch 
> it's for?

$ rpm -qf --qf "%{arch}\n" /boot/vmlinuz-*

> I could have a custom kernel in /boot, but not remember if it was i386, 
> i686, or athlon.
> How can I tell?

You can't, because "uname -r" does not show the difference between
i686 and athlon. Keep your kernel config.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+WzuS0iMVcrivHFQRAh2qAJ9WZvAYfzT+6Y6R0lXHM3Aw4VAz+gCffAXc
z4TfB0OqVR3M2I1M2Q+jQaM=
=+vXe
-----END PGP SIGNATURE-----



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux