Re: lsmod/insmod commands are not working

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

 



Somebody in the thread at some point said:
> MAHESH wrote:
>> i am using fedora 7 in my system its kernel version is 2.6 while
>> programming it is not executing the commands insmod & lsmod and when

> You probably want to install -devel {for compiling kernel module
> interfaces} or -headers {all}
> yum install kernel-devel or yum install kernel-headers

kernel-headers contains mutant kernel includes that have been "sanatized
for userspace", if he's trying to do "kernel level programming" then he
wants specifically the kernel-devel stuff.

But I think maybe he is telling us about a second problem.... insmod and
lsmod and so on live down /sbin, and only root has /sbin in its PATH by
default.  You can still run lsmod anyway as a normal user, but you will
have to run it as

/sbin/lsmod

or add /sbin to your PATH.  But really to do anything useful you will
want to run them as root, where you will also be able to run them
without giving the /sbin/ in front.

-Andy

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux