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

On Sunday 30 June 2002 11:47 am, Ben Logan wrote:

> > > rpm -q --queryformat '%{NAME} %{VERSION} %{RELEASE} %{ARCH}\n'
> > > kernel
> > >
> > > will show you all kernel RPMS you have installed.  On one random
> > > machine, this tells me:
>
> Just be careful if you ever compile your own kernel without building
> an RPM.  You can even get messed up if you only install via RPM
> because it is possible to have more than one set of kernel RPMs
> installed at a time.  For that reason, I think it is safest to use
> 'uname' for determining which kernel you are actually *running*.
>
> Here's what I get on my machine:
>
> $ rpm -q kernel
> kernel-2.4.2-2
>
> $ uname -a
> Linux mach1 2.4.13-ac8 #1 Sat Dec 8 06:25:18 EST 2001 i586 unknown

But the above tells you nothing about what architecture the kernel was 
optimized for. The "i586" above refers to the machine's processor, and 
has nothing to do with the kernel arch.

The rpm command above will tell you what arch the kernel was built for, 
but as Ben pointed out, only if the kernel was installed via rpm.

- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.2 in 8M of RAM: http://www.rule-project.org/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAj0fqJwACgkQn/07WoAb/SthqACeNcvvVRsnGDgNaNzQwHOy+l/B
MtMAoJJQXGoNbWUqd/8iSflEnccWqQ6a
=EZ86
-----END PGP SIGNATURE-----



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to