File: dpkg-www.1

package info (click to toggle)
dpkg-www 2.59
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 192 kB
  • sloc: sh: 1,596; makefile: 16
file content (107 lines) | stat: -rw-r--r-- 3,484 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
.\" Copyright © 2002, 2005 Massimo Dal Zotto <dz@debian.org>
.\"
.\" This is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.
.\"
.\" This is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with this program.  If not, see <https://www.gnu.org/licenses/>.
.
.TH DPKG\-WWW 1 "2019-02-26"

.SH NAME
dpkg\-www \- program to remotely open a WWW Debian package browser

.SH SYNOPSIS
.B dpkg-www
.RB [ \-s | \-\-stdout ]
.RB [ \-h | "\-\-host \fIhost\fP" ]
.RI [ query ]

.SH DESCRIPTION
.B dpkg\-www
is used to remotely control a web browser and open a dpkg
URL on the localhost from an interactive shell or script.

If the command is invoked while running under the X Window System the
script will try to find an installed X browser to open the specified URL.
If not running under X, it will try to use a text browser instead.

If one of the known browsers is found and there is an instance already
running it will be asked to open the dpkg URL on localhost with the optional
.I query
supplied on the command line.
If there is no browser running, it will start automatically a new one.

The functionality provided by this program is identical to running
a web browser with the
.B \-remote openURL(http://localhost/cgi\-bin/dpkg)
argument or opening the same URL from within the browser.

.BR dpkg\-www\-installer (8)
is a helper application which can configured in the WWW browser for web
installation. It should never be invoked directly by the user.

.SH OPTIONS
.TP
.BR \-s ", " \-\-stdout
Redirect output to stdout. Requires one of the text browsers (elinks,
links2, links or w3m) installed.
.TP
.BR \-h ", " \-\-host " \fIhost\fR"
Send the query to a remote host, where \fBdpkg\-www\fP must be installed.
.TP
.I query
Specifies an optional package name, an absolute pathname or a query
argument which is passed to the dpkg cgi\-bin. See
.BR dpkg\-www (8)
for more information about the use of the CGI.

.SH FILES
.TP
.I /etc/dpkg\-www.conf
.TQ
.I ~/.dpkg\-www
Configuration files for \fBdpkg\-www\fP.
It is not necessary for these files to exist, there are sensible defaults
for everything, but you can specify your preferred www browser with the
.B DPKG_WWW_BROWSER
variable, for example
.BR DPKG_WWW_BROWSER=firefox .

.SH EXAMPLES
.TP
.B dpkg\-www
This would open a dpkg URL on localhost listing all the installed packages.
.TP
.B dpkg\-www bash
This would open a dpkg URL asking info on the bash package.
.TP
.B dpkg\-www \-h pisolo bash
This would open a dpkg URL asking info on the bash package on host pisolo.
.TP
.B dpkg\-www 'dpkg*'
This would open a dpkg URL listing all packages matching
.IR dpkg* .
.TP
.B dpkg\-www /bin/bash
This would open a dpkg URL asking info on the package(s)
owning the file
.IR /bin/bash .
.TP
.B dpkg\-www depends=coreutils
This would open a dpkg URL listing all packages depending on coreutils.
.TP
.B dpkg\-www \-\-stdout depends=awk | grep ^ii
This would list on stdout all packages depending on awk and grep all
lines of installed packages.

.SH SEE ALSO
.BR dpkg (1),
.BR dpkg\-www (8).