Imported Debian version 0.53
Javier Fernandez-Sanguino
12 years ago
144 | 144 | diverted = m.group(3) |
145 | 145 | continue |
146 | 146 | if not diverted: |
147 | raise 'Weird error while handling diversion' | |
147 | raise Exception('Weird error while handling diversion') | |
148 | 148 | packagename, program = m.group(1), diverted |
149 | 149 | else: |
150 | 150 | packagename, program = line[:-1].split(': ') |
392 | 392 | try: |
393 | 393 | self.program = os.readlink('/proc/%d/exe' % self.pid) |
394 | 394 | except OSError, e: |
395 | if e.errno != 2: | |
395 | if e.errno != errno.ENOENT: | |
396 | 396 | raise |
397 | 397 | self.program = self.cleanFile(self.program) |
398 | 398 |
73 | 73 | (or older) versions. |
74 | 74 | |
75 | 75 | .P |
76 | A rewrite to make it less dependant on \fIlsof\fP could improve this, however. | |
76 | A rewrite to make it less dependent on \fIlsof\fP could improve this, however. | |
77 | 77 | |
78 | 78 | .SH SEE ALSO |
79 | 79 | .B lsof(8) |
66 | 66 | version=`echo $version | sed -ne '$s/^.*: \(.*\).*$/\1/p'` |
67 | 67 | echo "($pkgspec -> $version)" |
68 | 68 | done |
69 | aptdata=$(apt-get -q2 --print-uris --reinstall install "$pkgspec" 2>/dev/null | head -1) | |
69 | aptdata=$(apt-get -q2 --print-uris --reinstall install "$pkgspec" 2>/dev/null | grep -F "/${pkgspec}_") | |
70 | 70 | if [ -z "$aptdata" ] ; then |
71 | 71 | echo "ERROR: No APT data returned for '$pkgspec'. Sorry." |
72 | 72 | echo "This is probably because the package is in the local apt cache" |
0 | .\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.07) | |
1 | .\" | |
2 | .\" Standard preamble: | |
3 | .\" ======================================================================== | |
4 | .de Sp \" Vertical space (when we can't use .PP) | |
5 | .if t .sp .5v | |
6 | .if n .sp | |
7 | .. | |
8 | .de Vb \" Begin verbatim text | |
9 | .ft CW | |
10 | .nf | |
11 | .ne \\$1 | |
12 | .. | |
13 | .de Ve \" End verbatim text | |
14 | .ft R | |
15 | .fi | |
16 | .. | |
17 | .\" Set up some character translations and predefined strings. \*(-- will | |
18 | .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left | |
19 | .\" double quote, and \*(R" will give a right double quote. \*(C+ will | |
20 | .\" give a nicer C++. Capital omega is used to do unbreakable dashes and | |
21 | .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, | |
22 | .\" nothing in troff, for use with C<>. | |
23 | .tr \(*W- | |
24 | .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' | |
25 | .ie n \{\ | |
26 | . ds -- \(*W- | |
27 | . ds PI pi | |
28 | . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch | |
29 | . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch | |
30 | . ds L" "" | |
31 | . ds R" "" | |
32 | . ds C` "" | |
33 | . ds C' "" | |
34 | 'br\} | |
35 | .el\{\ | |
36 | . ds -- \|\(em\| | |
37 | . ds PI \(*p | |
38 | . ds L" `` | |
39 | . ds R" '' | |
40 | 'br\} | |
41 | .\" | |
42 | .\" Escape single quotes in literal strings from groff's Unicode transform. | |
43 | .ie \n(.g .ds Aq \(aq | |
44 | .el .ds Aq ' | |
45 | .\" | |
46 | .\" If the F register is turned on, we'll generate index entries on stderr for | |
47 | .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index | |
48 | .\" entries marked with X<> in POD. Of course, you'll have to process the | |
49 | .\" output yourself in some meaningful fashion. | |
50 | .ie \nF \{\ | |
51 | . de IX | |
52 | . tm Index:\\$1\t\\n%\t"\\$2" | |
53 | .. | |
54 | . nr % 0 | |
55 | . rr F | |
56 | .\} | |
57 | .el \{\ | |
58 | . de IX | |
59 | .. | |
60 | .\} | |
61 | .\" | |
62 | .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). | |
63 | .\" Fear. Run. Save yourself. No user-serviceable parts. | |
64 | . \" fudge factors for nroff and troff | |
65 | .if n \{\ | |
66 | . ds #H 0 | |
67 | . ds #V .8m | |
68 | . ds #F .3m | |
69 | . ds #[ \f1 | |
70 | . ds #] \fP | |
71 | .\} | |
72 | .if t \{\ | |
73 | . ds #H ((1u-(\\\\n(.fu%2u))*.13m) | |
74 | . ds #V .6m | |
75 | . ds #F 0 | |
76 | . ds #[ \& | |
77 | . ds #] \& | |
78 | .\} | |
79 | . \" simple accents for nroff and troff | |
80 | .if n \{\ | |
81 | . ds ' \& | |
82 | . ds ` \& | |
83 | . ds ^ \& | |
84 | . ds , \& | |
85 | . ds ~ ~ | |
86 | . ds / | |
87 | .\} | |
88 | .if t \{\ | |
89 | . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" | |
90 | . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' | |
91 | . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' | |
92 | . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' | |
93 | . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' | |
94 | . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' | |
95 | .\} | |
96 | . \" troff and (daisy-wheel) nroff accents | |
97 | .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' | |
98 | .ds 8 \h'\*(#H'\(*b\h'-\*(#H' | |
99 | .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] | |
100 | .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' | |
101 | .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' | |
102 | .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] | |
103 | .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] | |
104 | .ds ae a\h'-(\w'a'u*4/10)'e | |
105 | .ds Ae A\h'-(\w'A'u*4/10)'E | |
106 | . \" corrections for vroff | |
107 | .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' | |
108 | .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' | |
109 | . \" for low resolution devices (crt and lpr) | |
110 | .if \n(.H>23 .if \n(.V>19 \ | |
111 | \{\ | |
112 | . ds : e | |
113 | . ds 8 ss | |
114 | . ds o a | |
115 | . ds d- d\h'-1'\(ga | |
116 | . ds D- D\h'-1'\(hy | |
117 | . ds th \o'bp' | |
118 | . ds Th \o'LP' | |
119 | . ds ae ae | |
120 | . ds Ae AE | |
121 | .\} | |
122 | .rm #[ #] #H #V #F C | |
123 | .\" ======================================================================== | |
124 | .\" | |
125 | .IX Title "DEBGET 1" | |
126 | .TH DEBGET 1 "2006-07-24" "perl v5.10.0" "Debian-goodies documentation" | |
127 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes | |
128 | .\" way too many mistakes in technical documents. | |
129 | .if n .ad l | |
130 | .nh | |
131 | .SH "NAME" | |
132 | debget \- Fetch a .deb for a package in APT's database | |
133 | .SH "SYNOPSIS" | |
134 | .IX Header "SYNOPSIS" | |
135 | \&\fBdebget\fR \fIpackage\fR [\fIpackage\fR ...] | |
136 | .SH "DESCRIPTION" | |
137 | .IX Header "DESCRIPTION" | |
138 | \&\fBdebget\fR fetches a .deb for one or more packages from an Debian mirror. | |
139 | It uses \fIapt\-get\fR\|(1) to find out the \s-1URL\s0 so it will download the same version | |
140 | from the same server as \fIapt-get\fR would do. The .deb will be downloaded with | |
141 | \&\fIcurl\fR\|(1) and stored in your current working directory. | |
142 | .SH "KNOWN BUGS" | |
143 | .IX Header "KNOWN BUGS" | |
144 | \&\fBdebget\fR will not work for packages that are available in \fIapt-get\fR's cache. | |
145 | If you need that functionality please use the .\fIdownload\fR option in | |
146 | \&\fIaptitude\fR. | |
147 | .SH "AUTHOR" | |
148 | .IX Header "AUTHOR" | |
149 | Matt Zimmerman <mdz@debian.org> | |
150 | .PP | |
151 | This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>. | |
152 | .SH "COPYRIGHT AND LICENCE" | |
153 | .IX Header "COPYRIGHT AND LICENCE" | |
154 | Copyright (C) 2001 Matt Zimmerman <mdz@debian.org>. | |
155 | .PP | |
156 | This program is free software; you can redistribute it and/or modify | |
157 | it under the terms of the \s-1GNU\s0 General Public License as published by | |
158 | the Free Software Foundation; either version 2, or (at your option) | |
159 | any later version. | |
160 | .PP | |
161 | On Debian systems, a copy of the \s-1GNU\s0 General Public License may be | |
162 | found in /usr/share/common\-licenses/GPL. | |
163 | .SH "SEE ALSO" | |
164 | .IX Header "SEE ALSO" | |
165 | \&\fIapt\-get\fR\|(1), \fIcurl\fR\|(1) |
0 | debian-goodies (0.53) unstable; urgency=low | |
1 | ||
2 | * [checkrestart] Fix numerical use of errno. Thanks Jakub Wilk! See | |
3 | http://lists.debian.org/debian-hurd/2010/08/msg00006.html for details. | |
4 | * [checkrestart] Fix Python string exception. Thanks Jakub Wilk for the | |
5 | patch. (Closes: #585198) | |
6 | * [dpigs] Fix getopt configuration for -h. Thanks Jakub Wilk for | |
7 | spotting this. (Closes: #584580) | |
8 | * Bump Standards-Version to 3.9.1 (no changes) | |
9 | ||
10 | -- Axel Beckert <abe@debian.org> Wed, 04 Aug 2010 12:35:05 +0200 | |
11 | ||
12 | debian-goodies (0.52) unstable; urgency=low | |
13 | ||
14 | * Added myself as Uploader. | |
15 | * Added Vcs-* header to debian/control | |
16 | * Switch to source format "3.0 (native)" | |
17 | * debget now downloads the correct package if apt-get would download | |
18 | multiple packages due to missing dependencies. Thanks Jakub Wilk for | |
19 | the patch! (Closes: #536377, #522491) | |
20 | * dpigs: New option -H which outputs human-readable packages sizes | |
21 | similar to "ls -lh" or "du -h" (Closes: #307910) | |
22 | * Updated dpigs documentation to match current command line options. | |
23 | * Fixed deprecation warning in which-pkg-broke with Python 2.6 by using | |
24 | the subprocess instead of popen2 module. Thanks Jakub Wilk for the | |
25 | patch! (Closes: #582924) | |
26 | * Added which-pkg-broke to the package's long description (Closes: #563279) | |
27 | * Bumped standards version to 3.8.4 (no changes other than those | |
28 | mentioned elsewhere in the changelog entry) | |
29 | * Bumped debhelper compatibility to 5 and fixed the following related | |
30 | lintian warnings: | |
31 | + package-uses-deprecated-debhelper-compat-version | |
32 | + package-lacks-versioned-build-depends-on-debhelper | |
33 | + debian-rules-sets-DH_COMPAT | |
34 | * Add dependency on perl (used by dpigs) | |
35 | * Removed dependency without version on essential package | |
36 | debianutils. Fixes lintian error | |
37 | depends-on-essential-package-without-using-version. | |
38 | * Fixed the following lintian errors and warnings: | |
39 | + [debian/control] debhelper-but-no-misc-depends | |
40 | + [debian/control] clean-should-be-satisfied-by-build-depends | |
41 | + [checkrestart.1] spelling-error-in-manpage | |
42 | * Fixed typo in dglob(1) man page (Closes: #535477) | |
43 | ||
44 | -- Axel Beckert <abe@debian.org> Sat, 29 May 2010 19:13:09 +0200 | |
45 | ||
0 | 46 | debian-goodies (0.51) unstable; urgency=low |
1 | 47 | |
2 | 48 | * Include patch from Jiri Palecek that makes checkrestart work |
0 | 5 |
1 | 1 | Section: utils |
2 | 2 | Priority: optional |
3 | 3 | Maintainer: Javier Fernandez-Sanguino Pen~a <jfs@debian.org> |
4 | Build-Depends-Indep: debhelper (>> 3.0.0) | |
5 | Standards-Version: 3.5.2 | |
4 | Uploaders: Axel Beckert <abe@debian.org> | |
5 | Build-Depends: debhelper (>= 5) | |
6 | Vcs-Svn: svn://svn.debian.org/collab-maint/deb-maint/debian-goodies/trunk/ | |
7 | Vcs-Browser: http://svn.debian.org/viewsvn/collab-maint/deb-maint/debian-goodies/trunk/ | |
8 | Standards-Version: 3.9.1 | |
6 | 9 | |
7 | 10 | Package: debian-goodies |
8 | 11 | Architecture: all |
9 | Depends: dctrl-tools | grep-dctrl, debianutils, curl, python (>= 2.4), lsof, whiptail | dialog, less | |
12 | Depends: dctrl-tools | grep-dctrl, perl, curl, python (>= 2.4), lsof, whiptail | dialog, less, ${misc:Depends} | |
10 | 13 | Suggests: popularity-contest, xdg-utils, zenity |
11 | 14 | Conflicts: debget |
12 | 15 | Replaces: debget |
20 | 23 | These are also included, because they are useful and don't justify |
21 | 24 | their own packages: |
22 | 25 | . |
23 | debget - Fetch a .deb for a package in APT's database | |
24 | dpigs - Show which installed packages occupy the most space | |
25 | debman - Easily view man pages from a binary .deb without extracting | |
26 | debmany - Select manpages of installed or uninstalled packages | |
27 | checkrestart - Help to find and restart processes which are using old | |
28 | versions of upgraded files (such as libraries) | |
29 | popbugs - Display a customized release-critical bug list based on | |
30 | packages you use (using popularity-contest data) | |
26 | debget - Fetch a .deb for a package in APT's database | |
27 | dpigs - Show which installed packages occupy the most space | |
28 | debman - Easily view man pages from a binary .deb without extracting | |
29 | debmany - Select manpages of installed or uninstalled packages | |
30 | checkrestart - Help to find and restart processes which are using old | |
31 | versions of upgraded files (such as libraries) | |
32 | popbugs - Display a customized release-critical bug list based on | |
33 | packages you use (using popularity-contest data) | |
34 | which-pkg-broke - find which package might have broken another |
4 | 4 | # Uncomment this to turn on verbose mode. |
5 | 5 | #export DH_VERBOSE=1 |
6 | 6 | |
7 | # This is the debhelper compatibility version to use. | |
8 | export DH_COMPAT=4 | |
9 | ||
10 | ||
7 | PODDOC=debget dglob dgrep dpigs | |
11 | 8 | |
12 | 9 | build: build-stamp |
13 | 10 | |
14 | 11 | build-stamp: |
15 | 12 | dh_testdir |
16 | 13 | |
17 | for prog in debget dglob dgrep dpigs; do pod2man -c "Debian-goodies documentation" $$prog.pod > $$prog.1; done | |
14 | for prog in $(PODDOC); do pod2man -c "Debian-goodies documentation" $$prog.pod > $$prog.1; done | |
18 | 15 | |
19 | 16 | touch build-stamp |
20 | 17 | |
22 | 19 | dh_testdir |
23 | 20 | dh_testroot |
24 | 21 | rm -f build-stamp |
22 | for prog in $(PODDOC); do rm -f $$prog.1; done | |
25 | 23 | |
26 | 24 | dh_clean |
27 | 25 |
0 | 3.0 (native) |
0 | .\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.07) | |
1 | .\" | |
2 | .\" Standard preamble: | |
3 | .\" ======================================================================== | |
4 | .de Sp \" Vertical space (when we can't use .PP) | |
5 | .if t .sp .5v | |
6 | .if n .sp | |
7 | .. | |
8 | .de Vb \" Begin verbatim text | |
9 | .ft CW | |
10 | .nf | |
11 | .ne \\$1 | |
12 | .. | |
13 | .de Ve \" End verbatim text | |
14 | .ft R | |
15 | .fi | |
16 | .. | |
17 | .\" Set up some character translations and predefined strings. \*(-- will | |
18 | .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left | |
19 | .\" double quote, and \*(R" will give a right double quote. \*(C+ will | |
20 | .\" give a nicer C++. Capital omega is used to do unbreakable dashes and | |
21 | .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, | |
22 | .\" nothing in troff, for use with C<>. | |
23 | .tr \(*W- | |
24 | .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' | |
25 | .ie n \{\ | |
26 | . ds -- \(*W- | |
27 | . ds PI pi | |
28 | . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch | |
29 | . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch | |
30 | . ds L" "" | |
31 | . ds R" "" | |
32 | . ds C` "" | |
33 | . ds C' "" | |
34 | 'br\} | |
35 | .el\{\ | |
36 | . ds -- \|\(em\| | |
37 | . ds PI \(*p | |
38 | . ds L" `` | |
39 | . ds R" '' | |
40 | 'br\} | |
41 | .\" | |
42 | .\" Escape single quotes in literal strings from groff's Unicode transform. | |
43 | .ie \n(.g .ds Aq \(aq | |
44 | .el .ds Aq ' | |
45 | .\" | |
46 | .\" If the F register is turned on, we'll generate index entries on stderr for | |
47 | .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index | |
48 | .\" entries marked with X<> in POD. Of course, you'll have to process the | |
49 | .\" output yourself in some meaningful fashion. | |
50 | .ie \nF \{\ | |
51 | . de IX | |
52 | . tm Index:\\$1\t\\n%\t"\\$2" | |
53 | .. | |
54 | . nr % 0 | |
55 | . rr F | |
56 | .\} | |
57 | .el \{\ | |
58 | . de IX | |
59 | .. | |
60 | .\} | |
61 | .\" | |
62 | .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). | |
63 | .\" Fear. Run. Save yourself. No user-serviceable parts. | |
64 | . \" fudge factors for nroff and troff | |
65 | .if n \{\ | |
66 | . ds #H 0 | |
67 | . ds #V .8m | |
68 | . ds #F .3m | |
69 | . ds #[ \f1 | |
70 | . ds #] \fP | |
71 | .\} | |
72 | .if t \{\ | |
73 | . ds #H ((1u-(\\\\n(.fu%2u))*.13m) | |
74 | . ds #V .6m | |
75 | . ds #F 0 | |
76 | . ds #[ \& | |
77 | . ds #] \& | |
78 | .\} | |
79 | . \" simple accents for nroff and troff | |
80 | .if n \{\ | |
81 | . ds ' \& | |
82 | . ds ` \& | |
83 | . ds ^ \& | |
84 | . ds , \& | |
85 | . ds ~ ~ | |
86 | . ds / | |
87 | .\} | |
88 | .if t \{\ | |
89 | . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" | |
90 | . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' | |
91 | . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' | |
92 | . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' | |
93 | . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' | |
94 | . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' | |
95 | .\} | |
96 | . \" troff and (daisy-wheel) nroff accents | |
97 | .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' | |
98 | .ds 8 \h'\*(#H'\(*b\h'-\*(#H' | |
99 | .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] | |
100 | .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' | |
101 | .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' | |
102 | .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] | |
103 | .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] | |
104 | .ds ae a\h'-(\w'a'u*4/10)'e | |
105 | .ds Ae A\h'-(\w'A'u*4/10)'E | |
106 | . \" corrections for vroff | |
107 | .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' | |
108 | .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' | |
109 | . \" for low resolution devices (crt and lpr) | |
110 | .if \n(.H>23 .if \n(.V>19 \ | |
111 | \{\ | |
112 | . ds : e | |
113 | . ds 8 ss | |
114 | . ds o a | |
115 | . ds d- d\h'-1'\(ga | |
116 | . ds D- D\h'-1'\(hy | |
117 | . ds th \o'bp' | |
118 | . ds Th \o'LP' | |
119 | . ds ae ae | |
120 | . ds Ae AE | |
121 | .\} | |
122 | .rm #[ #] #H #V #F C | |
123 | .\" ======================================================================== | |
124 | .\" | |
125 | .IX Title "DGLOB 1" | |
126 | .TH DGLOB 1 "2006-07-24" "perl v5.10.0" "Debian-goodies documentation" | |
127 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes | |
128 | .\" way too many mistakes in technical documents. | |
129 | .if n .ad l | |
130 | .nh | |
131 | .SH "NAME" | |
132 | dglob \- Expand package names or files matching a pattern | |
133 | .SH "SYNOPSIS" | |
134 | .IX Header "SYNOPSIS" | |
135 | \&\fBdglob\fR [\fB\-a\fR] \fIpattern\fR | |
136 | .PP | |
137 | \&\fBdglob\fR [\fB\-0\fR] \fB\-f\fR \fIpattern\fR | |
138 | .SH "DESCRIPTION" | |
139 | .IX Header "DESCRIPTION" | |
140 | \&\fBdglob\fR lists packages names matching a pattern. It can | |
141 | also list all the files they contain. By default \fBdglobl\fR only searches | |
142 | installed packages; the \fB\-a\fR switch widens the search (see \*(L"\s-1OPTIONS\s0\*(R"). The | |
143 | list is written to stdout, one name per line. | |
144 | .PP | |
145 | \&\fIgrep\-dctrl\fR\|(1) is used to search the list of packages, so you should | |
146 | refer to its documentation for information on how patterns are | |
147 | matched. By default, all packages whose name contains the given | |
148 | string will be matched, but several options are available to modify | |
149 | this behavior (see \*(L"\s-1OPTIONS\s0\*(R"). | |
150 | .PP | |
151 | If you use dglob with the \fB\-f\fR option, all files in the matched packages | |
152 | are listed instead of their names. Only existing, plain (i.e. no symlinks, | |
153 | directories or other special ones) files are listed. The filenames are | |
154 | written to stdout, one file per line. You can use the \fB\-0\fR option to | |
155 | get the filenames separated by '\e0' instead of a newline. | |
156 | .SH "OPTIONS" | |
157 | .IX Header "OPTIONS" | |
158 | \&\fBdglob\fR supports the following options: | |
159 | .IP "\fB\-a\fR" 4 | |
160 | .IX Item "-a" | |
161 | Search through all available packages, not just installed ones. | |
162 | .IP "\fB\-f\fR" 4 | |
163 | .IX Item "-f" | |
164 | List all files in the matched packages. This list only installed (i.e. | |
165 | locally existing) files from installed packages, so using it together | |
166 | with \fB\-a\fR is rather pointless. | |
167 | .IP "\fB\-0\fR" 4 | |
168 | .IX Item "-0" | |
169 | When listing files (with \fB\-f\fR) use '\e0' as a separator instead of | |
170 | a newline. When specified without \fB\-f\fR, this options does nothing. | |
171 | .IP "\fB\-r\fR, \fB\-e\fR, \fB\-i\fR, \fB\-X\fR, \fB\-v\fR" 4 | |
172 | .IX Item "-r, -e, -i, -X, -v" | |
173 | These options are passed directly to \fIgrep\-dctrl\fR\|(1) to modify how the | |
174 | pattern is matched. See \fIgrep\-dctrl\fR\|(1). | |
175 | .SH "FILES" | |
176 | .IX Header "FILES" | |
177 | .IP "\fI/var/lib/dpkg/status\fR" 4 | |
178 | .IX Item "/var/lib/dpkg/status" | |
179 | \&\fIdpkg\fR\|(8) status file, which serves as source for the list of available | |
180 | and installed packages. | |
181 | .SH "AUTHOR" | |
182 | .IX Header "AUTHOR" | |
183 | Matt Zimmerman <mdz@debian.org> | |
184 | .PP | |
185 | This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>. | |
186 | .SH "COPYRIGHT AND LICENCE" | |
187 | .IX Header "COPYRIGHT AND LICENCE" | |
188 | Copyright (C) 2001 Matt Zimmerman <mdz@debian.org>. | |
189 | .PP | |
190 | This program is free software; you can redistribute it and/or modify | |
191 | it under the terms of the \s-1GNU\s0 General Public License as published by | |
192 | the Free Software Foundation; either version 2, or (at your option) | |
193 | any later version. | |
194 | .PP | |
195 | On Debian systems, a copy of the \s-1GNU\s0 General Public License may be | |
196 | found in /usr/share/common\-licenses/GPL. | |
197 | .SH "SEE ALSO" | |
198 | .IX Header "SEE ALSO" | |
199 | \&\fIgrep\-dctrl\fR\|(1), \fIdpkg\fR\|(8) |
10 | 10 | =head1 DESCRIPTION |
11 | 11 | |
12 | 12 | B<dglob> lists packages names matching a pattern. It can |
13 | also list all the files they contain. By default B<dglobl> only searches | |
13 | also list all the files they contain. By default B<dglob> only searches | |
14 | 14 | installed packages; the B<-a> switch widens the search (see L<"OPTIONS">). The |
15 | 15 | list is written to stdout, one name per line. |
16 | 16 |
0 | .\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.07) | |
1 | .\" | |
2 | .\" Standard preamble: | |
3 | .\" ======================================================================== | |
4 | .de Sp \" Vertical space (when we can't use .PP) | |
5 | .if t .sp .5v | |
6 | .if n .sp | |
7 | .. | |
8 | .de Vb \" Begin verbatim text | |
9 | .ft CW | |
10 | .nf | |
11 | .ne \\$1 | |
12 | .. | |
13 | .de Ve \" End verbatim text | |
14 | .ft R | |
15 | .fi | |
16 | .. | |
17 | .\" Set up some character translations and predefined strings. \*(-- will | |
18 | .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left | |
19 | .\" double quote, and \*(R" will give a right double quote. \*(C+ will | |
20 | .\" give a nicer C++. Capital omega is used to do unbreakable dashes and | |
21 | .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, | |
22 | .\" nothing in troff, for use with C<>. | |
23 | .tr \(*W- | |
24 | .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' | |
25 | .ie n \{\ | |
26 | . ds -- \(*W- | |
27 | . ds PI pi | |
28 | . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch | |
29 | . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch | |
30 | . ds L" "" | |
31 | . ds R" "" | |
32 | . ds C` "" | |
33 | . ds C' "" | |
34 | 'br\} | |
35 | .el\{\ | |
36 | . ds -- \|\(em\| | |
37 | . ds PI \(*p | |
38 | . ds L" `` | |
39 | . ds R" '' | |
40 | 'br\} | |
41 | .\" | |
42 | .\" Escape single quotes in literal strings from groff's Unicode transform. | |
43 | .ie \n(.g .ds Aq \(aq | |
44 | .el .ds Aq ' | |
45 | .\" | |
46 | .\" If the F register is turned on, we'll generate index entries on stderr for | |
47 | .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index | |
48 | .\" entries marked with X<> in POD. Of course, you'll have to process the | |
49 | .\" output yourself in some meaningful fashion. | |
50 | .ie \nF \{\ | |
51 | . de IX | |
52 | . tm Index:\\$1\t\\n%\t"\\$2" | |
53 | .. | |
54 | . nr % 0 | |
55 | . rr F | |
56 | .\} | |
57 | .el \{\ | |
58 | . de IX | |
59 | .. | |
60 | .\} | |
61 | .\" | |
62 | .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). | |
63 | .\" Fear. Run. Save yourself. No user-serviceable parts. | |
64 | . \" fudge factors for nroff and troff | |
65 | .if n \{\ | |
66 | . ds #H 0 | |
67 | . ds #V .8m | |
68 | . ds #F .3m | |
69 | . ds #[ \f1 | |
70 | . ds #] \fP | |
71 | .\} | |
72 | .if t \{\ | |
73 | . ds #H ((1u-(\\\\n(.fu%2u))*.13m) | |
74 | . ds #V .6m | |
75 | . ds #F 0 | |
76 | . ds #[ \& | |
77 | . ds #] \& | |
78 | .\} | |
79 | . \" simple accents for nroff and troff | |
80 | .if n \{\ | |
81 | . ds ' \& | |
82 | . ds ` \& | |
83 | . ds ^ \& | |
84 | . ds , \& | |
85 | . ds ~ ~ | |
86 | . ds / | |
87 | .\} | |
88 | .if t \{\ | |
89 | . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" | |
90 | . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' | |
91 | . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' | |
92 | . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' | |
93 | . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' | |
94 | . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' | |
95 | .\} | |
96 | . \" troff and (daisy-wheel) nroff accents | |
97 | .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' | |
98 | .ds 8 \h'\*(#H'\(*b\h'-\*(#H' | |
99 | .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] | |
100 | .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' | |
101 | .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' | |
102 | .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] | |
103 | .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] | |
104 | .ds ae a\h'-(\w'a'u*4/10)'e | |
105 | .ds Ae A\h'-(\w'A'u*4/10)'E | |
106 | . \" corrections for vroff | |
107 | .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' | |
108 | .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' | |
109 | . \" for low resolution devices (crt and lpr) | |
110 | .if \n(.H>23 .if \n(.V>19 \ | |
111 | \{\ | |
112 | . ds : e | |
113 | . ds 8 ss | |
114 | . ds o a | |
115 | . ds d- d\h'-1'\(ga | |
116 | . ds D- D\h'-1'\(hy | |
117 | . ds th \o'bp' | |
118 | . ds Th \o'LP' | |
119 | . ds ae ae | |
120 | . ds Ae AE | |
121 | .\} | |
122 | .rm #[ #] #H #V #F C | |
123 | .\" ======================================================================== | |
124 | .\" | |
125 | .IX Title "DGREP 1" | |
126 | .TH DGREP 1 "2006-07-24" "perl v5.10.0" "Debian-goodies documentation" | |
127 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes | |
128 | .\" way too many mistakes in technical documents. | |
129 | .if n .ad l | |
130 | .nh | |
131 | .SH "NAME" | |
132 | dgrep, degrep, dfgrep, dzgrep \-\- grep through files belonging to an installed Debian package | |
133 | .SH "SYNOPSIS" | |
134 | .IX Header "SYNOPSIS" | |
135 | \&\fBdgrep\fR [\fImost grep options\fR] \fIpattern\fR \fIpackage\fR... | |
136 | .PP | |
137 | \&\fBdgrep\fR \fB\-\-help\fR | |
138 | .SH "DESCRIPTION" | |
139 | .IX Header "DESCRIPTION" | |
140 | \&\fBdgrep\fR invokes \fIgrep\fR\|(1) on each file in one or more installed Debian | |
141 | packages. | |
142 | .PP | |
143 | It passes the \fIpackage\fR argument(s) to \fIdglob\fR\|(1) to retrieve a list of files | |
144 | in those packages. You can use \s-1POSIX\s0 regular expressions for the package | |
145 | names. | |
146 | .PP | |
147 | If \fBdgrep\fR is invoked as \fBdegrep\fR, \fBdfgrep\fR or \fBdzgrep\fR then \fIegrep\fR\|(1), | |
148 | \&\fIfgrep\fR\|(1) or \fIzgrep\fR\|(1) is used instead of \fBgrep\fR. | |
149 | .SH "OPTIONS" | |
150 | .IX Header "OPTIONS" | |
151 | \&\fBdgrep\fR supports most of \fIgrep\fR\|(1)'s options. Please refer to your | |
152 | \&\fBgrep\fR documentation (i.e. the manpage or the texinfo manual) for | |
153 | a complete listing. Only a few options are excluded because they do not | |
154 | conform with the intended behaviour, see the list below. | |
155 | .SS "Options of grep that are not supported by dgrep" | |
156 | .IX Subsection "Options of grep that are not supported by dgrep" | |
157 | .IP "\fB\-r\fR, \fB\-\-recursive\fR, \fB\-d\fR \fIrecurse\fR, \fB\-\-directories\fR=\fIrecurse\fR" 4 | |
158 | .IX Item "-r, --recursive, -d recurse, --directories=recurse" | |
159 | .PD 0 | |
160 | .IP "\fB\-d\fR \fIread\fR, \fB\-\-directories\fR=\fIread\fR" 4 | |
161 | .IX Item "-d read, --directories=read" | |
162 | .PD | |
163 | \&\fBdgrep\fR searches only in the \*(L"normal\*(R" files of a package. It skips all | |
164 | directories and symlinks. Therefor the options of | |
165 | grep that are specific to directories are not supported. | |
166 | .SH "AUTHOR" | |
167 | .IX Header "AUTHOR" | |
168 | Matt Zimmerman <mdz@debian.org> | |
169 | .PP | |
170 | This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>. | |
171 | .SH "COPYRIGHT AND LICENCE" | |
172 | .IX Header "COPYRIGHT AND LICENCE" | |
173 | Copyright (C) 2001 Matt Zimmerman <mdz@debian.org>. | |
174 | .PP | |
175 | This program is free software; you can redistribute it and/or modify | |
176 | it under the terms of the \s-1GNU\s0 General Public License as published by | |
177 | the Free Software Foundation; either version 2, or (at your option) | |
178 | any later version. | |
179 | .PP | |
180 | On Debian systems, a copy of the \s-1GNU\s0 General Public License may be | |
181 | found in /usr/share/common\-licenses/GPL. | |
182 | .SH "SEE ALSO" | |
183 | .IX Header "SEE ALSO" | |
184 | \&\fIgrep\fR\|(1), \fIegrep\fR\|(1), \fIfgrep\fR\|(1), \fIzgrep\fR\|(1), \fIdglob\fR\|(1), \fIregex\fR\|(7), \fIdpkg\fR\|(8) |
33 | 33 | echo " Display the N largest packages on the system (default 10)." |
34 | 34 | echo " -s, --status=status-file" |
35 | 35 | echo " Use status-file instead of the default dpkg status file." |
36 | echo " -S, --source" | |
37 | echo " Display the largest source packages of binary packages installed" | |
38 | echo " on the system." | |
39 | echo " -H, --human-readable" | |
40 | echo " Display package sizes in human-readable format (like ls -lh or du -h)" | |
36 | 41 | echo " -h, --help" |
37 | 42 | echo " Display this message." |
38 | 43 | } |
42 | 47 | STATUS= |
43 | 48 | # Default: provide binary package information |
44 | 49 | SOURCE=0 |
50 | # Default: display kilobytes | |
51 | HUMAN=0 | |
45 | 52 | |
46 | OPTS=$(getopt -o n:s:Sh --long lines:,status:,source,help -- "$@") | |
53 | OPTS=$(getopt -o n:s:ShH --long lines:,status:,source,help,human-readable -- "$@") | |
47 | 54 | eval set -- "$OPTS" |
48 | 55 | |
49 | 56 | while true; do |
58 | 65 | ;; |
59 | 66 | -S|--source) |
60 | 67 | SOURCE=1 |
68 | shift 1 | |
69 | ;; | |
70 | -H|--human-readable) | |
71 | HUMAN=1 | |
61 | 72 | shift 1 |
62 | 73 | ;; |
63 | 74 | -h|--help) |
96 | 107 | # END {$, = " "; for(keys %s) {print "$s{$_} $_:", sort keys %{$b{$_}}} }' \ |
97 | 108 | # | sort -rn \ |
98 | 109 | # | head --lines=$LINES |
110 | fi | if [ $HUMAN -eq 1 ]; then | |
111 | awk '{ if ($1 > 1024*1024*1024) | |
112 | printf("% 6.1fT %s\n", $1/(1024*1024*1024), $2); | |
113 | else if ($1 > 1024*1024) | |
114 | printf("% 6.1fG %s\n", $1/(1024*1024), $2); | |
115 | else if ($1 > 1024) | |
116 | printf("% 6.1fM %s\n", $1/1024, $2); | |
117 | else | |
118 | printf("% 6.1ik %s\n", $1, $2); }' | |
119 | else | |
120 | cat | |
99 | 121 | fi |
0 | .\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.07) | |
1 | .\" | |
2 | .\" Standard preamble: | |
3 | .\" ======================================================================== | |
4 | .de Sp \" Vertical space (when we can't use .PP) | |
5 | .if t .sp .5v | |
6 | .if n .sp | |
7 | .. | |
8 | .de Vb \" Begin verbatim text | |
9 | .ft CW | |
10 | .nf | |
11 | .ne \\$1 | |
12 | .. | |
13 | .de Ve \" End verbatim text | |
14 | .ft R | |
15 | .fi | |
16 | .. | |
17 | .\" Set up some character translations and predefined strings. \*(-- will | |
18 | .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left | |
19 | .\" double quote, and \*(R" will give a right double quote. \*(C+ will | |
20 | .\" give a nicer C++. Capital omega is used to do unbreakable dashes and | |
21 | .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, | |
22 | .\" nothing in troff, for use with C<>. | |
23 | .tr \(*W- | |
24 | .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' | |
25 | .ie n \{\ | |
26 | . ds -- \(*W- | |
27 | . ds PI pi | |
28 | . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch | |
29 | . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch | |
30 | . ds L" "" | |
31 | . ds R" "" | |
32 | . ds C` "" | |
33 | . ds C' "" | |
34 | 'br\} | |
35 | .el\{\ | |
36 | . ds -- \|\(em\| | |
37 | . ds PI \(*p | |
38 | . ds L" `` | |
39 | . ds R" '' | |
40 | 'br\} | |
41 | .\" | |
42 | .\" Escape single quotes in literal strings from groff's Unicode transform. | |
43 | .ie \n(.g .ds Aq \(aq | |
44 | .el .ds Aq ' | |
45 | .\" | |
46 | .\" If the F register is turned on, we'll generate index entries on stderr for | |
47 | .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index | |
48 | .\" entries marked with X<> in POD. Of course, you'll have to process the | |
49 | .\" output yourself in some meaningful fashion. | |
50 | .ie \nF \{\ | |
51 | . de IX | |
52 | . tm Index:\\$1\t\\n%\t"\\$2" | |
53 | .. | |
54 | . nr % 0 | |
55 | . rr F | |
56 | .\} | |
57 | .el \{\ | |
58 | . de IX | |
59 | .. | |
60 | .\} | |
61 | .\" | |
62 | .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). | |
63 | .\" Fear. Run. Save yourself. No user-serviceable parts. | |
64 | . \" fudge factors for nroff and troff | |
65 | .if n \{\ | |
66 | . ds #H 0 | |
67 | . ds #V .8m | |
68 | . ds #F .3m | |
69 | . ds #[ \f1 | |
70 | . ds #] \fP | |
71 | .\} | |
72 | .if t \{\ | |
73 | . ds #H ((1u-(\\\\n(.fu%2u))*.13m) | |
74 | . ds #V .6m | |
75 | . ds #F 0 | |
76 | . ds #[ \& | |
77 | . ds #] \& | |
78 | .\} | |
79 | . \" simple accents for nroff and troff | |
80 | .if n \{\ | |
81 | . ds ' \& | |
82 | . ds ` \& | |
83 | . ds ^ \& | |
84 | . ds , \& | |
85 | . ds ~ ~ | |
86 | . ds / | |
87 | .\} | |
88 | .if t \{\ | |
89 | . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" | |
90 | . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' | |
91 | . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' | |
92 | . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' | |
93 | . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' | |
94 | . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' | |
95 | .\} | |
96 | . \" troff and (daisy-wheel) nroff accents | |
97 | .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' | |
98 | .ds 8 \h'\*(#H'\(*b\h'-\*(#H' | |
99 | .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] | |
100 | .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' | |
101 | .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' | |
102 | .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] | |
103 | .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] | |
104 | .ds ae a\h'-(\w'a'u*4/10)'e | |
105 | .ds Ae A\h'-(\w'A'u*4/10)'E | |
106 | . \" corrections for vroff | |
107 | .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' | |
108 | .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' | |
109 | . \" for low resolution devices (crt and lpr) | |
110 | .if \n(.H>23 .if \n(.V>19 \ | |
111 | \{\ | |
112 | . ds : e | |
113 | . ds 8 ss | |
114 | . ds o a | |
115 | . ds d- d\h'-1'\(ga | |
116 | . ds D- D\h'-1'\(hy | |
117 | . ds th \o'bp' | |
118 | . ds Th \o'LP' | |
119 | . ds ae ae | |
120 | . ds Ae AE | |
121 | .\} | |
122 | .rm #[ #] #H #V #F C | |
123 | .\" ======================================================================== | |
124 | .\" | |
125 | .IX Title "DPIGS 1" | |
126 | .TH DPIGS 1 "2006-07-24" "perl v5.10.0" "Debian-goodies documentation" | |
127 | .\" For nroff, turn off justification. Always turn off hyphenation; it makes | |
128 | .\" way too many mistakes in technical documents. | |
129 | .if n .ad l | |
130 | .nh | |
131 | .SH "NAME" | |
132 | dpigs \- Show which installed packages occupy the most space | |
133 | .SH "SYNOPSIS" | |
134 | .IX Header "SYNOPSIS" | |
135 | \&\fBdpigs\fR [\fIoptions\fR] | |
136 | .SH "DESCRIPTION" | |
137 | .IX Header "DESCRIPTION" | |
138 | \&\fBdpigs\fR sorts the installed packages by size and outputs the largest | |
139 | ones. Per default dpigs displays the largest 10 packages. You can change | |
140 | this value by using the \fB\-n\fR option (see \*(L"\s-1OPTIONS\s0\*(R"). The information | |
141 | is taken from the dpkg status file with \fIgrep\-status\fR\|(1). | |
142 | .SH "OPTIONS" | |
143 | .IX Header "OPTIONS" | |
144 | .IP "\fB\-h\fR, \fB\-\-help\fR" 4 | |
145 | .IX Item "-h, --help" | |
146 | Display some usage information and exit. | |
147 | .IP "\fB\-n\fR, \fB\-\-lines\fR=\fIN\fR" 4 | |
148 | .IX Item "-n, --lines=N" | |
149 | Display the N largest packages on the system (default 10). | |
150 | .IP "\fB\-s\fR, \fB\-\-status\fR=\fI\s-1FILE\s0\fR" 4 | |
151 | .IX Item "-s, --status=FILE" | |
152 | Use \fI\s-1FILE\s0\fR instead of the default dpkg status file (which is | |
153 | \&\fI/var/lib/dpkg/status\fR currently). | |
154 | .SH "AUTHOR" | |
155 | .IX Header "AUTHOR" | |
156 | Matt Zimmerman <mdz@debian.org> | |
157 | .PP | |
158 | This manpage was written by Frank Lichtenheld <frank@lichtenheld.de>. | |
159 | .SH "COPYRIGHT AND LICENCE" | |
160 | .IX Header "COPYRIGHT AND LICENCE" | |
161 | Copyright (C) 2001 Matt Zimmerman <mdz@debian.org>. | |
162 | .PP | |
163 | This program is free software; you can redistribute it and/or modify | |
164 | it under the terms of the \s-1GNU\s0 General Public License as published by | |
165 | the Free Software Foundation; either version 2, or (at your option) | |
166 | any later version. | |
167 | .PP | |
168 | On Debian systems, a copy of the \s-1GNU\s0 General Public License may be | |
169 | found in /usr/share/common\-licenses/GPL. | |
170 | .SH "SEE ALSO" | |
171 | .IX Header "SEE ALSO" | |
172 | \&\fIdpkg\fR\|(8), \fIgrep\-status\fR\|(1) |
29 | 29 | Use I<FILE> instead of the default dpkg status file (which is |
30 | 30 | F</var/lib/dpkg/status> currently). |
31 | 31 | |
32 | =item B<-S>, B<--source> | |
33 | ||
34 | Display the largest source packages of binary packages installed on | |
35 | the system. | |
36 | ||
32 | 37 | =back |
33 | 38 | |
34 | 39 | =head1 AUTHOR |
3 | 3 | |
4 | 4 | import sys |
5 | 5 | import os |
6 | import popen2 | |
6 | import subprocess | |
7 | 7 | import time |
8 | 8 | from string import * |
9 | 9 | from stat import * |
10 | 10 | |
11 | 11 | def pkgdeps(pkg): |
12 | outstr, instr = popen2.popen4("LC_ALL=C apt-cache depends %s" % pkg) | |
12 | apt_cache = subprocess.Popen( | |
13 | ['apt-cache', 'depends', pkg], | |
14 | stdout=subprocess.PIPE, stderr=subprocess.STDOUT, | |
15 | env={} # force POSIX locale | |
16 | ) | |
13 | 17 | deps = [] |
14 | myline = outstr.readline() | |
18 | myline = apt_cache.stdout.readline() | |
15 | 19 | while(myline != ''): |
16 | 20 | elts = map(strip, myline.split(':')) |
17 | 21 | if len(elts) == 2: |
18 | 22 | how, pkg = elts |
19 | 23 | if how in ('Depends', 'PreDepends'): |
20 | 24 | deps.append(pkg) |
21 | myline = outstr.readline() | |
25 | myline = apt_cache.stdout.readline() | |
26 | apt_cache.wait() | |
22 | 27 | return deps |
23 | 28 | |
24 | 29 | def alldeps(pkg, ignore): |