Prev | Current Page 651 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"


/usr
/usr/sbin
/usr/bin
/usr/bin/lsof
...
Examining a Package File
Package files can be examined before installing them using either the --info (-I) or the
--contents (-c) command. These options can be used on packages in a local directory, as
opposed to using them to examine packages on a remote server.
The following --info option shows the lsof package name, version information, and sizes of different
parts of the package. Beyond that (although shortened here for space considerations) you
would be able to see a list of packages lsof depends on and descriptive information about the
package.
$ dpkg --info lsof_4.71-1_i386.deb
new debian package, version 2.0.
size 319058 bytes: control archive= 1534 bytes.
557 bytes, 16 lines control
2246 bytes, 32 lines md5sums
Package: lsof
Version: 4.71-1
...
The following --contents option lets you see the full contents of the package you choose as if
you were listing the contents with an ls -l command. You can see the name and path to each
file, its permission settings, and file/group ownership:
322
Choosing and Installing a Linux Distribution Part III
$ dpkg --contents lsof_4.71-1_i386.deb
drwxr-xr-x root/root 0 2004-04-03 07:34:41 ./
drwxr-xr-x root/root 0 2004-04-03 07:34:36 ./usr/
drwxr-xr-x root/root 0 2004-04-03 07:34:39 .


Pages:
639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663