summaryrefslogtreecommitdiff
path: root/doc/en/manpage.xml
blob: c6933eb6b62b7aa526a634dd266b56355617eb30 (plain)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
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
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
<refentry>
  <refentryinfo>
    <!--
	The <author> element isn't needed here, because docbook-xsl
	automatically generates author information from the main
	document's author element.  Languages that provide only a
	manpage should include this information, though.

    <author>
      <personname>
	<firstname>Daniel</firstname>
	<surname>Burrows</surname>
      </personname>
      <email>dburrows@debian.org</email>
    </author>
    -->
    <title>aptitude</title>

     <!-- NWalsh's docbook scripts use this to generate the footer: -->
    <productname>aptitude</productname>
    <productnumber>&VERSION;</productnumber>

    <legalnotice>
      <para>
	Copyright 2004-2011 Daniel Burrows.
      </para>

      <para>
	This manual page 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.
      </para>

      <para>
	This manual page 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.
      </para>

      <para>
	You should have received a copy of the GNU General Public
	License along with this program; if not, write to the Free
	Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
	Boston, MA 02110-1301 USA.
      </para>
    </legalnotice>
  </refentryinfo>

  <refmeta>
    <refentrytitle>aptitude</refentrytitle>
    <manvolnum>8</manvolnum>
  </refmeta>

  <refnamediv>
    <refname>aptitude</refname>
    <refpurpose>high-level interface to the package manager</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <cmdsynopsis>
      <command>aptitude</command>

      <arg choice='opt' rep='repeat'><replaceable>options</replaceable></arg>

      <group choice='req'>
	<arg choice='plain'>autoclean</arg>
	<arg choice='plain'>clean</arg>
	<arg choice='plain'>forget-new</arg>
	<arg choice='plain'>keep-all</arg>
	<arg choice='plain'>update</arg>
      </group>
    </cmdsynopsis>

    <cmdsynopsis>
      <command>aptitude</command>

      <arg choice='opt' rep='repeat'><replaceable>options</replaceable></arg>

      <group choice='req'>
	<arg choice='plain'>full-upgrade</arg>
	<arg choice='plain'>safe-upgrade</arg>
      </group>

      <arg choice='opt' rep='repeat'><replaceable>packages</replaceable></arg>
    </cmdsynopsis>

    <cmdsynopsis>
      <command>aptitude</command>

      <arg choice='opt' rep='repeat'><replaceable>options</replaceable></arg>

      <group choice='req'>
	<arg choice='plain'>build-dep</arg>
	<arg choice='plain'>build-depends</arg>
	<arg choice='plain'>changelog</arg>
	<arg choice='plain'>download</arg>
	<arg choice='plain'>forbid-version</arg>
	<arg choice='plain'>hold</arg>
	<arg choice='plain'>install</arg>
	<arg choice='plain'>markauto</arg>
	<arg choice='plain'>purge</arg>
	<arg choice='plain'>reinstall</arg>
	<arg choice='plain'>remove</arg>
	<arg choice='plain'>show</arg>
	<arg choice='plain'>unhold</arg>
	<arg choice='plain'>unmarkauto</arg>
        <arg choice='plain'>versions</arg>
      </group>

      <arg choice='plain' rep='repeat'><replaceable>packages</replaceable></arg>
    </cmdsynopsis>

    <cmdsynopsis>
      <command>aptitude</command>

      <arg choice='plain'>extract-cache-subset</arg>

      <arg choice='plain'><replaceable>output-directory</replaceable></arg>
      <arg choice='plain' rep='repeat'><replaceable>packages</replaceable></arg>
    </cmdsynopsis>

    <cmdsynopsis>
      <command>aptitude</command>

      <arg choice='opt' rep='repeat'><replaceable>options</replaceable></arg>

      <arg choice='plain'>search</arg>

      <arg choice='plain' rep='repeat'><replaceable>patterns</replaceable></arg>
    </cmdsynopsis>

    <cmdsynopsis>
      <command>aptitude</command>

      <arg choice='opt' rep='repeat'><replaceable>options</replaceable></arg>

      <group choice='req'>
	<arg choice='plain'>add-user-tag</arg>
	<arg choice='plain'>remove-user-tag</arg>
      </group>

      <arg choice='plain'><replaceable>tag</replaceable></arg>

      <arg choice='plain' rep='repeat'><replaceable>packages</replaceable></arg>
    </cmdsynopsis>

    <cmdsynopsis>
      <command>aptitude</command>

      <arg choice='opt' rep='repeat'><replaceable>options</replaceable></arg>

      <group choice='req'>
	<arg choice='plain'>why</arg>
	<arg choice='plain'>why-not</arg>
      </group>

      <arg choice='opt' rep='repeat'><replaceable>patterns</replaceable></arg>

      <arg choice='plain'><replaceable>package</replaceable></arg>
    </cmdsynopsis>

    <cmdsynopsis>
      <command>aptitude</command>
      <arg choice='opt'>-S <replaceable>fname</replaceable></arg>
      <group choice='opt'>
	<arg choice='plain'>--autoclean-on-startup</arg>
	<arg choice='plain'>--clean-on-startup</arg>
	<arg choice='plain'>-i</arg>
	<arg choice='plain'>-u</arg>
      </group>
    </cmdsynopsis>

    <cmdsynopsis>
      <command>aptitude</command>
      <arg choice='plain'>help</arg>
    </cmdsynopsis>
  </refsynopsisdiv>

  <refsect1>
    <title>Description</title>

    <para>
      &aptitude; is a text-based interface to the Debian GNU/Linux
      package system.
    </para>

    <para>
      It allows the user to view the list of packages and to
      perform package management tasks such as installing,
      upgrading, and removing packages.  Actions may be performed
      from a visual interface or from the command-line.
    </para>
  </refsect1>

  <refsect1>
    <title>Command-line actions</title>

    <para>
      The first argument which does not begin with a hyphen (<quote><literal>-</literal></quote>)
      is considered to be an action that the program should
      perform.  If an action is not specified on the command-line,
      &aptitude; will start up in visual mode.
    </para>

    <para>
      The following actions are available:
    </para>

    <variablelist>
      <varlistentry id='cmdlineInstall'>
	<term><literal>install</literal></term>

	<listitem>
	  <para>
	    Install one or more packages.  The packages should be
	    listed after the <quote>install</quote> command; if a
	    package name contains a tilde character
	    (<quote><literal>~</literal></quote>) or a question mark
	    (<quote><literal>?</literal></quote>), it will be treated
	    as a search pattern and every package matching the pattern
	    will be installed (see the section <link
	    linkend='secSearchPatterns'><quote>Search
	    Patterns</quote></link> in the &aptitude; reference
	    manual).
	  </para>

	  <para>
	    To select a particular version of the package, append <quote><literal>=<replaceable>version</replaceable></literal></quote>
	    to the package name: for instance, <quote><literal>aptitude install
	    apt=0.3.1</literal></quote>.  Similarly, to select a
	    package from a particular archive, append <quote><literal>/<replaceable>archive</replaceable></literal></quote>
	    to the package name: for instance, <quote><literal>aptitude install
	    apt/experimental</literal></quote>. You cannot specify both an archive and a version for a package.
	  </para>

	  <para id='parOverrideSpecifiers'>
	    Not every package listed on the command line has to be
	    installed; you can tell &aptitude; to do something
	    different with a package by appending an <quote>override
	    specifier</quote> to the name of the package.  For
	    example, <literal>aptitude remove wesnoth+</literal> will
	    install <literal>wesnoth</literal>, not remove it.  The
	    following override specifiers are available:
	  </para>

	  <variablelist>
	    <varlistentry>
	      <term><replaceable>package</replaceable><literal>+</literal></term>
	      <listitem>
		<para>
		  Install <replaceable>package</replaceable>.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><replaceable>package</replaceable><literal>+M</literal></term>
	      <listitem>
		<para>
		  Install <replaceable>package</replaceable> and
		  immediately mark it as <link
		  linkend='secAutoInstall'>automatically
		  installed</link> (note that if nothing depends on
		  <replaceable>package</replaceable>, this will cause
		  it to be immediately removed).
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><replaceable>package</replaceable><literal>-</literal></term>
	      <listitem>
		<para>
		  Remove <replaceable>package</replaceable>.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><replaceable>package</replaceable><literal>_</literal></term>
	      <listitem>
		<para>
		  Purge <replaceable>package</replaceable>: remove it
		  and all its associated configuration and data files.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><replaceable>package</replaceable><literal>=</literal></term>
	      <listitem>
		<para>
		  Place <replaceable>package</replaceable> on hold:
		  cancel any active installation, upgrade, or removal,
		  and prevent this package from being automatically
		  upgraded in the future.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><replaceable>package</replaceable><literal>:</literal></term>
	      <listitem>
		<para>
		  Keep <replaceable>package</replaceable> at its
		  current version: cancel any installation, removal,
		  or upgrade.  Unlike <quote>hold</quote> (above) this
		  does not prevent automatic upgrades in the future.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><replaceable>package</replaceable><literal>&amp;M</literal></term>
	      <listitem>
		<para>
		  Mark <replaceable>package</replaceable> as having
		  been <link linkend='secAutoInstall'>automatically installed</link>.
		</para>
	      </listitem>
	    </varlistentry>

	    <varlistentry>
	      <term><replaceable>package</replaceable><literal>&amp;m</literal></term>
	      <listitem>
		<para>
		  Mark <replaceable>package</replaceable> as having
		  been <link linkend='secAutoInstall'>manually installed</link>.
		</para>
	      </listitem>
	    </varlistentry>
	  </variablelist>

	  <para>
	    As a special case, <quote><literal>install</literal></quote> with no
	    arguments will act on any stored/pending actions.
	  </para>

	  <note>
	    <para>
	      Once you enter <userinput>Y</userinput> at the final
	      confirmation prompt, the
	      <quote><literal>install</literal></quote> command will
	      modify &aptitude;'s stored information about what
	      actions to perform.  Therefore, if you issue (e.g.) the
	      command <quote><literal>aptitude install foo
	      bar</literal></quote> and then abort the installation
	      once &aptitude; has started downloading and installing
	      packages, you will need to run <quote><literal>aptitude
	      remove foo bar</literal></quote> to cancel that order.
	    </para>
	  </note>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>remove</literal>, <literal>purge</literal>, <literal>hold</literal>, <literal>unhold</literal>, <literal>keep</literal>, <literal>reinstall</literal></term>

	<listitem>
	  <para>
	    These commands are the same as
	    <quote><literal>install</literal></quote>, but apply the
	    named action to all packages given on the command line for
	    which it is not <link
	    linkend='parOverrideSpecifiers'>overridden</link>.  The
	    difference between <literal>hold</literal> and
	    <literal>keep</literal> is that <literal>hold</literal>
	    will cause a package to be ignored by future <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>
	    or <link
	    linkend='manpageFullUpgrade'><literal>full-upgrade</literal></link>
	    commands, while <literal>keep</literal> merely cancels any
	    scheduled actions on the package.
	    <literal>unhold</literal> will allow a package to be
	    upgraded by future <literal>safe-upgrade</literal> or
	    <link
	    linkend='manpageFullUpgrade'><literal>full-upgrade</literal></link>
	    commands, without otherwise altering its state.
	  </para>

	  <para>
	    For instance, <quote><literal>aptitude remove
	    '~ndeity'</literal></quote> will remove all packages
	    whose name contains <quote><literal>deity</literal></quote>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>markauto</literal>, <literal>unmarkauto</literal></term>

	<listitem>
	  <para>
	    Mark packages as automatically installed or manually
	    installed, respectively.  Packages are specified in
	    exactly the same way as for the <quote><literal>install</literal></quote> command.
	    For instance, <quote><literal>aptitude markauto
	    '~slibs'</literal></quote> will mark all packages in
	    the <quote><literal>libs</literal></quote> section as
	    having been automatically installed.
	  </para>

	  <para>
	    For more information on automatically installed
	    packages, see the section <quote><link
	    linkend='secAutoInstall'>Managing Automatically
	    Installed Packages</link></quote> in the &aptitude;
	    reference manual.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>build-depends</literal>, <literal>build-dep</literal></term>

	<listitem>
	  <para>
	    Satisfy the build-dependencies of a package.  Each package
	    name may be a source package, in which case the build
	    dependencies of that source package are installed;
	    otherwise, binary packages are found in the same way as
	    for the <quote><literal>install</literal></quote> command,
	    and the build-dependencies of the source packages that
	    build those binary packages are satisfied.
	  </para>

	  <para>
	    If the command-line parameter
	    <literal>--arch-only</literal> is present, only
	    architecture-dependent build dependencies (i.e., not
	    <literal>Build-Depends-Indep</literal> or
	    <literal>Build-Conflicts-Indep</literal>) will be
	    obeyed.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>forbid-version</literal></term>

	<listitem>
	  <para>
	    Forbid a package from being upgraded to a particular
	    version.  This will prevent &aptitude; from
	    automatically upgrading to this version, but will
	    allow automatic upgrades to future versions.  By
	    default, &aptitude; will select the version to which the
	    package would normally be upgraded; you may override
	    this selection by appending <quote><literal>=<replaceable>version</replaceable></literal></quote>
	    to the package name: for instance, <quote><literal>aptitude forbid-version
	    vim=1.2.3.broken-4</literal></quote>.
	  </para>

	  <para>
	    This command is useful for avoiding broken versions of
	    packages without having to set and clear manual holds.
	    If you decide you really want the forbidden version
	    after all, <quote><literal>aptitude install <replaceable>package</replaceable></literal></quote> will
	    remove the ban.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>update</literal></term>

	<listitem>
	  <para>
	    Updates the list of available packages from the &apt;
	    sources (this is equivalent to <quote><literal>apt-get
	    update</literal></quote>)
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='manpageSafeUpgrade'>
	<term><literal>safe-upgrade</literal></term>

	<listitem>
	  <para>
	    Upgrades installed packages to their most recent version.
	    Installed packages will not be removed unless they are
	    unused (see the section <quote><link
	    linkend='secAutoInstall'>Managing Automatically Installed
	    Packages</link></quote> in the &aptitude; reference
	    manual).  Packages which are not currently installed may
	    be installed to resolve dependencies unless the <link
	    linkend='cmdlineOptionNoNewInstalls'><literal>--no-new-installs</literal></link>
	    command-line option is supplied.
	  </para>

	  <para>
	    If no <replaceable>package</replaceable>s are listed on
	    the command line, &aptitude; will attempt to upgrade every
	    package that can be upgraded.  Otherwise, &aptitude; will
	    attempt to upgrade only the packages which it is
	    instructed to upgrade.  The
	    <replaceable>package</replaceable>s can be extended with
	    suffixes in the same manner as arguments to
	    <literal>aptitude install</literal>, so you can also give
	    additional instructions to &aptitude; here; for instance,
	    <literal>aptitude safe-upgrade bash dash-</literal> will
	    attempt to upgrade the <systemitem>bash</systemitem>
	    package and remove the <systemitem>dash</systemitem>
	    package.
	  </para>

	  <para>
	      It is sometimes necessary to remove one package in order
	      to upgrade another; this command is not able to upgrade
	      packages in such situations.  Use the <link
	      linkend='manpageFullUpgrade'><literal>full-upgrade</literal></link>
	      command to upgrade as many packages as possible.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='manpageFullUpgrade'>
	<term><literal>full-upgrade</literal></term>

	<listitem>
	  <para>
	    Upgrades installed packages to their most recent version,
	    removing or installing packages as necessary.  This
	    command is less conservative than <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>
	    and thus more likely to perform unwanted actions.
	    However, it is capable of upgrading packages that <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>
	    cannot upgrade.
	  </para>

	  <para>
	    If no <replaceable>package</replaceable>s are listed on
	    the command line, &aptitude; will attempt to upgrade every
	    package that can be upgraded.  Otherwise, &aptitude; will
	    attempt to upgrade only the packages which it is
	    instructed to upgrade.  The
	    <replaceable>package</replaceable>s can be extended with
	    suffixes in the same manner as arguments to
	    <literal>aptitude install</literal>, so you can also give
	    additional instructions to &aptitude; here; for instance,
	    <literal>aptitude full-upgrade bash dash-</literal> will
	    attempt to upgrade the <systemitem>bash</systemitem>
	    package and remove the <systemitem>dash</systemitem>
	    package.
	  </para>

	  <note>
	    <para>
	      This command was originally named
	      <literal>dist-upgrade</literal> for historical reasons,
	      and &aptitude; still recognizes
	      <literal>dist-upgrade</literal> as a synonym for
	      <literal>full-upgrade</literal>.
	    </para>
	  </note>
	</listitem>
      </varlistentry>

      <varlistentry id='manpageKeepAll'>
	<term><literal>keep-all</literal></term>

	<listitem>
	  <para>
	    Cancels all scheduled actions on all packages; any
	    packages whose sticky state indicates an installation,
	    removal, or upgrade will have this sticky state cleared.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineForgetNew'>
	<term><literal>forget-new</literal></term>

	<listitem>
	  <para>
	    Forgets all internal information about what packages
	    are <quote>new</quote> (equivalent to pressing <quote><keycap>f</keycap></quote> when in visual
	    mode).
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineSearch'>
	<term><literal>search</literal></term>

	<listitem>
	  <para>
	    Searches for packages matching one of the patterns
	    supplied on the command line.  All packages which
	    match any of the given patterns will be displayed; for
	    instance, <quote><literal>aptitude search
	    '~N' edit</literal></quote> will list all <quote>new</quote> packages and all packages whose name contains <quote>edit</quote>.  For more information on
	    search patterns, see the section <quote><link
	    linkend='secSearchPatterns'>Search
	    Patterns</link></quote> in the &aptitude; reference
	    manual.
	  </para>

          <note>
            <para>
              In the example above, <quote><literal>aptitude search
              '~N' edit</literal></quote> has two arguments after
              <literal>search</literal> and thus is searching for
              <emphasis>two</emphasis> patterns:
              <quote><literal>~N</literal></quote> and
              <quote><literal>edit</literal></quote>.  As described in
              the <link linkend='secSearchPatterns'>search pattern
              reference</link>, a <emphasis>single</emphasis> pattern
              composed of two sub-patterns separated by a space (such
              as <quote><literal>~N edit</literal></quote>) matches
              only if <emphasis>both</emphasis> patterns match.  Thus,
              the command <quote><literal>aptitude search '~N
              edit'</literal></quote> will only show
              <quote>new</quote> packages whose name contains
              <quote>edit</quote>.
            </para>
          </note>

	  <para>
	    Unless you pass the <link
	    linkend='cmdlineOptionFormat'><literal>-F</literal></link> option, the output of
	    <literal>aptitude search</literal> will look something
	    like this:
	  </para>

	  <screen>i   apt                             - Advanced front-end for dpkg
pi  apt-build                       - frontend to apt to build, optimize and in
cp  apt-file                        - APT package searching utility -- command-
ihA raptor-utils                    - Raptor RDF Parser utilities</screen>

          <para>
	    Each search result is listed on a separate line.  The
	    first character of each line indicates the current state
	    of the package: the most common states are
	    <literal>p</literal>, meaning that no trace of the package
	    exists on the system, <literal>c</literal>, meaning that
	    the package was deleted but its configuration files remain
	    on the system, <literal>i</literal>, meaning that the
	    package is installed, and <literal>v</literal>, meaning
	    that the package is virtual.  The second character
	    indicates the stored action (if any; otherwise a blank
	    space is displayed) to be performed on the package, with
	    the most common actions being <literal>i</literal>,
	    meaning that the package will be installed,
	    <literal>d</literal>, meaning that the package will be
	    deleted, and <literal>p</literal>, meaning that the
	    package and its configuration files will be removed.  If
	    the third character is <literal>A</literal>, the package
	    was automatically installed.
	  </para>

	  <para>
	    For a complete list of the possible state and action
	    flags, see the section <quote><link
	    linkend='secAccessingPackageInformation'>Accessing Package
	    Information</link></quote> in the &aptitude; reference
	    guide.  To customize the output of
	    <literal>search</literal>, see the command-line options
	    <link
	    linkend='cmdlineOptionFormat'><literal>-F</literal></link>
	    and <link
	    linkend='cmdlineOptionSort'><literal>--sort</literal></link>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>show</literal></term>

	<listitem>
	  <para>
	    Displays detailed information about one or more packages,
	    listed following the search command.  If a package name
	    contains a tilde character
	    (<quote><literal>~</literal></quote>) or a question mark
	    (<quote><literal>?</literal></quote>), it will be treated
	    as a search pattern and all matching packages will be
	    displayed (see the section <quote><link
	    linkend='secSearchPatterns'>Search Patterns</link></quote>
	    in the &aptitude; reference manual).
	  </para>

	  <para>
	    If the verbosity level is 1 or greater (i.e., at least one <literal>-v</literal>
	    is present on the command-line), information about all
	    versions of the package is displayed.  Otherwise, information about
	    the <quote>candidate version</quote> (the version
	    that <quote><literal>aptitude install</literal></quote>
	    would download) is displayed.
	  </para>

	  <para>
	    You can display information about a different version of
	    the package by appending
	    <literal>=<replaceable>version</replaceable></literal> to
	    the package name; you can display the version from a
	    particular archive or release by appending
	    <literal>/<replaceable>archive</replaceable></literal> or
	    <literal>/<replaceable>release</replaceable></literal> to
	    the package name: for instance,
	    <literal>/unstable</literal> or <literal>/sid</literal>.
	    If either of these is present, then only the version you
	    request will be displayed, regardless of the verbosity
	    level.
	  </para>

	  <para>
	    If the verbosity level is 1 or greater, the package's
	    architecture, compressed size, filename, and md5sum fields
	    will be displayed.  If the verbosity level is 2 or
	    greater, the select version or versions will be displayed
	    once for each archive in which they are found.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineVersions'>
        <term><literal>versions</literal></term>

        <listitem>
          <para>
            Displays the versions of the packages listed on the
            command-line.
          </para>

          <screen>$ aptitude versions wesnoth
p   1:1.4.5-1                                                             100
p   1:1.6.5-1                                    unstable                 500
p   1:1.7.14-1                                   experimental             1</screen>

          <para>
            Each version is listed on a separate line.  The leftmost
            three characters indicate the current state, planned state
            (if any), and whether the package was automatically
            installed; for more information on their meanings, see
            <link linkend='cmdlineSearch'>the documentation of
            <literal>aptitude search</literal></link>.  To the right
            of the version number you can find the releases from which
            the version is available, and the pin priority of the
            version.
          </para>

          <para>
            If a package name contains a tilde character
            (<quote><literal>~</literal></quote>) or a question mark
            (<quote><literal>?</literal></quote>), it will be treated
            as a search pattern and all matching
            <emphasis>versions</emphasis> will be displayed (see the
            section <quote><link linkend='secSearchPatterns'>Search
            Patterns</link></quote> in the &aptitude; reference
            manual).  This means that, for instance, <literal>aptitude
            versions '~i'</literal> will display all the versions that
            are currently installed on the system and nothing else,
            not even other versions of the same packages.
          </para>

          <screen>$ aptitude versions '~nexim4-daemon-light'
Package exim4-daemon-light:
i   4.71-3                                                                100
p   4.71-4                                       unstable                 500

Package exim4-daemon-light-dbg:
p   4.71-4                                       unstable                 500</screen>

          <para>
            If the input is a search pattern, or if more than one
            package's versions are to be displayed, &aptitude; will
            automatically group the output by package, as shown above.
            You can disable this via <literal><link
            linkend='cmdlineGroupBy'>--group-by</link>=none</literal>,
            in which case &aptitude; will display a single list of all
            the versions that were found and automatically include the
            package name in each output line:
          </para>

          <screen>$ aptitude versions --group-by=none '~nexim4-daemon-light'
i   exim4-daemon-light 4.71-3                                             100
p   exim4-daemon-light 4.71-4                    unstable                 500
p   exim4-daemon-light-dbg 4.71-4                unstable                 500</screen>

          <para>
            To disable the package name, pass
            <literal><link linkend='cmdlineShowPackageNames'>--show-package-names</link>=never</literal>:
          </para>

          <screen>$ aptitude versions --show-package-names=never --group-by=none '~nexim4-daemon-light'
i   4.71-3                                                                100
p   4.71-4                                       unstable                 500
p   4.71-4                                       unstable                 500</screen>


          <para>
            In addition to the above options, the information printed
            for each version can be controlled by the command-line
            option <link
            linkend='cmdlineOptionFormat'><literal>-F</literal></link>.
            The order in which versions are displayed can be
            controlled by the command-line option <link
            linkend='cmdlineOptionSort'><literal>--sort</literal></link>.
            To prevent &aptitude; from formatting the output into
            columns, use <link
            linkend='cmdlineOptionDisableColumns'><literal>--disable-columns</literal></link>.
          </para>
        </listitem>
      </varlistentry>

      <varlistentry id='cmdlineAddOrRemoveUserTags'>
	<term><literal>add-user-tag</literal>, <literal>remove-user-tag</literal></term>

	<listitem>
	  <para>
	    Adds a user tag to or removes a user tag from the selected
	    group of packages.  If a package name contains a tilde
	    (<quote><literal>~</literal></quote>) or question mark
	    (<quote><literal>?</literal></quote>), it is treated as a
	    search pattern and the tag is added to or removed from all
	    the packages that match the pattern (see the section
	    <quote><link linkend='secSearchPatterns'>Search
	    Patterns</link></quote> in the &aptitude; reference
	    manual).
	  </para>

	  <para>
	    User tags are arbitrary strings associated with a package.
	    They can be used with the <link
	    linkend='searchUserTag'><literal>?user-tag(<replaceable>tag</replaceable>)</literal></link>
	    search term, which will select all the packages that have
	    a user tag matching <replaceable>tag</replaceable>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>why</literal>, <literal>why-not</literal></term>

	<listitem>
	  <para>
	    Explains the reason that a particular package should or
	    cannot be installed on the system.
	  </para>

	  <para>
	    This command searches for packages that require or
	    conflict with the given package.  It displays a sequence
	    of dependencies leading to the target package, along with
	    a note indicating the installed state of each package in
	    the dependency chain:
	  </para>

	  <screen>$ aptitude why kdepim
i   nautilus-data Recommends nautilus
i A nautilus      Recommends desktop-base (>= 0.2)
i A desktop-base  Suggests   gnome | kde | xfce4 | wmaker
p   kde           Depends    kdepim (>= 4:3.4.3)</screen>

	  <para>
	    The command <literal>why</literal> finds a dependency
	    chain that installs the package named on the command line,
	    as above.  Note that the dependency that &aptitude; produced
	    in this case is only a suggestion.  This is because no
	    package currently installed on this computer depends on or
	    recommends the <systemitem>kdepim</systemitem> package; if
	    a stronger dependency were available, &aptitude; would have
	    displayed it.
	  </para>

	  <para>
	    In contrast, <literal>why-not</literal> finds a
	    dependency chain leading to a conflict
	    with the target package:
	  </para>

	  <screen>$ aptitude why-not textopo
i   ocaml-core          Depends   ocamlweb
i A ocamlweb            Depends   tetex-extra | texlive-latex-extra
i A texlive-latex-extra Conflicts textopo</screen>

	  <para>
	    If one or more <replaceable>pattern</replaceable>s are
	    present, then &aptitude; will begin its search at these
	    patterns; that is, the first package in the chain it
	    prints will be a package matching the pattern in question.
	    The patterns are considered to be package names unless
	    they contain a tilde character
	    (<quote><literal>~</literal></quote>) or a question mark
	    (<quote><literal>?</literal></quote>), in which case they
	    are treated as search patterns (see the section
	    <quote><link linkend='secSearchPatterns'>Search
	    Patterns</link></quote> in the &aptitude; reference
	    manual).
	  </para>

	  <para>
	    If no patterns are present, then &aptitude; will search
	    for dependency chains beginning at manually installed
	    packages.  This effectively shows the packages that have
	    caused or would cause a given package to be installed.
	  </para>

	  <note>
	    <para>
	      <literal>aptitude why</literal> does not perform full
	      dependency resolution; it only displays direct
	      relationships between packages.  For instance, if A
	      requires B, C requires D, and B and C conflict,
	      <quote><literal>aptitude why-not D</literal></quote>
	      will not produce the answer <quote>A depends on B, B
	      conflicts with C, and D depends on C</quote>.
	    </para>
	  </note>

	  <para>
	    By default &aptitude; outputs only the <quote>most
	    installed, strongest, tightest, shortest</quote>
	    dependency chain.  That is, it looks for a chain that only
	    contains packages which are installed or will be
	    installed; it looks for the strongest possible
	    dependencies under that restriction; it looks for chains
	    that avoid ORed dependencies and Provides; and it looks
	    for the shortest dependency chain meeting those criteria.
	    These rules are progressively weakened until a match is
	    found.
	  </para>

	  <para>
	    If the verbosity level is 1 or more, then
	    <emphasis>all</emphasis> the explanations &aptitude; can
	    find will be displayed, in inverse order of relevance.  If
	    the verbosity level is 2 or more, a truly excessive amount
	    of debugging information will be printed to standard
	    output.
	  </para>

	  <para>
	    This command returns 0 if successful, 1 if no explanation
	    could be constructed, and -1 if an error occurred.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>clean</literal></term>

	<listitem>
	  <para>
	    Removes all previously downloaded <literal>.deb</literal> files from the package cache
	    directory (usually <filename>/var/cache/apt/archives</filename>).
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>autoclean</literal></term>

	<listitem>
	  <para>
	    Removes any cached packages which can no longer be
	    downloaded.  This allows you to prevent a cache from
	    growing out of control over time without completely
	    emptying it.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>changelog</literal></term>

	<listitem>
	  <para>
	    Downloads and displays the Debian changelog for each of
	    the given source or binary packages.
	  </para>

	  <para>
	    By default, the changelog for the version which would be
	    installed with <quote><literal>aptitude
	    install</literal></quote> is downloaded.  You can select a
	    particular version of a package by appending
	    <literal>=<replaceable>version</replaceable></literal> to
	    the package name; you can select the version from a
	    particular archive or release by appending
	    <literal>/<replaceable>archive</replaceable></literal> or
	    <literal>/<replaceable>release</replaceable></literal> to
	    the package name (for instance,
	    <literal>/unstable</literal> or <literal>/sid</literal>).
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>download</literal></term>

	<listitem>
	  <para>
	    Downloads the <literal>.deb</literal> file for the given
	    package to the current directory.  If a package name
	    contains a tilde character
	    (<quote><literal>~</literal></quote>) or a question mark
	    (<quote><literal>?</literal></quote>), it will be treated
	    as a search pattern and all the matching packages will be
	    downloaded (see the section <quote><link
	    linkend='secSearchPatterns'>Search Patterns</link></quote>
	    in the &aptitude; reference manual).
	  </para>

	  <para>
	    By default, the version which would be installed with
	    <quote><literal>aptitude install</literal></quote> is
	    downloaded.  You can select a particular version of a
	    package by appending
	    <literal>=<replaceable>version</replaceable></literal> to
	    the package name; you can select the version from a
	    particular archive or release by appending
	    <literal>/<replaceable>archive</replaceable></literal> or
	    <literal>/<replaceable>release</replaceable></literal> to
	    the package name (for instance:
	    <literal>/unstable</literal> or <literal>/sid</literal>).
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>extract-cache-subset</literal></term>

	<listitem>
	  <para>
	    Copy the &apt; configuration directory
	    (<literal>/etc/apt</literal>) and a subset of the package
	    database to the specified directory.  If no packages are
	    listed, the entire package database is copied; otherwise
	    only the entries corresponding to the named packages are
	    copied.  Each package name may be a search pattern, and
	    all the packages matching that pattern will be selected
	    (see the section <quote><link
	    linkend='secSearchPatterns'>Search Patterns</link></quote>
	    in the &aptitude; reference manual).  Any existing package
	    database files in the output directory will be
	    overwritten.
	  </para>

	  <para>
	    Dependencies in binary package stanzas will be rewritten
	    to remove references to packages not in the selected set.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>help</literal></term>

	<listitem>
	  <para>
	    Displays a brief summary of the available commands and
	    options.
	  </para>
	</listitem>
      </varlistentry>
    </variablelist>
  </refsect1>

  <refsect1>
    <title>Options</title>

    <para>
      The following options may be used to modify the behavior of
      the actions described above.  Note that while all options
      will be accepted for all commands, some options don't apply
      to particular commands and will be ignored by those
      commands.
    </para>

    <variablelist>

      <varlistentry>
	<term><literal>--add-user-tag <replaceable>tag</replaceable></literal></term>

	<listitem>
	  <para>
	    For <literal>full-upgrade</literal>,
	    <literal>safe-upgrade</literal>,
	    <literal>forbid-version</literal>,
	    <literal>hold</literal>, <literal>install</literal>,
	    <literal>keep-all</literal>, <literal>markauto</literal>,
	    <literal>unmarkauto</literal>, <literal>purge</literal>,
	    <literal>reinstall</literal>, <literal>remove</literal>,
	    <literal>unhold</literal>, and
	    <literal>unmarkauto</literal>: add the user tag
	    <replaceable>tag</replaceable> to all packages that are
	    installed, removed, or upgraded by this command as if with
	    the <link
	    linkend='cmdlineAddOrRemoveUserTags'><literal>add-user-tag</literal></link>
	    command.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--add-user-tag-to <replaceable>tag</replaceable>,<replaceable>pattern</replaceable></literal></term>

	<listitem>
	  <para>
	    For <literal>full-upgrade</literal>, <literal>safe-upgrade</literal>
	    <literal>forbid-version</literal>,
	    <literal>hold</literal>, <literal>install</literal>,
	    <literal>keep-all</literal>, <literal>markauto</literal>,
	    <literal>unmarkauto</literal>, <literal>purge</literal>,
	    <literal>reinstall</literal>, <literal>remove</literal>,
	    <literal>unhold</literal>, and
	    <literal>unmarkauto</literal>: add the user tag
	    <replaceable>tag</replaceable> to all packages that match
	    <replaceable>pattern</replaceable> as if with the <link
	    linkend='cmdlineAddOrRemoveUserTags'><literal>add-user-tag</literal></link>
	    command.  The pattern is a search pattern as described in
	    the section <quote><link
	    linkend='secSearchPatterns'>Search Patterns</link></quote>
	    in the &aptitude; reference manual.
	  </para>

	  <para>
	    For instance, <literal>aptitude safe-upgrade
	    --add-user-tag-to "new-installs,?action(install)"</literal>
	    will add the tag <literal>new-installs</literal> to all
	    the packages installed by the <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>
	    command.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--allow-new-upgrades</literal></term>

	<listitem>
	  <para>
	    When the safe resolver is being used (i.e., <link
	    linkend='cmdlineSafeResolver'><literal>--safe-resolver</literal></link>
	    was passed, the action is <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>,
	    or <link
	    linkend='configAlways-Use-Safe-Resolver'><literal>Aptitude::Always-Use-Safe-Resolver</literal></link>
	    is set to <literal>true</literal>), allow the dependency
	    resolver to install upgrades for packages regardless of
	    the value of <link
	    linkend='configSafe-Resolver-No-New-Upgrades'><literal>Aptitude::Safe-Resolver::No-New-Upgrades</literal></link>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--allow-new-installs</literal></term>

	<listitem>
	  <para>
	    Allow the <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>
	    command to install new packages; when the safe resolver is
	    being used (i.e., <link
	    linkend='cmdlineSafeResolver'><literal>--safe-resolver</literal></link>
	    was passed, the action is <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>,
	    or <link
	    linkend='configAlways-Use-Safe-Resolver'><literal>Aptitude::Always-Use-Safe-Resolver</literal></link>
	    is set to <literal>true</literal>), allow the dependency
	    resolver to install new packages.  This option takes
	    effect regardless of the value of <link
	    linkend='configSafe-Resolver-No-New-Installs'><literal>Aptitude::Safe-Resolver::No-New-Installs</literal></link>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--allow-untrusted</literal></term>

	<listitem>
	  <para>
	    Install packages from untrusted sources without prompting.
	    You should only use this if you know what you are doing,
	    as it could easily compromise your system's security.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionDisableColumns'>
	<term><literal>--disable-columns</literal></term>

	<listitem>
	  <para>
	    This option causes <literal>aptitude search</literal> and
	    <literal>aptitude versions</literal> to
	    output their results without any special formatting.  In
	    particular: normally &aptitude; will add whitespace or
	    truncate search results in an attempt to fit its results
	    into vertical <quote>columns</quote>.  With this flag,
	    each line will be formed by replacing any format escapes
	    in the format string with the corresponding text; column
	    widths will be ignored.
	  </para>

	  <para>
	    For instance, the first few lines of output from <quote><literal>aptitude search -F '%p %V' --disable-columns libedataserver</literal></quote> might be:
	  </para>

	  <screen>disksearch 1.2.1-3
hp-search-mac 0.1.3
libbsearch-ruby 1.5-5
libbsearch-ruby1.8 1.5-5
libclass-dbi-abstractsearch-perl 0.07-2
libdbix-fulltextsearch-perl 0.73-10</screen>

          <para>
            As in the above example,
            <literal>--disable-columns</literal> is often useful in
            combination with a custom display format set using the
            command-line option <link
            linkend='cmdlineOptionFormat'><literal>-F</literal></link>.
	  </para>

	  <para>
	    This corresponds to the configuration option
	    <literal><link
	    linkend='configCmdLine-Disable-Columns'>Aptitude::CmdLine::Disable-Columns</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-D</literal>, <literal>--show-deps</literal></term>

	<listitem>
	  <para>
	    For commands that will install or remove packages
	    (<literal>install</literal>, <link
	    linkend='manpageFullUpgrade'><literal>full-upgrade</literal></link>,
	    etc), show brief explanations of automatic installations
	    and removals.
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link linkend='configCmdLine-Show-Deps'>Aptitude::CmdLine::Show-Deps</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-d</literal>, <literal>--download-only</literal></term>

	<listitem>
	  <para>
	    Download packages to the package cache as necessary, but
	    do not install or remove anything.  By default, the
	    package cache is stored in
	    <filename>/var/cache/apt/archives</filename>.
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link
	    linkend='configCmdLine-Download-Only'>Aptitude::CmdLine::Download-Only</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionFormat'>
	<term>
	  <literal>-F</literal> <replaceable>format</replaceable>, <literal>--display-format</literal> <replaceable>format</replaceable>
	</term>

	<listitem>
	  <para>
	    Specify the format which should be used to display
	    output from the <literal>search</literal> and
            <literal>versions</literal> commands.
	    For instance, passing <quote><literal>%p %V %v</literal></quote>
	    for <replaceable>format</replaceable> will display a package's name,
	    followed by its currently installed version and its
	    available version (see the section <quote><link linkend='secDisplayFormat'>Customizing how packages are displayed</link></quote> in the &aptitude; reference manual for more information).
	  </para>

	  <para>
	    The command-line option <link
	    linkend='cmdlineOptionDisableColumns'><literal>--disable-columns</literal></link>
	    is often useful in combination with <literal>-F</literal>.
	  </para>

	  <para>
	    For <literal>search</literal>, this corresponds to the configuration option <literal><link linkend='configCmdLine-Package-Display-Format'>Aptitude::CmdLine::Package-Display-Format</link></literal>;
            for <literal>versions</literal>, this corresponds to the
            configuration option <literal><link linkend='configCmdLine-Version-Display-Format'>Aptitude::CmdLine::Version-Display-Format</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-f</literal></term>

	<listitem>
	  <para>
	    Try hard to fix the dependencies of broken packages, even
	    if it means ignoring the actions requested on the command
	    line.
	  </para>

	  <para>
	    This corresponds to the configuration item <literal><link linkend='configCmdLine-Fix-Broken'>Aptitude::CmdLine::Fix-Broken</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineFullResolver'>
	<term><literal>--full-resolver</literal></term>

	<listitem>
	  <para>
	    When package dependency problems are encountered, use the
	    default <quote>full</quote> resolver to solve them.
	    Unlike the <quote>safe</quote> resolver activated by <link
	    linkend='cmdlineSafeResolver'><literal>--safe-resolver</literal></link>,
	    the full resolver will happily remove packages to fulfill
	    dependencies.  It can resolve more situations than the
	    safe algorithm, but its solutions are more likely to be
	    undesirable.
	  </para>

	  <para>
	    This option can be used to force the use of the full
	    resolver even when <link
	    linkend='configAlways-Use-Safe-Resolver'><literal>Aptitude::Always-Use-Safe-Resolver</literal></link>
	    is true.  The <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>
	    command never uses the full resolver and does not accept
	    the <literal>--full-resolver</literal> option.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineGroupBy'>
        <term>
          <literal>--group-by</literal> <replaceable>grouping-mode</replaceable>
        </term>

        <listitem>
          <para>
            Control how the <link
            linkend='cmdlineVersions'><literal>versions</literal></link>
            command groups its output.  The following values are
            recognized:
          </para>

          <itemizedlist>
            <listitem>
              <para>
                <literal>archive</literal> to group packages by the
                archive they occur in
                (<quote><literal>stable</literal></quote>,
                <quote><literal>unstable</literal></quote>, etc).  If
                a package occurs in several archives, it will be
                displayed in each of them.
              </para>
            </listitem>

            <listitem>
              <para>
                <literal>auto</literal> to group versions by their
                package unless there is exactly one argument and it is
                not a search pattern.
              </para>
            </listitem>

            <listitem>
              <para>
                <literal>none</literal> to display all the versions in
                a single list without any grouping.
              </para>
            </listitem>

            <listitem>
              <para>
                <literal>package</literal> to group versions by their
                package.
              </para>
            </listitem>

            <listitem>
              <para>
                <literal>source-package</literal> to group versions by
                their source package.
              </para>
            </listitem>

            <listitem>
              <para>
                <literal>source-version</literal> to group versions by
                their source package and source version.
              </para>
            </listitem>
          </itemizedlist>

          <para>
            This corresponds to the configuration option
            <literal><link
            linkend='configCmdLine-Versions-Group-By'>Aptitude::CmdLine::Versions-Group-By</link></literal>.
          </para>
        </listitem>
      </varlistentry>

      <varlistentry>
	<term>
	  <literal>-h</literal>, <literal>--help</literal>
	</term>

	<listitem>
	  <para>
	    Display a brief help message.  Identical to the <literal>help</literal> action.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionLogFile'>
	<term>
	  <literal>--log-file=<replaceable>file</replaceable></literal>
	</term>

	<listitem>
	  <para>
	    If <replaceable>file</replaceable> is a nonempty string,
	    log messages will be written to it, except that if
	    <replaceable>file</replaceable> is
	    <quote><literal>-</literal></quote>, the messages will be
	    written to standard output instead.  If this option
	    appears multiple times, the last occurrence is the one
	    that will take effect.
	  </para>

	  <para>
	    This does not affect the log of installations that
	    &aptitude; has performed
	    (<filename>/var/log/aptitude</filename>); the log messages
	    written using this configuration include internal program
	    events, errors, and debugging messages.  See the
	    command-line option <link
	    linkend='cmdlineOptionLogLevel'><literal>--log-level</literal></link>
	    to get more control over what gets logged.
	  </para>

	  <para>
	    This corresponds to the configuration option <link
	    linkend='configLoggingFile'><literal>Aptitude::Logging::File</literal></link>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionLogLevel'>
	<term>
	  <literal>--log-level=<replaceable>level</replaceable></literal>, <literal>--log-level=<replaceable>category</replaceable>:<replaceable>level</replaceable></literal>
	</term>

	<listitem>
	  <para>
	    <literal>--log-level=<replaceable>level</replaceable></literal>
	    causes &aptitude; to only log messages whose level is
	    <replaceable>level</replaceable> or higher.  For instance,
	    setting the log level to <literal>error</literal> will
	    cause only messages at the log levels
	    <literal>error</literal> and <literal>fatal</literal> to
	    be displayed; all others will be hidden.  Valid log levels
	    (in descending order) are <literal>off</literal>,
	    <literal>fatal</literal>, <literal>error</literal>,
	    <literal>warn</literal>, <literal>info</literal>,
	    <literal>debug</literal>, and <literal>trace</literal>.
	    The default log level is <literal>warn</literal>.
	  </para>

	  <para>
	    <literal>--log-level=<replaceable>category</replaceable>:<replaceable>level</replaceable></literal>
	    causes messages in <replaceable>category</replaceable> to
	    only be logged if their level is
	    <replaceable>level</replaceable> or higher.
	  </para>

	  <para>
	    <literal>--log-level</literal> may appear multiple times
	    on the command line; the most specific setting is the one
	    that takes effect, so if you pass
	    <literal>--log-level=aptitude.resolver:fatal</literal> and
	    <literal>--log-level=aptitude.resolver.hints.match:trace</literal>,
	    then messages in
	    <literal>aptitude.resolver.hints.parse</literal> will only
	    be printed if their level is <literal>fatal</literal>, but
	    all messages in
	    <literal>aptitude.resolver.hints.match</literal> will be
	    printed.  If you set the level of the same category two or
	    more times, the last setting is the one that will take
	    effect.
	  </para>

	  <para>
	    This does not affect the log of installations that
	    &aptitude; has performed
	    (<filename>/var/log/aptitude</filename>); the log messages
	    written using this configuration include internal program
	    events, errors, and debugging messages.  See the
	    command-line option <link
	    linkend='cmdlineOptionLogLevel'><literal>--log-file</literal></link>
	    to change where log messages go.
	  </para>

	  <para>
	    This corresponds to the configuration group <link
	    linkend='configLoggingLevels'><literal>Aptitude::Logging::Levels</literal></link>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionLogResolver'>
	<term>
	  <literal>--log-resolver</literal>
	</term>

	<listitem>
	  <para>
	    Set some standard log levels related to the resolver, to
	    produce logging output suitable for processing with
	    automated tools.  This is equivalent to the command-line
	    options
	    <literal>--log-level=aptitude.resolver.search:trace
	    --log-level=aptitude.resolver.search.tiers:info</literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionFixMissing'>
	<term>
          <literal>-m</literal>, <literal>--ignore-missing</literal>,
          <literal>--fix-missing</literal>
        </term>

	<listitem>
	  <para>
            If a package is unavailable or fails to download correctly
            try to continue installing packages without it.  The
            package will still be marked for later installation, as
            though <literal>--schedule-only</literal> had been used.
            Configuration Item: <literal><link
            linkend='configCmdLine-Fix-Missing'>Aptitude::CmdLine::Fix-Missing</link></literal>.
	  </para>

          <note>
            <para>
              This was the default behaviour in previous versions of
              &aptitude; however it caused problems when trying to
              detect errors using the exit status and was prone to
              resulting in undesired effects.
            </para>
          </note>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionNoNewInstalls'>
	<term>
	  <literal>--no-new-installs</literal>
	</term>

	<listitem>
	  <para>
	    Prevent <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>
	    from installing any new packages; when the safe resolver
	    is being used (i.e., <link
	    linkend='cmdlineSafeResolver'><literal>--safe-resolver</literal></link>
	    was passed or <link
	    linkend='configAlways-Use-Safe-Resolver'><literal>Aptitude::Always-Use-Safe-Resolver</literal></link>
	    is set to <literal>true</literal>), forbid the dependency
	    resolver from installing new packages.  This option takes
	    effect regardless of the value of <link
	    linkend='configSafe-Resolver-No-New-Installs'><literal>Aptitude::Safe-Resolver::No-New-Installs</literal></link>.
	  </para>

	  <para>
	    This mimics the historical behavior of <command>apt-get
	    upgrade</command>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--no-new-upgrades</literal></term>

	<listitem>
	  <para>
	    When the safe resolver is being used (i.e., <link
	    linkend='cmdlineSafeResolver'><literal>--safe-resolver</literal></link>
	    was passed or <link
	    linkend='configAlways-Use-Safe-Resolver'><literal>Aptitude::Always-Use-Safe-Resolver</literal></link>
	    is set to <literal>true</literal>), forbid the dependency
	    resolver from installing upgrades for packages
            regardless of the value of <link
	    linkend='configSafe-Resolver-No-New-Upgrades'><literal>Aptitude::Safe-Resolver::No-New-Upgrades</literal></link>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionNoShowResolverActions'>
	<term><literal>--no-show-resolver-actions</literal></term>

	<listitem>
	  <para>
	    Do not display the actions performed by the
	    <quote>safe</quote> resolver, overriding any configuration
	    option or earlier
	    <link linkend='cmdlineOptionShowResolverActions'><literal>--show-resolver-actions</literal></link>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionSort'>
	<term><literal>-O</literal> <replaceable>order</replaceable>, <literal>--sort</literal> <replaceable>order</replaceable></term>

	<listitem>
	  <para>
	    Specify the order in which output from the <link linkend='cmdlineSearch'><literal>search</literal></link> and <link linkend='cmdlineVersions'><literal>versions</literal></link>
	    commands should be displayed.  For instance, passing <quote><literal>installsize</literal></quote>
	    for <replaceable>order</replaceable> will list packages in
	    order according to their size when installed (see the section <quote><link linkend='secSortingPolicy'>Customizing how packages are sorted</link></quote> in the &aptitude; reference manual for more information).
	  </para>

          <para>
            The default sort order is <literal>name,version</literal>.
          </para>

          <para>
            Configuration Item: <literal><link
            linkend='configCmdLine-Sorting'>Aptitude::CmdLine::Sorting</link></literal>
          </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-o</literal> <replaceable>key</replaceable><literal>=</literal><replaceable>value</replaceable></term>

	<listitem>
	  <para>
	    Set a configuration file option directly; for
	    instance, use <literal>-o
	    Aptitude::Log=/tmp/my-log</literal> to log &aptitude;'s
	    actions to <filename>/tmp/my-log</filename>.  For more
	    information on configuration file options, see the
	    section <quote><link
	    linkend='secConfigFile'>Configuration file
	    reference</link></quote> in the &aptitude; reference manual.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-P</literal>, <literal>--prompt</literal></term>

	<listitem>
	  <para>
	    Always display a prompt before downloading, installing or
	    removing packages, even when no actions other than those
	    explicitly requested will be performed.
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link
	    linkend='configCmdLine-Always-Prompt'>Aptitude::CmdLine::Always-Prompt</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--purge-unused</literal></term>

	<listitem>
	  <para>
	    If <literal><link
	    linkend='configDelete-Unused'>Aptitude::Delete-Unused</link></literal>
	    is set to <quote><literal>true</literal></quote> (its
	    default), then in addition to removing each package that
	    is no longer required by any installed package, &aptitude;
	    will also purge them, removing their configuration files
	    and perhaps other important data.  For more information
	    about which packages are considered to be
	    <quote>unused</quote>, see the section <quote><link
	    linkend='secAutoInstall'>Managing Automatically Installed
	    Packages</link></quote> in the &aptitude; reference
	    manual.  <emphasis>THIS OPTION CAN CAUSE DATA LOSS!  DO
	    NOT USE IT UNLESS YOU KNOW WHAT YOU ARE DOING!</emphasis>
	  </para>

	  <para>
	    This corresponds to the configuration option
	    <literal><link
	    linkend='configPurge-Unused'>Aptitude::Purge-Unused</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-q<optional>=<replaceable>n</replaceable></optional></literal>, <literal>--quiet<optional>=<replaceable>n</replaceable></optional></literal></term>

	<listitem>
	  <para>
	    Suppress all incremental progress indicators, thus making
	    the output loggable.  This may be supplied multiple times
	    to make the program quieter, but unlike &apt-get;,
	    &aptitude; does not enable <literal>-y</literal> when <literal>-q</literal>
	    is supplied more than once.
	  </para>


	  <para>
	    The optional <literal>=<replaceable>n</replaceable></literal>
	    may be used to directly set the amount of quietness (for
	    instance, to override a setting in <filename>/etc/apt/apt.conf</filename>);
	    it causes the program to behave as if <literal>-q</literal>
	    had been passed exactly <replaceable>n</replaceable>
	    times.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-R</literal>, <literal>--without-recommends</literal></term>

	<listitem>
	  <para>
	    Do <emphasis>not</emphasis> treat recommendations as
	    dependencies when installing new packages (this overrides settings in <filename>/etc/apt/apt.conf</filename> and <filename>~/.aptitude/config</filename>).
	    Packages previously installed due to recommendations
	    will not be removed.
	  </para>

	  <para>
	    This corresponds to the pair of configuration options <literal><link linkend='configAptInstall-Recommends'>Apt::Install-Recommends</link></literal> and <literal><link linkend='configApt-AutoRemove-RecommendsImportant'>Apt::AutoRemove::InstallRecommends</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-r</literal>, <literal>--with-recommends</literal></term>

	<listitem>
	  <para>
	    Treat recommendations as dependencies when installing
	    new packages (this overrides settings in <filename>/etc/apt/apt.conf</filename> and <filename>~/.aptitude/config</filename>).
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link linkend='configAptInstall-Recommends'>Apt::Install-Recommends</link></literal>
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--remove-user-tag <replaceable>tag</replaceable></literal></term>

	<listitem>
	  <para>
	    For <literal>full-upgrade</literal>,
	    <literal>safe-upgrade</literal>
	    <literal>forbid-version</literal>,
	    <literal>hold</literal>, <literal>install</literal>,
	    <literal>keep-all</literal>, <literal>markauto</literal>,
	    <literal>unmarkauto</literal>, <literal>purge</literal>,
	    <literal>reinstall</literal>, <literal>remove</literal>,
	    <literal>unhold</literal>, and
	    <literal>unmarkauto</literal>: remove the user tag
	    <replaceable>tag</replaceable> from all packages that are
	    installed, removed, or upgraded by this command as if with
	    the <link
	    linkend='cmdlineAddOrRemoveUserTags'><literal>add-user-tag</literal></link>
	    command.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--remove-user-tag-from <replaceable>tag</replaceable>,<replaceable>pattern</replaceable></literal></term>

	<listitem>
	  <para>
	    For <literal>full-upgrade</literal>,
	    <literal>safe-upgrade</literal>
	    <literal>forbid-version</literal>,
	    <literal>hold</literal>, <literal>install</literal>,
	    <literal>keep-all</literal>, <literal>markauto</literal>,
	    <literal>unmarkauto</literal>, <literal>purge</literal>,
	    <literal>reinstall</literal>, <literal>remove</literal>,
	    <literal>unhold</literal>, and
	    <literal>unmarkauto</literal>: remove the user tag
	    <replaceable>tag</replaceable> from all packages that
	    match <replaceable>pattern</replaceable> as if with the
	    <link
	    linkend='cmdlineAddOrRemoveUserTags'><literal>remove-user-tag</literal></link>
	    command.  The pattern is a search pattern as described in
	    the section <quote><link
	    linkend='secSearchPatterns'>Search Patterns</link></quote>
	    in the &aptitude; reference manual.
	  </para>

	  <para>
	    For instance, <literal>aptitude safe-upgrade
	    --remove-user-tag-from
	    "not-upgraded,?action(upgrade)"</literal> will remove the
	    <literal>not-upgraded</literal> tag from all packages that
	    the <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>
	    command is able to upgrade.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-s</literal>, <literal>--simulate</literal></term>

	<listitem>
	  <para>
	    In command-line mode, print the actions that would
	    normally be performed, but don't actually perform them.
	    This does not require &root; privileges.  In the visual
	    interface, always open the cache in read-only mode
	    regardless of whether you are &root;.
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link
	    linkend='configSimulate'>Aptitude::Simulate</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineSafeResolver'>
	<term><literal>--safe-resolver</literal></term>

	<listitem>
	  <para>
	    When package dependency problems are encountered, use a
	    <quote>safe</quote> algorithm to solve them.  This
	    resolver attempts to preserve as many of your choices as
	    possible; it will never remove a package or install a
	    version of a package other than the package's default
	    candidate version.  It is the same algorithm used in <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>;
	    indeed, <literal>aptitude --safe-resolver
	    full-upgrade</literal> is equivalent to <literal>aptitude
	    safe-upgrade</literal>.  Because
	    <literal>safe-upgrade</literal> always uses the safe
	    resolver, it does not accept the
	    <literal>--safe-resolver</literal> flag.
	  </para>

	  <para>
	    This option is equivalent to setting the configuration
	    variable <link
	    linkend='configAlways-Use-Safe-Resolver'><literal>Aptitude::Always-Use-Safe-Resolver</literal></link>
	    to <literal>true</literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--schedule-only</literal></term>

	<listitem>
	  <para>
	    For commands that modify package states, schedule
	    operations to be performed in the future, but don't
	    perform them.  You can execute scheduled actions by
	    running <literal>aptitude install</literal> with no
	    arguments.  This is equivalent to making the corresponding
	    selections in <link linkend='secUsingVisual'>visual
	    mode</link>, then exiting the program normally.
	  </para>

	  <para>
	    For instance, <literal>aptitude --schedule-only install
	    evolution</literal> will schedule the
	    <literal>evolution</literal> package for later
	    installation.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineShowPackageNames'>
        <term><literal>--show-package-names</literal> <replaceable>when</replaceable></term>

        <listitem>
          <para>
            Controls when the <link
            linkend='cmdlineVersions'><literal>versions</literal></link>
            command shows package names.  The following settings are
            allowed:
          </para>

          <itemizedlist>
            <listitem>
              <para>
                <literal>always</literal>: display package names every
                time that <literal>aptitude versions</literal> runs.
              </para>
            </listitem>

            <listitem>
              <para>
                <literal>auto</literal>: display package names when
                <literal>aptitude versions</literal> runs if the
                output is not grouped by package, and either there is
                a pattern-matching argument or there is more than one
                argument.
              </para>
            </listitem>

            <listitem>
              <para>
                <literal>never</literal>: never display package names
                in the output of <literal>aptitude versions</literal>.
              </para>
            </listitem>
          </itemizedlist>

          <para>
            This option corresponds to the configuration item <link
            linkend='configCmdLine-Versions-Show-Package-Names'><literal>Aptitude::CmdLine::Versions-Show-Package-Names</literal></link>.
          </para>
        </listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionShowResolverActions'>
	<term><literal>--show-resolver-actions</literal></term>

	<listitem>
	  <para>
	    Display the actions performed by the <quote>safe</quote>
	    resolver and by <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>.
	  </para>

	  <para>
	    When executing the command <link
	    linkend='manpageSafeUpgrade'><literal>safe-upgrade</literal></link>
	    or when the option <link
	    linkend='cmdlineSafeResolver'>--safe-resolver</link> is
	    present, &aptitude; will display a summary of the actions
	    performed by the resolver before printing the installation
	    preview.  This is equivalent to the configuration option <link
            linkend='configSafe-Resolver-Show-Resolver-Actions'><literal>Aptitude::Safe-Resolver::Show-Resolver-Actions</literal></link>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry id='cmdlineOptionShowSummary'>
	<term><literal>--show-summary<optional>=<replaceable>MODE</replaceable></optional></literal></term>

	<listitem>
	  <para>
	    Changes the behavior of <quote><literal>aptitude
	    why</literal></quote> to summarize each dependency chain
	    that it outputs, rather than displaying it in long form.
	    If this option is present and
	    <replaceable>MODE</replaceable> is not
	    <quote><literal>no-summary</literal></quote>, chains that
	    contain Suggests dependencies will not be displayed:
	    combine <literal>--show-summary</literal> with
	    <literal>-v</literal> to see a summary of all the reasons
	    for the target package to be installed.
	  </para>

	  <para>
	    <replaceable>MODE</replaceable> can be any one of the
	    following:
	  </para>

	  <orderedlist>
	    <listitem>
	      <para>
		<literal>no-summary</literal>: don't show a summary
		(the default behavior if
		<literal>--show-summary</literal> is not present).
	      </para>
	    </listitem>

	    <listitem>
	      <para>
		<literal>first-package</literal>: display the first
		package in each chain.  This is the default value of
		<replaceable>MODE</replaceable> if it is not present.
	      </para>
	    </listitem>

	    <listitem>
	      <para>
		<literal>first-package-and-type</literal>: display the
		first package in each chain, along with the strength
		of the weakest dependency in the chain.
	      </para>
	    </listitem>

	    <listitem>
	      <para>
		<literal>all-packages</literal>: briefly display each
		chain of dependencies leading to the target package.
	      </para>
	    </listitem>

	     <listitem>
	       <para>
		 <literal>all-packages-with-dep-versions</literal>:
		 briefly display each chain of dependencies leading to
		 the target package, including the target version of
		 each dependency.
	       </para>
	     </listitem>
	  </orderedlist>

	  <para>
	    This option corresponds to the configuration item <link
	    linkend='configCmdLine-Show-Summary'><literal>Aptitude::CmdLine::Show-Summary</literal></link>;
	    if <literal>--show-summary</literal> is present on the
	    command-line, it will override <link
	    linkend='configCmdLine-Show-Summary'><literal>Aptitude::CmdLine::Show-Summary</literal></link>.
	  </para>

	  <example>
	    <title>Usage of <literal>--show-summary</literal></title>

	    <para>
	      <literal>--show-summary</literal> used with
	      <literal>-v</literal> to display all the reasons a
	      package is installed:
	    </para>

	    <screen>$ aptitude -v --show-summary why foomatic-db
Packages requiring foomatic-db:
  cupsys-driver-gutenprint
  foomatic-db-engine
  foomatic-db-gutenprint
  foomatic-db-hpijs
  foomatic-filters-ppds
  foomatic-gui
  kde
  printconf
  wine

$ aptitude -v --show-summary=first-package-and-type why foomatic-db
Packages requiring foomatic-db:
  [Depends] cupsys-driver-gutenprint
  [Depends] foomatic-db-engine
  [Depends] foomatic-db-gutenprint
  [Depends] foomatic-db-hpijs
  [Depends] foomatic-filters-ppds
  [Depends] foomatic-gui
  [Depends] kde
  [Depends] printconf
  [Depends] wine

$ aptitude -v --show-summary=all-packages why foomatic-db
Packages requiring foomatic-db:
  cupsys-driver-gutenprint D: cups-driver-gutenprint D: cups R: foomatic-filters R: foomatic-db-engine D: foomatic-db
  foomatic-filters-ppds D: foomatic-filters R: foomatic-db-engine D: foomatic-db
  kde D: kdeadmin R: system-config-printer-kde D: system-config-printer R: hal-cups-utils D: cups R: foomatic-filters R: foomatic-db-engine D: foomatic-db
  wine D: libwine-print D: cups-bsd R: cups R: foomatic-filters R: foomatic-db-engine D: foomatic-db
  foomatic-db-engine D: foomatic-db
  foomatic-db-gutenprint D: foomatic-db
  foomatic-db-hpijs D: foomatic-db
  foomatic-gui D: python-foomatic D: foomatic-db-engine D: foomatic-db
  printconf D: foomatic-db

$ aptitude -v --show-summary=all-packages-with-dep-versions why foomatic-db
Packages requiring foomatic-db:
  cupsys-driver-gutenprint D: cups-driver-gutenprint (>= 5.0.2-4) D: cups (>= 1.3.0) R: foomatic-filters (>= 4.0) R: foomatic-db-engine (>= 4.0) D: foomatic-db (>= 20090301)
  foomatic-filters-ppds D: foomatic-filters R: foomatic-db-engine (>= 4.0) D: foomatic-db (>= 20090301)
  kde D: kdeadmin (>= 4:3.5.5) R: system-config-printer-kde (>= 4:4.2.2-1) D: system-config-printer (>= 1.0.0) R: hal-cups-utils D: cups R: foomatic-filters (>= 4.0) R: foomatic-db-engine (>= 4.0) D: foomatic-db (>= 20090301)
  wine D: libwine-print (= 1.1.15-1) D: cups-bsd R: cups R: foomatic-filters (>= 4.0) R: foomatic-db-engine (>= 4.0) D: foomatic-db (>= 20090301)
  foomatic-db-engine D: foomatic-db
  foomatic-db-gutenprint D: foomatic-db
  foomatic-db-hpijs D: foomatic-db
  foomatic-gui D: python-foomatic (>= 0.7.9.2) D: foomatic-db-engine D: foomatic-db (>= 20090301)
  printconf D: foomatic-db
	    </screen>

	    <para>
	      <literal>--show-summary</literal> used to list a chain on one line:
	    </para>

	    <screen>$ aptitude --show-summary=all-packages why aptitude-gtk libglib2.0-data
Packages requiring libglib2.0-data:
  aptitude-gtk D: libglib2.0-0 R: libglib2.0-data</screen>
	  </example>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term>
          <literal>-t</literal> <replaceable>release</replaceable>,
          <literal>--target-release</literal> <replaceable>release</replaceable>,
          <literal>--default-release</literal> <replaceable>release</replaceable>
        </term>

	<listitem>
	  <para>
	    Set the release from which packages should be
	    installed.  For instance, <quote><literal>aptitude -t
	    experimental ...</literal></quote> will install
	    packages from the experimental distribution unless you
	    specify otherwise.  For the command-line actions <quote>changelog</quote>, <quote>download</quote>, and <quote>show</quote>,
	    this is equivalent to appending <literal>/<replaceable>release</replaceable></literal>
	    to each package named on the command-line; for other commands,
	    this will affect the default candidate version of packages
	    according to the rules described in <citerefentry><refentrytitle>apt_preferences</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
	  </para>

	  <para>
	    This corresponds to the configuration item <literal>APT::Default-Release</literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-V</literal>, <literal>--show-versions</literal></term>

	<listitem>
	  <para>
	    Show which versions of packages will be installed.
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link linkend='configCmdLine-Show-Versions'>Aptitude::CmdLine::Show-Versions</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-v</literal>, <literal>--verbose</literal></term>

	<listitem>
	  <para>
	    Causes some commands (for instance, <literal>show</literal>) to display extra information.  This may be supplied multiple times to get more and more information.
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link linkend='configCmdLine-Verbose'>Aptitude::CmdLine::Verbose</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--version</literal></term>

	<listitem>
	  <para>
	    Display the version of &aptitude; and some information
	    about how it was compiled.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--visual-preview</literal></term>

	<listitem>
	  <para>
	    When installing or removing packages from the command
	    line, instead of displaying the usual prompt, start up the
	    visual interface and display its preview screen.
	  </para>
	</listitem>
      </varlistentry>


      <varlistentry>
	<term><literal>-W</literal>, <literal>--show-why</literal></term>

	<listitem>
	  <para>
	    In the preview displayed before packages are installed or
	    removed, show which manually installed package requires
	    each automatically installed package.  For instance:
	  </para>

	  <para><screen>$ aptitude --show-why install mediawiki
...
The following NEW packages will be installed:
  libapache2-mod-php5{a} (for mediawiki)  mediawiki  php5{a} (for mediawiki)
  php5-cli{a} (for mediawiki)  php5-common{a} (for mediawiki)
  php5-mysql{a} (for mediawiki)</screen></para>

          <para>
	    When combined with <literal>-v</literal> or a non-zero
	    value for <link
	    linkend='configCmdLine-Verbose'><literal>Aptitude::CmdLine::Verbose</literal></link>,
	    this displays the entire chain of dependencies that lead
	    each package to be installed.  For instance:
	  </para>

	  <para><screen>$ aptitude -v --show-why install libdb4.2-dev
The following NEW packages will be installed:
  libdb4.2{a} (libdb4.2-dev D: libdb4.2)  libdb4.2-dev
The following packages will be REMOVED:
  libdb4.4-dev{a} (libdb4.2-dev C: libdb-dev P&lt;- libdb-dev)</screen></para>

          <para>
	    This option will also describe why packages are being
	    removed, as shown above.  In this example,
	    <systemitem>libdb4.2-dev</systemitem> conflicts with
	    <systemitem>libdb-dev</systemitem>, which is provided by
	    <systemitem>libdb-dev</systemitem>.
	  </para>

	  <para>
	    This argument corresponds to the configuration option
	    <literal><link
	    linkend='configCmdLine-Show-Why'>Aptitude::CmdLine::Show-Why</link></literal>
	    and displays the same information that is computed by
	    <literal>aptitude why</literal> and <literal>aptitude
	    why-not</literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-w</literal> <replaceable>width</replaceable>, <literal>--width</literal> <replaceable>width</replaceable></term>

	<listitem>
	  <para>
	    Specify the display width which should be used for
	    output from the <literal>search</literal> command (by
	    default, the terminal width is used).
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link linkend='configCmdLine-Package-Display-Width'>Aptitude::CmdLine::Package-Display-Width</link></literal>
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term>
          <literal>-y</literal>, <literal>--yes</literal>,
          <literal>--assume-yes</literal>
        </term>

	<listitem>
	  <para>
	    When a yes/no prompt would be presented, assume that
	    the user entered <quote>yes</quote>.  In particular,
	    suppresses the prompt that appears when installing,
	    upgrading, or removing packages.  Prompts for <quote>dangerous</quote> actions, such as removing
	    essential packages, will still be displayed.  This
	    option overrides <literal>-P</literal>.
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link linkend='configCmdLine-Assume-Yes'>Aptitude::CmdLine::Assume-Yes</link></literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-Z</literal></term>

	<listitem>
	  <para>
	    Show how much disk space will be used or freed by the
	    individual packages being installed, upgraded, or
	    removed.
	  </para>

	  <para>
	    This corresponds to the configuration option <literal><link linkend='configCmdLine-Show-Size-Changes'>Aptitude::CmdLine::Show-Size-Changes</link></literal>.
	  </para>
	</listitem>
      </varlistentry>
    </variablelist>

    <para>
      The following options apply to the visual mode of the
      program, but are primarily for internal use; you generally
      won't need to use them yourself.
    </para>

    <variablelist>
      <varlistentry>
	<term><literal>--autoclean-on-startup</literal></term>

	<listitem>
	  <para>
	    Deletes old downloaded files when the program starts
	    (equivalent to starting the program and immediately
	    selecting
	    <menuchoice><guimenu>Actions</guimenu><guimenuitem>Clean
	    obsolete files</guimenuitem></menuchoice>).  You cannot
	    use this option and
	    <quote><literal>--clean-on-startup</literal></quote>,
	    <quote><literal>-i</literal></quote>, or
	    <quote><literal>-u</literal></quote> at the same time.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--clean-on-startup</literal></term>

	<listitem>
	  <para>
	    Cleans the package cache when the program starts
	    (equivalent to starting the program and immediately
	    selecting
	    <menuchoice><guimenu>Actions</guimenu><guimenuitem>Clean
	    package cache</guimenuitem></menuchoice>).  You cannot use
	    this option and
	    <quote><literal>--autoclean-on-startup</literal></quote>,
	    <quote><literal>-i</literal></quote>, or
	    <quote><literal>-u</literal></quote> at the same time.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-i</literal>, <literal>--install-on-startup</literal></term>

	<listitem>
	  <para>
	    Displays a download preview when the program starts
	    (equivalent to starting the program and immediately
	    pressing <quote><keycap>g</keycap></quote>).  You cannot
	    use this option and
	    <quote><literal>--autoclean-on-startup</literal></quote>,
	    <quote><literal>--clean-on-startup</literal></quote>, or
	    <quote><literal>-u</literal></quote> at the same time.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-S</literal> <replaceable>fname</replaceable></term>

	<listitem>
	  <para>
	    Loads the extended state information from <replaceable>fname</replaceable> instead of the
	    standard state file.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>-u</literal>, <literal>--update-on-startup</literal></term>

	<listitem>
	  <para>
	    Begins updating the package lists as soon as the program
	    starts.  You cannot use this option and
	    <quote><literal>--autoclean-on-startup</literal></quote>,
	    <quote><literal>--clean-on-startup</literal></quote>, or
	    <quote><literal>-i</literal></quote> at the same time.
	  </para>
	</listitem>
      </varlistentry>
    </variablelist>
  </refsect1>

  <refsect1>
    <title>Exit Status</title>

    <variablelist>
      <varlistentry>
        <term><literal>0</literal></term>

        <listitem>
          <para>Success.</para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term><literal>1</literal></term>

        <listitem>
          <para>User aborted or no matches.</para>

          <para>
            For most commands this means that the user aborted the
            operation before it was completed.
          </para>

          <para>
            For the <command>search</command>,
            <command>versions</command>, <command>why</command>, and
            <command>why-not</command> commands this indicates that
            no matches were found.
          </para>
        </listitem>
      </varlistentry>

      <varlistentry>
        <term><literal>100</literal></term>

        <listitem>
          <para>Failure.</para>

          <para>
            There was an error and some or all of the requested
            actions could not be performed.
          </para>
        </listitem>
      </varlistentry>
    </variablelist>
  </refsect1>

  <refsect1>
    <title>Environment</title>

    <variablelist>
    <varlistentry>
      <term><literal>HOME</literal></term>

      <listitem>
	<para>
	  If <filename>$HOME/.aptitude</filename> exists, &aptitude; will store
	  its configuration file in <filename>$HOME/.aptitude/config</filename>.
          Otherwise, it will look up the current user's home directory
          using <citerefentry><refentrytitle>getpwuid</refentrytitle><manvolnum>2</manvolnum></citerefentry>
          and place its configuration file there.
	</para>
      </listitem>
    </varlistentry>

    <varlistentry>
      <term><literal>PAGER</literal></term>

      <listitem>
	<para>
	  If this environment variable is set, &aptitude; will use it
	  to display changelogs when <quote><literal>aptitude
	  changelog</literal></quote> is invoked.  If not set, it
	  defaults to <literal>more</literal>.
	</para>
      </listitem>
    </varlistentry>

    <varlistentry>
      <term><literal>TMP</literal></term>

      <listitem>
	<para>
	  If <literal>TMPDIR</literal> is unset, &aptitude; will store
	  its temporary files in <literal>TMP</literal> if that
	  variable is set.  Otherwise, it will store them in
	  <filename>/tmp</filename>.
	</para>
      </listitem>
    </varlistentry>

    <varlistentry>
      <term><literal>TMPDIR</literal></term>

      <listitem>
	<para>
	  &aptitude; will store its temporary files in the directory
	  indicated by this environment variable.  If
	  <literal>TMPDIR</literal> is not set, then
	  <literal>TMP</literal> will be used; if
	  <literal>TMP</literal> is also unset, then &aptitude; will
	  use <filename>/tmp</filename>.
	</para>
      </listitem>
    </varlistentry>
    </variablelist>
  </refsect1>


  <refsect1>
    <title>Files</title>

    <variablelist>
      <varlistentry>
	<term><filename>/var/lib/aptitude/pkgstates</filename></term>
	<listitem>
	  <para>
	    The file in which stored package states and some package
	    flags are stored.
	  </para>
	</listitem>
      </varlistentry>
    </variablelist>

    <variablelist>
      <varlistentry>
	<term>
	  <filename>/etc/apt/apt.conf</filename>,
	  <filename>/etc/apt/apt.conf.d/*</filename>,
	  <filename>~/.aptitude/config</filename>
	</term>
	<listitem>
	  <para>
	    The configuration files for &aptitude;.
	    <filename>~/.aptitude/config</filename> overrides
	    <filename>/etc/apt/apt.conf</filename>.  See
	    <citerefentry><refentrytitle>apt.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>
	    for documentation of the format and contents of these
	    files.
	  </para>
	</listitem>
      </varlistentry>
    </variablelist>
  </refsect1>

  <refsect1>
    <title>See also</title>

    <para>
      <citerefentry><refentrytitle>apt-get</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>apt</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <filename>/usr/share/doc/aptitude/html/<replaceable>lang</replaceable>/index.html</filename> from the package aptitude-doc-<replaceable>lang</replaceable>
    </para>
  </refsect1>
</refentry>

<refentry>
  <refentryinfo>
    <!--
	The <author> element isn't needed here, because docbook-xsl
	automatically generates author information from the main
	document's author element.  Languages that provide only a
	manpage should include this information, though.

    <author>
      <personname>
	<firstname>Daniel</firstname>
	<surname>Burrows</surname>
      </personname>
      <email>dburrows@debian.org</email>
    </author>
    -->

    <title>aptitude-create-state-bundle</title>

     <!-- NWalsh's docbook scripts use this to generate the footer: -->
    <productname>aptitude-create-state-bundle</productname>
    <productnumber>&VERSION;</productnumber>

    <legalnotice>
      <para>
	Copyright 2007 Daniel Burrows.
      </para>

      <para>
	This manual page 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.
      </para>

      <para>
	This manual page 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.
      </para>

      <para>
	You should have received a copy of the GNU General Public
	License along with this program; if not, write to the Free
	Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
	Boston, MA 02110-1301 USA.
      </para>
    </legalnotice>
  </refentryinfo>

  <refmeta>
    <refentrytitle>aptitude-create-state-bundle</refentrytitle>
    <manvolnum>1</manvolnum>
  </refmeta>

  <refnamediv>
    <refname>aptitude-create-state-bundle</refname>
    <refpurpose>bundle the current aptitude state</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <cmdsynopsis>
      <command>aptitude-create-state-bundle</command>

      <arg choice='opt' rep='repeat'><replaceable>options</replaceable></arg>

      <arg choice='plain'><replaceable>output-file</replaceable></arg>
    </cmdsynopsis>
  </refsynopsisdiv>

  <refsect1>
    <title>Description</title>

    <para>
      <command>aptitude-create-state-bundle</command> produces a
      compressed archive storing the files that are required to
      replicate the current package archive state.  The following
      files and directories are included in the bundle:
    </para>

    <itemizedlist>
      <listitem>
	<para><filename><envar>$HOME</envar>/.aptitude</filename></para>
      </listitem>

      <listitem>
	<para><filename>/var/lib/aptitude</filename></para>
      </listitem>

      <listitem>
	<para><filename>/var/lib/apt</filename></para>
      </listitem>

      <listitem>
	<para><filename>/var/cache/apt/*.bin</filename></para>
      </listitem>

      <listitem>
	<para><filename>/etc/apt</filename></para>
      </listitem>

      <listitem>
	<para><filename>/var/lib/dpkg/status</filename></para>
      </listitem>
    </itemizedlist>

    <para>
      The output of this program can be used as an argument to <link
      linkend='aptitudeRunStateBundle'><citerefentry><refentrytitle>aptitude-run-state-bundle</refentrytitle><manvolnum>1</manvolnum></citerefentry></link>.
    </para>
  </refsect1>

  <refsect1>
    <title>Options</title>

    <variablelist>
      <varlistentry>
	<term><literal>--force-bzip2</literal></term>

	<listitem>
	  <para>
	    Override the autodetection of which compression algorithm
	    to use.  By default,
	    <command>aptitude-create-state-bundle</command> uses
	    <citerefentry><refentrytitle>bzip2</refentrytitle><manvolnum>1</manvolnum></citerefentry>
	    if it is available, and
	    <citerefentry><refentrytitle>gzip</refentrytitle><manvolnum>1</manvolnum></citerefentry>
	    otherwise.  Passing this option forces the use of
	    <command>bzip2</command> even if it doesn't appear to be
	    available.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--force-gzip</literal></term>

	<listitem>
	  <para>
	    Override the autodetection of which compression algorithm
	    to use.  By default,
	    <command>aptitude-create-state-bundle</command> uses
	    <citerefentry><refentrytitle>bzip2</refentrytitle><manvolnum>1</manvolnum></citerefentry>
	    if it is available, and
	    <citerefentry><refentrytitle>gzip</refentrytitle><manvolnum>1</manvolnum></citerefentry>
	    otherwise.  Passing this option forces the use of
	    <command>gzip</command> even if <command>bzip2</command>
	    is available.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--help</literal></term>

	<listitem>
	  <para>
	    Print a brief usage message, then exit.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--print-inputs</literal></term>

	<listitem>
	  <para>
	    Instead of creating a bundle, display a list of the files
	    and directories that the program would include if it
	    generated a bundle.
	  </para>
	</listitem>
      </varlistentry>
    </variablelist>
  </refsect1>

  <refsect1>
    <title>File format</title>

    <para>
      The bundle file is simply a
      <citerefentry><refentrytitle>tar</refentrytitle><manvolnum>1</manvolnum></citerefentry>
      file compressed with
      <citerefentry><refentrytitle>bzip2</refentrytitle><manvolnum>1</manvolnum></citerefentry>
      or
      <citerefentry><refentrytitle>gzip</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
      with each of the input directory trees rooted at
      <quote><filename>.</filename></quote>.
    </para>
  </refsect1>

  <refsect1>
    <title>See also</title>

    <para>
      <citerefentry><refentrytitle>aptitude-run-state-bundle</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>aptitude</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>apt</refentrytitle><manvolnum>8</manvolnum></citerefentry>
    </para>
  </refsect1>
</refentry>

<refentry id='aptitudeRunStateBundle'>
  <refentryinfo>
    <!--
	The <author> element isn't needed here, because docbook-xsl
	automatically generates author information from the main
	document's author element.  Languages that provide only a
	manpage should include this information, though.

    <author>
      <personname>
	<firstname>Daniel</firstname>
	<surname>Burrows</surname>
      </personname>
      <email>dburrows@debian.org</email>
    </author>
    -->

    <title>aptitude-run-state-bundle</title>

     <!-- NWalsh's docbook scripts use this to generate the footer: -->
    <productname>aptitude-run-state-bundle</productname>
    <productnumber>&VERSION;</productnumber>

    <legalnotice>
      <para>
	Copyright 2007 Daniel Burrows.
      </para>

      <para>
	This manual page 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.
      </para>

      <para>
	This manual page 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.
      </para>

      <para>
	You should have received a copy of the GNU General Public
	License along with this program; if not, write to the Free
	Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
	Boston, MA 02110-1301 USA.
      </para>
    </legalnotice>
  </refentryinfo>

  <refmeta>
    <refentrytitle>aptitude-run-state-bundle</refentrytitle>
    <manvolnum>1</manvolnum>
  </refmeta>

  <refnamediv>
    <refname>aptitude-run-state-bundle</refname>
    <refpurpose>unpack an aptitude state bundle and invoke aptitude on it</refpurpose>
  </refnamediv>

  <refsynopsisdiv>
    <cmdsynopsis>
      <command>aptitude-run-state-bundle</command>

      <arg choice='opt' rep='repeat'><replaceable>options</replaceable></arg>

      <arg choice='plain'><replaceable>input-file</replaceable></arg>

      <arg choice='opt'> <replaceable>program</replaceable> <arg choice='opt' rep='repeat'><replaceable>arguments</replaceable></arg></arg>
    </cmdsynopsis>
  </refsynopsisdiv>

  <refsect1>
    <title>Description</title>

    <para>
      <command>aptitude-run-state-bundle</command> unpacks the given
      aptitude state bundle created by
      <citerefentry><refentrytitle>aptitude-create-state-bundle</refentrytitle><manvolnum>1</manvolnum></citerefentry>
      to a temporary directory, invokes
      <replaceable>program</replaceable> on it with the supplied
      <replaceable>arguments</replaceable>, and removes the temporary
      directory afterwards.  If <replaceable>program</replaceable> is
      not supplied, it defaults to
      <citerefentry><refentrytitle>aptitude</refentrytitle><manvolnum>8</manvolnum></citerefentry>.
    </para>
  </refsect1>

  <refsect1>
    <title>Options</title>

    <para>
      The following options may occur on the command-line before the
      input file.  Options following the input file are presumed to be
      arguments to &aptitude;.
    </para>

    <variablelist>
      <varlistentry>
	<term><literal>--append-args</literal></term>

	<listitem>
	  <para>
	    Place the options that give the location of the state
	    bundle at the end of the command line when invoking
	    <replaceable>program</replaceable>, rather than at the
	    beginning (the default is to place options at the
	    beginning).
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--help</literal></term>

	<listitem>
	  <para>
	    Display a brief usage summary.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--prepend-args</literal></term>

	<listitem>
	  <para>
	    Place the options that give the location of the state
	    bundle at the beginning of the command line when invoking
	    <replaceable>program</replaceable>, overriding any
	    previous <literal>--append-args</literal> (the default is
	    to place options at the beginning).
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--no-clean</literal></term>

	<listitem>
	  <para>
	    Do not remove the unpacked state directory after running
	    <command>aptitude</command>.  You might want to use this
	    if, for instance, you are debugging a problem that appears
	    when &aptitude;'s state file is modified.  When
	    <command>aptitude</command> finishes running, the name of
	    the state directory will be printed so that you can access
	    it in the future.
	  </para>

	  <para>
	    This option is enabled automatically by
	    <literal>--statedir</literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--really-clean</literal></term>

	<listitem>
	  <para>
	    Delete the state directory after running
	    <command>aptitude</command>, even if
	    <literal>--no-clean</literal> or
	    <literal>--statedir</literal> was supplied.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--statedir</literal></term>

	<listitem>
	  <para>
	    Instead of treating the input file as a state bundle,
	    treat it as an unpacked state bundle.  For instance, you
	    can use this to access the state directory that was
	    created by a prior run with <literal>--no-clean</literal>.
	  </para>
	</listitem>
      </varlistentry>

      <varlistentry>
	<term><literal>--unpack</literal></term>

	<listitem>
	  <para>
	    Unpack the input file to a temporary directory, but don't
	    actually run <command>aptitude</command>.
	  </para>
	</listitem>
      </varlistentry>
    </variablelist>
  </refsect1>

  <refsect1>
    <title>See also</title>

    <para>
      <citerefentry><refentrytitle>aptitude-create-state-bundle</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
      <citerefentry><refentrytitle>aptitude</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
      <citerefentry><refentrytitle>apt</refentrytitle><manvolnum>8</manvolnum></citerefentry>
    </para>
  </refsect1>
</refentry>