Find out a package which a file belongs to
If some files are deleted or corrupted from Linux system, such as /bin/bash, /bin/mount then how can I find these file belongs to what RPM?
Just use the command "rpm -qf /bin/bash" , this will report the name of the package (bash-3.2-9.fc7 in my system) which contaions the file.
Friday, June 27, 2008
Find out a package which a file belongs to
Monday, June 23, 2008
USB device identification using Linux/Fedora
USB device identification using Linux/Fedora.
A device has a Vendor ID (VID) & a Product ID (PID).
To check,
use the command "tail -f /var/log/messages"
This will show the last 10 lines of this file.
Now plug the USB device to any usb port.
Wait & see the changes on the conmmand screen.
Now press Ctrl+C
Then,use the command "lsusb" to get the BUS ID & Device ID (VID & PID)
.
My Pen Drive has the following info,
# lsusb
Bus 005 Device 008: ID 0457:0151 Silicon Integrated Systems Corp. Super Flash 1GB Flash Drive
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Which tells VID =0457 & PID = 0151
Visit http://www.linux-usb.org/usb.ids to get updated list of supported USB devices with IDs.