Re: config file

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

 



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

On Mon, 4 Nov 2002 22:04:54 -0500, Michael Fratoni wrote:

> On Monday 04 November 2002 09:22 pm, David L. DeGeorge wrote:
> > How does one determine the config file in /usr/src/linux-2.4/configs
> > that corresponds to the running kernel?
> > David
> 
> There is a copy in /boot/config-${version} that should match.
> 
> I have two kernels installed:
> $ rpm -q kernel 
> kernel-2.4.18-14
> kernel-2.4.18-17.8.0
> 
> This should output the name of the config file you want:
> rpm -q kernel --qf "%{NAME}-%{VERSION}-%{ARCH}.config\n"
> 
> Here, I get:
> $ rpm -q kernel --qf "%{NAME}-%{VERSION}-%{ARCH}.config\n"
> kernel-2.4.18-athlon.config
> kernel-2.4.18-athlon.config

You might want to insert -%{release} to make sure the correct kernel
package version is included. 

The following would print the kernel config file name of the running
kernel:

  $ rpm -q kernel --qf "/boot/config-%{version}-%{release}\n"

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

iD8DBQE9x5M30iMVcrivHFQRApnvAJ9k8yqW+RLqYjh8kY7xujwUoKrwgwCfdbpP
Q+EoR4DkOmCMbgQBxFIic4E=
=4/CU
-----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