Archive for the 'Ubuntu' Category

 

Searching for files in Debian distribution packages..

Jan 06, 2009 in Linux, Ubuntu

# apt-get install apt-file
# apt-file update
# apt-file search gtk+-2
libgtk-directfb-2.0-dev: /usr/lib/pkgconfig/libgtk-directfb-2.0-0/gtk+-2.0.pc
libgtk2.0-dev: /usr/lib/pkgconfig/gtk+-2.0.pc
lsb-build-desktop3: /usr/lib/lsb3/pkgconfig/gtk+-2.0.pc
valac: /usr/share/vala/vapi/gtk+-2.0.deps
valac: /usr/share/vala/vapi/gtk+-2.0.vapi

Linux usb tree view info..

Oct 02, 2008 in Linux, Ubuntu

To view a tree of USB devices in Linux, install ‘usbview’ (apt-get install usbview)
or get the ‘usbtree’ script from here:

http://www.linux-usb.org/usb2.html

Furthermore, if /dev/bus/usb/devices is not enabled, tweak
/etc/init.d/mountdevsubfs.sh to do so. See here for more info:

https://bugs.launchpad.net/debian/+source/usbview/+bug/156085

Ubuntu / Debian package management notes..

Jul 01, 2008 in Linux, Ubuntu

To manage packages in a shell, use these programs:

Set wide printing area:

export COLUMNS=128

dpkg, dpkg-query, dselect, apt-get

‘ dpkg -l ‘*’ ‘ (or dpkg –list ‘*’) is like ‘yum list’ on Fedora.

Check out


http://hawknotes.blogspot.com/2006_04_01_archive.html
for more details..

List installed packages: dpkg -l | rpm -qa

List all available packages: dpkg -l ‘*’ | yum list

List contents of package: dpkg -L package_name | rpm -ql package_name

Find the package that installed file: dpkg -S file | rpm -qf file

Install a package: apt-get install package_name | rpm -i package_name
(or yum install package_name)

Remove a package: dpkg –purge package_name | rpm -e package_name