1 |
perry |
1 |
APT-CONFIG |
|
|
2 |
!!!APT-CONFIG |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
OPTIONS |
|
|
7 |
SEE ALSO |
|
|
8 |
DIAGNOSTICS |
|
|
9 |
BUGS |
|
|
10 |
AUTHOR |
|
|
11 |
---- |
|
|
12 |
!!NAME |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
apt-config - APT Configuration Query program |
|
|
16 |
!!SYNOPSIS |
|
|
17 |
|
|
|
18 |
|
|
|
19 |
__apt-config__ [[ __-hv__ ] [[ __-o=__''config |
|
|
20 |
string'' ] [[ __-c=__''file'' ] __[[ shell ] [[ dump |
|
|
21 |
]__ |
|
|
22 |
!!DESCRIPTION |
|
|
23 |
|
|
|
24 |
|
|
|
25 |
__apt-config__ is an internal program used by various |
|
|
26 |
portions of the APT suite to provide consistent |
|
|
27 |
configurability. It accesses the main configuarion file |
|
|
28 |
''/etc/apt/apt.conf'' in a manner that is easy to use by |
|
|
29 |
scripted applications. |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
Unless the __-h__, or __--help__ option is given one |
|
|
33 |
of the commands below must be present. |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
__shell__ |
|
|
37 |
|
|
|
38 |
|
|
|
39 |
shell is used to access the configuration information from a |
|
|
40 |
shell script. It is given pairs of arguments, the first |
|
|
41 |
being a shell variable and the second the configuration |
|
|
42 |
value to query. As output it lists a series of shell |
|
|
43 |
assignments commands for each present value. In a shell |
|
|
44 |
script it should be used like: |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
OPTS= |
2 |
perry |
48 |
This will set the shell environment variable $OPTS to the value of !MyApp::Options with a default of __-f__. |
1 |
perry |
49 |
|
|
|
50 |
|
|
|
51 |
The configuration item may be postfixed with a /[[fdbi]. f |
|
|
52 |
returns file names, d returns directories, b returns true or |
|
|
53 |
false and i returns an integer. Each of the returns is |
|
|
54 |
normalized and verified internally. |
|
|
55 |
|
|
|
56 |
|
|
|
57 |
__dump__ |
|
|
58 |
|
|
|
59 |
|
|
|
60 |
Just show the contents of the configuration |
|
|
61 |
space. |
|
|
62 |
!!OPTIONS |
|
|
63 |
|
|
|
64 |
|
|
|
65 |
All command line options may be set using the configuration |
|
|
66 |
file, the descriptions indicate the configuration option to |
|
|
67 |
set. For boolean options you can override the config file by |
|
|
68 |
using something like __-f-__,__--no-f__, __-f=no__ |
|
|
69 |
or several other variations. |
|
|
70 |
|
|
|
71 |
|
|
|
72 |
__-h__ |
|
|
73 |
|
|
|
74 |
|
|
|
75 |
__--help__ |
|
|
76 |
|
|
|
77 |
|
|
|
78 |
Show a short usage summary. |
|
|
79 |
|
|
|
80 |
|
|
|
81 |
__-v__ |
|
|
82 |
|
|
|
83 |
|
|
|
84 |
__--version__ |
|
|
85 |
|
|
|
86 |
|
|
|
87 |
Show the program verison. |
|
|
88 |
|
|
|
89 |
|
|
|
90 |
__-c__ |
|
|
91 |
|
|
|
92 |
|
|
|
93 |
__--config-file__ |
|
|
94 |
|
|
|
95 |
|
|
|
96 |
Configuration File; Specify a configuration file to use. The |
|
|
97 |
program will read the default configuration file and then |
|
|
98 |
this configuration file. See ''apt.conf''(5) for syntax |
|
|
99 |
information. |
|
|
100 |
|
|
|
101 |
|
|
|
102 |
__-o__ |
|
|
103 |
|
|
|
104 |
|
|
|
105 |
__--option__ |
|
|
106 |
|
|
|
107 |
|
|
|
108 |
Set a Configuration Option; This will set an arbitary |
|
|
109 |
configuration option. The syntax is __-o |
|
|
110 |
Foo::Bar=bar__. |
|
|
111 |
!!SEE ALSO |
|
|
112 |
|
|
|
113 |
|
|
|
114 |
''apt.conf''(5) |
|
|
115 |
!!DIAGNOSTICS |
|
|
116 |
|
|
|
117 |
|
|
|
118 |
__apt-config__ returns zero on normal operation, decimal |
|
|
119 |
100 on error. |
|
|
120 |
!!BUGS |
|
|
121 |
|
|
|
122 |
|
|
|
123 |
See the APT bug page |
|
|
124 |
/usr/share/doc/debian/bug-reporting.txt'' or the |
|
|
125 |
bug(1) command. |
|
|
126 |
!!AUTHOR |
|
|
127 |
|
|
|
128 |
|
|
|
129 |
APT was written by the APT team |
|
|
130 |
---- |