/usr/share/gtk-doc/html/PackageKit/Transaction.html is in packagekit-docs 0.8.17-4ubuntu6~gcc5.4ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>PackageKit Reference Manual: org.freedesktop.PackageKit.Transaction</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
<link rel="home" href="index.html" title="PackageKit Reference Manual">
<link rel="up" href="api-reference.html" title="D-Bus API Reference">
<link rel="prev" href="PackageKit.html" title="org.freedesktop.PackageKit">
<link rel="next" href="libpackagekit-gobject.html" title="libpackagekit GObjects">
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#Transaction.description" class="shortcut">Description</a></span><span id="nav_interfaces"> <span class="dim">|</span>
<a href="#Transaction.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties"> <span class="dim">|</span>
<a href="#Transaction.properties" class="shortcut">Properties</a></span><span id="nav_signals"> <span class="dim">|</span>
<a href="#Transaction.signals" class="shortcut">Signals</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="api-reference.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="PackageKit.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="libpackagekit-gobject.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="Transaction"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle">org.freedesktop.PackageKit.Transaction</span></h2>
<p>org.freedesktop.PackageKit.Transaction — Transaction interface</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Methods</h2>
<pre class="synopsis"><a class="link" href="Transaction.html#Transaction.SetHints">SetHints</a>(in'as'hints)
<a class="link" href="Transaction.html#Transaction.AcceptEula">AcceptEula</a>(in's'eula_id)
<a class="link" href="Transaction.html#Transaction.Cancel">Cancel</a>()
<a class="link" href="Transaction.html#Transaction.DownloadPackages">DownloadPackages</a>(in'b'store_in_cache,
in'as'package_ids)
<a class="link" href="Transaction.html#Transaction.GetCategories">GetCategories</a>()
<a class="link" href="Transaction.html#Transaction.GetDepends">GetDepends</a>(in't'filter,
in'as'package_ids,
in'b'recursive)
<a class="link" href="Transaction.html#Transaction.GetDetails">GetDetails</a>(in'as'package_ids)
<a class="link" href="Transaction.html#Transaction.GetFiles">GetFiles</a>(in'as'package_ids)
<a class="link" href="Transaction.html#Transaction.GetOldTransactions">GetOldTransactions</a>(in'u'number)
<a class="link" href="Transaction.html#Transaction.GetPackages">GetPackages</a>(in't'filter)
<a class="link" href="Transaction.html#Transaction.GetRepoList">GetRepoList</a>(in't'filter)
<a class="link" href="Transaction.html#Transaction.GetRequires">GetRequires</a>(in't'filter,
in'as'package_ids,
in'b'recursive)
<a class="link" href="Transaction.html#Transaction.GetUpdateDetail">GetUpdateDetail</a>(in'as'package_ids)
<a class="link" href="Transaction.html#Transaction.GetUpdates">GetUpdates</a>(in't'filter)
<a class="link" href="Transaction.html#Transaction.GetDistroUpgrades">GetDistroUpgrades</a>()
<a class="link" href="Transaction.html#Transaction.InstallFiles">InstallFiles</a>(in't'transaction_flags,
in'as'full_paths)
<a class="link" href="Transaction.html#Transaction.InstallPackages">InstallPackages</a>(in't'transaction_flags,
in'as'package_ids)
<a class="link" href="Transaction.html#Transaction.InstallSignature">InstallSignature</a>(in'u'sig_type,
in's'key_id,
in's'package_id)
<a class="link" href="Transaction.html#Transaction.RefreshCache">RefreshCache</a>(in'b'force)
<a class="link" href="Transaction.html#Transaction.RemovePackages">RemovePackages</a>(in't'transaction_flags,
in'as'package_ids,
in'b'allow_deps,
in'b'autoremove)
<a class="link" href="Transaction.html#Transaction.RepoEnable">RepoEnable</a>(in's'repo_id,
in'b'enabled)
<a class="link" href="Transaction.html#Transaction.RepoSetData">RepoSetData</a>(in's'repo_id,
in's'parameter,
in's'value)
<a class="link" href="Transaction.html#Transaction.Resolve">Resolve</a>(in't'filter,
in'as'packages)
<a class="link" href="Transaction.html#Transaction.SearchDetails">SearchDetails</a>(in't'filter,
in'as'values)
<a class="link" href="Transaction.html#Transaction.SearchFiles">SearchFiles</a>(in't'filter,
in'as'values)
<a class="link" href="Transaction.html#Transaction.SearchGroups">SearchGroups</a>(in't'filter,
in'as'values)
<a class="link" href="Transaction.html#Transaction.SearchNames">SearchNames</a>(in't'filter,
in'as'values)
<a class="link" href="Transaction.html#Transaction.UpdatePackages">UpdatePackages</a>(in't'transaction_flags,
in'as'package_ids)
<a class="link" href="Transaction.html#Transaction.WhatProvides">WhatProvides</a>(in't'filter,
in'u'type,
in'as'values)
<a class="link" href="Transaction.html#Transaction.UpgradeSystem">UpgradeSystem</a>(in's'distro_id,
in'u'upgrade_kind)
<a class="link" href="Transaction.html#Transaction.RepairSystem">RepairSystem</a>(in't'transaction_flags)
</pre>
</div>
<div class="refsect1">
<a name="id-1.3.4.4"></a><h2>Signals</h2>
<pre class="synopsis"><a class="link" href="Transaction.html#Transaction::Category">Category</a>('s'parent_id,
's'cat_id,
's'name,
's'summary,
's'icon)
<a class="link" href="Transaction.html#Transaction::Details">Details</a>('s'package_id,
's'license,
'u'group,
's'detail,
's'url,
't'size)
<a class="link" href="Transaction.html#Transaction::ErrorCode">ErrorCode</a>('u'code,
's'details)
<a class="link" href="Transaction.html#Transaction::Files">Files</a>('s'package_id,
'as'file_list)
<a class="link" href="Transaction.html#Transaction::Finished">Finished</a>('u'exit,
'u'runtime)
<a class="link" href="Transaction.html#Transaction::Message">Message</a>('u'type,
's'details)
<a class="link" href="Transaction.html#Transaction::Package">Package</a>('u'info,
's'package_id,
's'summary)
<a class="link" href="Transaction.html#Transaction::RepoDetail">RepoDetail</a>('s'repo_id,
's'description,
'b'enabled)
<a class="link" href="Transaction.html#Transaction::RepoSignatureRequired">RepoSignatureRequired</a>('s'package_id,
's'repository_name,
's'key_url,
's'key_userid,
's'key_id,
's'key_fingerprint,
's'key_timestamp,
'u'type)
<a class="link" href="Transaction.html#Transaction::EulaRequired">EulaRequired</a>('s'eula_id,
's'package_id,
's'vendor_name,
's'license_agreement)
<a class="link" href="Transaction.html#Transaction::MediaChangeRequired">MediaChangeRequired</a>('u'media_type,
's'media_id,
's'media_text)
<a class="link" href="Transaction.html#Transaction::RequireRestart">RequireRestart</a>('u'type,
's'package_id)
<a class="link" href="Transaction.html#Transaction::Transaction">Transaction</a>('o'object_path,
's'timespec,
'b'succeeded,
'u'role,
'u'duration,
's'data,
'u'uid,
's'cmdline)
<a class="link" href="Transaction.html#Transaction::UpdateDetail">UpdateDetail</a>('s'package_id,
'as'updates,
'as'obsoletes,
'as'vendor_urls,
'as'bugzilla_urls,
'as'cve_urls,
'u'restart,
's'update_text,
's'changelog,
'u'state,
's'issued,
's'updated)
<a class="link" href="Transaction.html#Transaction::DistroUpgrade">DistroUpgrade</a>('u'type,
's'name,
's'summary)
<a class="link" href="Transaction.html#Transaction::ItemProgress">ItemProgress</a>('s'id,
'u'status,
'u'percentage)
<a class="link" href="Transaction.html#Transaction::Changed">Changed</a>()
<a class="link" href="Transaction.html#Transaction::Destroy">Destroy</a>()
</pre>
</div>
<div class="refsect1">
<a name="id-1.3.4.5"></a><h2>Implemented Interfaces</h2>
<p>org.freedesktop.PackageKit.Transaction implements
org.freedesktop.DBus.Introspectable,
org.freedesktop.DBus.Properties
</p>
</div>
<div class="refsect1">
<a name="id-1.3.4.6"></a><h2>Properties</h2>
<pre class="synopsis"><a class="link" href="Transaction.html#Transaction:Role">'Role'</a>read'u'
<a class="link" href="Transaction.html#Transaction:Status">'Status'</a>read'u'
<a class="link" href="Transaction.html#Transaction:LastPackage">'LastPackage'</a>read's'
<a class="link" href="Transaction.html#Transaction:Uid">'Uid'</a>read'u'
<a class="link" href="Transaction.html#Transaction:Percentage">'Percentage'</a>read'u'
<a class="link" href="Transaction.html#Transaction:AllowCancel">'AllowCancel'</a>read'b'
<a class="link" href="Transaction.html#Transaction:CallerActive">'CallerActive'</a>read'b'
<a class="link" href="Transaction.html#Transaction:ElapsedTime">'ElapsedTime'</a>read'u'
<a class="link" href="Transaction.html#Transaction:RemainingTime">'RemainingTime'</a>read'u'
<a class="link" href="Transaction.html#Transaction:Speed">'Speed'</a>read'u'
<a class="link" href="Transaction.html#Transaction:DownloadSizeRemaining">'DownloadSizeRemaining'</a>read't'
<a class="link" href="Transaction.html#Transaction:TransactionFlags">'TransactionFlags'</a>read't'
</pre>
</div>
<div class="refsect1">
<a name="id-1.3.4.7"></a><h2>Description</h2>
<p>
</p>
<p>
The transaction interface is used for interacting with individual transactions.
</p>
<p>
</p>
</div>
<div class="refsect1">
<a name="id-1.3.4.8"></a><h2>Details</h2>
<div class="refsect2">
<a name="id-1.3.4.8.2"></a><h3>
<a name="Transaction.SetHints"></a>SetHints ()</h3>
<pre class="programlisting">SetHints (in'as'hints)</pre>
</div>
<p>
This method allows the calling session to set transaction hints for
the package manager which can change as the transaction runs.
</p>
<p>
This method can be sent before the transaction has been run or
whilst it is running. There is no limit to the number of times this
method can be sent, although some backends may only use the values
that were set before the transaction was started.
</p>
<p>
Each parameter value is optional.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>hints</code></em>:</span></p></td>
<td>
The values as an array of strings, for example
['locale=en_GB.utf8','idle=true','interactive=false','cache-age=3600'].
The following parameter values are understood:
locale
The locale code, for example en_GB.
background
If the method should be executed as a background task, valid
values are true and false,
and other values will result in an error.
Background tasks are normally treated with a low priority than
regular tasks, and normally only use idle CPU and network.
interactive
If the method can ask interactive questions whilst running,
valid values are true and false,
and other values will result in an error.
cache-age
This allows the frontend to set how fresh it needs the
metadata used in the transaction.
This allows fine control of the age of the returned results,
but means the frontend probably has to query the updates
check value and pass it this value for GetUpdates,
and choose something sane otherwise.
Most interactive clients will set this to intmaxdoc:tt>
which means "never download new metadata, unless required to return results".
Most transactions will not have this value set.
Other values will cause a verbose warning in the daemon, but will
not cause the method to fail. This will preserve forward and
backwards compatibility for future API versions.
</td>
</tr></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.7"></a><h3>
<a name="Transaction.AcceptEula"></a>AcceptEula ()</h3>
<pre class="programlisting">AcceptEula (in's'eula_id)</pre>
</div>
<p>
This method allows the user to accept a end user licence agreement.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>eula_id</code></em>:</span></p></td>
<td>
A valid EULA ID
</td>
</tr></tbody>
</table></div>
<p class="permission">Callers need the org.freedesktop.packagekit.accept-eula</p>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.11"></a><h3>
<a name="Transaction.Cancel"></a>Cancel ()</h3>
<pre class="programlisting">Cancel ()</pre>
</div>
<p>
This method cancels a transaction that is already running
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.14"></a><h3>
<a name="Transaction.DownloadPackages"></a>DownloadPackages ()</h3>
<pre class="programlisting">DownloadPackages (in'b'store_in_cache,
in'as'package_ids)</pre>
</div>
<p>
This method downloads packages into a temporary directory.
</p>
<p>
This method should emit one
Files signal for each package that is downloaded,
with the file list set as the name of the complete downloaded file
and directory, so for example:
</p>
<p>
DownloadPackages('hal;0.1.2;i386;fedora','hal-info;2009-09-07;no-arch;updates')
should send two signals, e.g.
Files('hal;0.1.2;i386;fedora', '/tmp/hal-0.1.2.i386.rpm')
and
Files('hal-info;2009-09-07;no-arch;updates', '/tmp/hal-info-2009-09-07.noarch.rpm').
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>store_in_cache</code></em>:</span></p></td>
<td>
If the downloaded files should be stored in the system
package cache rather than copied into a newly created
directory.
See
the developer docs for more details on how
this is supposed to work.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_ids</code></em>:</span></p></td>
<td>
An array of package IDs.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.19"></a><h3>
<a name="Transaction.GetCategories"></a>GetCategories ()</h3>
<pre class="programlisting">GetCategories ()</pre>
</div>
<p>
This method return the collection categories
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.22"></a><h3>
<a name="Transaction.GetDepends"></a>GetDepends ()</h3>
<pre class="programlisting">GetDepends (in't'filter,
in'as'package_ids,
in'b'recursive)</pre>
</div>
<p>
This method returns packages that this package depends on.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Package.
</p>
<p>
Package enumerated types should be
available or installed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_ids</code></em>:</span></p></td>
<td>
An array of package IDs.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>recursive</code></em>:</span></p></td>
<td>
Either true or false. If yes then the requirements should be
returned for all packages returned.
This means if gnome-power-manager depends on NetworkManager
and NetworkManager depends on HAL, then GetDepends on
gnome-power-manager should return both HAL and NetworkManager.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.27"></a><h3>
<a name="Transaction.GetDetails"></a>GetDetails ()</h3>
<pre class="programlisting">GetDetails (in'as'package_ids)</pre>
</div>
<p>
This method should return all the details about a specific
package_id.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Details.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>package_ids</code></em>:</span></p></td>
<td>
An array of package IDs.
</td>
</tr></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.31"></a><h3>
<a name="Transaction.GetFiles"></a>GetFiles ()</h3>
<pre class="programlisting">GetFiles (in'as'package_ids)</pre>
</div>
<p>
This method should return the file list of the package_id.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Files.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>package_ids</code></em>:</span></p></td>
<td>
An array of package IDs.
</td>
</tr></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.35"></a><h3>
<a name="Transaction.GetOldTransactions"></a>GetOldTransactions ()</h3>
<pre class="programlisting">GetOldTransactions (in'u'number)</pre>
</div>
<p>
This method allows a client to view details for old transactions.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>number</code></em>:</span></p></td>
<td>
The number of past transactions, or 0 for all known transactions.
</td>
</tr></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.38"></a><h3>
<a name="Transaction.GetPackages"></a>GetPackages ()</h3>
<pre class="programlisting">GetPackages (in't'filter)</pre>
</div>
<p>
This method returns all the packages without a search term.
</p>
<p>
This method typically emits
Progress,
Error and
Package.
</p>
<p>
Package enumerated types should be
available or installed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.43"></a><h3>
<a name="Transaction.GetRepoList"></a>GetRepoList ()</h3>
<pre class="programlisting">GetRepoList (in't'filter)</pre>
</div>
<p>
This method returns the list of repositories used in the system.
</p>
<p>
This method should emit RepoDetail.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.47"></a><h3>
<a name="Transaction.GetRequires"></a>GetRequires ()</h3>
<pre class="programlisting">GetRequires (in't'filter,
in'as'package_ids,
in'b'recursive)</pre>
</div>
<p>
This method returns packages that depend on this package.
This is useful to know, as if package_id is being
removed, we can warn the user what else would be removed.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Package.
</p>
<p>
Package enumerated types should be
available or installed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_ids</code></em>:</span></p></td>
<td>
An array of package IDs.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>recursive</code></em>:</span></p></td>
<td>
Either true or false. If yes then the requirements should be
returned for all packages returned.
This means if gnome-power-manager depends on NetworkManager
and NetworkManager depends on HAL, then GetRequires on
HAL should return both gnome-power-manager and NetworkManager.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.52"></a><h3>
<a name="Transaction.GetUpdateDetail"></a>GetUpdateDetail ()</h3>
<pre class="programlisting">GetUpdateDetail (in'as'package_ids)</pre>
</div>
<p>
This method returns details about a specific update.
</p>
<p>
This method typically emits
UpdateDetail and
Error
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>package_ids</code></em>:</span></p></td>
<td>
An array of package IDs.
</td>
</tr></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.56"></a><h3>
<a name="Transaction.GetUpdates"></a>GetUpdates ()</h3>
<pre class="programlisting">GetUpdates (in't'filter)</pre>
</div>
<p>
This method should return a list of packages that are installed and are upgradable.
It should only return the newest update for each installed package.
</p>
<p>
This method typically emits
Progress,
Error and
Package.
</p>
<p>
Package enumerated types should be
blocked,
low,
normal,
important or
security.
</p>
<p>
The status blocked signifies the package cannot be
updated, probably due to other dependencies not being met.
This type allows the GUI tools to show to the user that an update
exists, but cannot be installed.
The reason for it not being installed should be put into the update
description when doing GetUpdateDetail.
</p>
<p>
A filter such as basename or gui
is also useful if you want to do filtering on the method to only show
the main packages rather than the complete list.
The complete list is available but specifying none
as the filter.
Using no filter which may be useful in advanced tools or when using
libpackagekit and searching for an update of a specific name.
Other filter types may be present, but can be safely ignored of the
backend does not support them.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.63"></a><h3>
<a name="Transaction.GetDistroUpgrades"></a>GetDistroUpgrades ()</h3>
<pre class="programlisting">GetDistroUpgrades ()</pre>
</div>
<p>
This method should return a list of distribution upgrades that are
available.
It should not return updates, only major upgrades.
</p>
<p>
This method typically emits
DistroUpgrade,
Error and
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.67"></a><h3>
<a name="Transaction.InstallFiles"></a>InstallFiles ()</h3>
<pre class="programlisting">InstallFiles (in't'transaction_flags,
in'as'full_paths)</pre>
</div>
<p>
This method installs local package files onto the local system.
</p>
<p>
The installer should always install extra dependant packages automatically.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Package.
</p>
<p>
Package enumerated types should be
downloading,
updating,
installing or
removing.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>transaction_flags</code></em>:</span></p></td>
<td>
If the transaction is only allowed to install trusted files.
Unsigned files should not be installed if this parameter is TRUE.
If this method is can only install trusted files, and the files are unsigned, then
the backend will send a ErrorCode(missing-gpg-signature).
On recieving this error, the client may choose to retry with only_trusted FALSE
after gaining further authentication.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>full_paths</code></em>:</span></p></td>
<td>
An array of full path and filenames to packages.
</td>
</tr>
</tbody>
</table></div>
<p class="permission">Callers need the org.freedesktop.packagekit.localinstall-untrusted</p>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.74"></a><h3>
<a name="Transaction.InstallPackages"></a>InstallPackages ()</h3>
<pre class="programlisting">InstallPackages (in't'transaction_flags,
in'as'package_ids)</pre>
</div>
<p>
This method installs new packages on the local system.
</p>
<p>
The installer should always install extra packages automatically
as the use could call GetDepends prior to the install if a confirmation
is required in the UI.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Package.
</p>
<p>
Package enumerated types should be
downloading,
updating,
installing or
removing.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>transaction_flags</code></em>:</span></p></td>
<td>
If the transaction is only allowed to install trusted packages.
Unsigned packages should not be installed if transaction_flags contains ALLOW_UNTRUSTED.
If this method is can only install trusted packages, and the packages are unsigned, then
the backend will send a ErrorCode(missing-gpg-signature).
On recieving this error, the client may choose to retry with only_trusted FALSE
after gaining further authentication.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_ids</code></em>:</span></p></td>
<td>
An array of package IDs.
</td>
</tr>
</tbody>
</table></div>
<p class="permission">Callers need the org.freedesktop.packagekit.install-untrusted</p>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.81"></a><h3>
<a name="Transaction.InstallSignature"></a>InstallSignature ()</h3>
<pre class="programlisting">InstallSignature (in'u'sig_type,
in's'key_id,
in's'package_id)</pre>
</div>
<p>
This method allows us to install new security keys.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>sig_type</code></em>:</span></p></td>
<td>
A key type enum, e.g. gpg
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key_id</code></em>:</span></p></td>
<td>
A key ID, e.g. BB7576AC
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_id</code></em>:</span></p></td>
<td>
A PackageID for the package that the user is trying to install
</td>
</tr>
</tbody>
</table></div>
<p class="permission">Callers need the org.freedesktop.packagekit.install-signature</p>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.85"></a><h3>
<a name="Transaction.RefreshCache"></a>RefreshCache ()</h3>
<pre class="programlisting">RefreshCache (in'b'force)</pre>
</div>
<p>
This method should fetch updated meta-data for all enabled repositories.
This operation should be only scheduled when the computer is idle as
the network connection will be very active, and will the computer will
have have non-trivial levels of hard disk and processor activity.
For these reasons, it should not be done automatically when on battery
power.
</p>
<p>
When fetching each software source, ensure to emit RepoDetail for the
current source to give the user interface some extra details. Be sure to
have the "enabled" field set to true, otherwise you wouldn't be fetching
that source.
</p>
<p>
This method typically emits
Progress,
Error and
RepoDetail.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>force</code></em>:</span></p></td>
<td>
If the caches should be cleaned and reloaded even if there is valid, up to date data.
</td>
</tr></tbody>
</table></div>
<p class="permission">Callers need the org.freedesktop.packagekit.refresh-cache</p>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.91"></a><h3>
<a name="Transaction.RemovePackages"></a>RemovePackages ()</h3>
<pre class="programlisting">RemovePackages (in't'transaction_flags,
in'as'package_ids,
in'b'allow_deps,
in'b'autoremove)</pre>
</div>
<p>
This method removes packages from the local system.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Package.
</p>
<p>
Package enumerated types should be
downloading,
updating,
installing or
removing.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>transaction_flags</code></em>:</span></p></td>
<td>
If the transaction should be simulated or prepared.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_ids</code></em>:</span></p></td>
<td>
An array of package IDs.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>allow_deps</code></em>:</span></p></td>
<td>
Either true or false.
If true allow other packages to be removed with the package,
but false should cause the script to abort if other packages
are dependant on the package.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>autoremove</code></em>:</span></p></td>
<td>
Either true or false.
This option is only really interesting on embedded devices with a limited amount of
flash storage.
It suggests to the packagekit backend that dependencies installed at the same time as
the package should also be removed if they are not required by anything else.
For instance, if you install OpenOffice, it might download libneon as a dependency.
When auto_remove is set to true, and you remove OpenOffice then
libneon will also get removed automatically.
</td>
</tr>
</tbody>
</table></div>
<p class="permission">Callers need the org.freedesktop.packagekit.remove</p>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.97"></a><h3>
<a name="Transaction.RepoEnable"></a>RepoEnable ()</h3>
<pre class="programlisting">RepoEnable (in's'repo_id,
in'b'enabled)</pre>
</div>
<p>
This method enables the repository specified.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>repo_id</code></em>:</span></p></td>
<td>
A repository identifier, e.g. fedora-development-debuginfo
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>enabled</code></em>:</span></p></td>
<td>
true if enabled, false if disabled.
</td>
</tr>
</tbody>
</table></div>
<p class="permission">Callers need the org.freedesktop.packagekit.repo-change</p>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.101"></a><h3>
<a name="Transaction.RepoSetData"></a>RepoSetData ()</h3>
<pre class="programlisting">RepoSetData (in's'repo_id,
in's'parameter,
in's'value)</pre>
</div>
<p>
This method allows arbitary data to be passed to the repository handler.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>repo_id</code></em>:</span></p></td>
<td>
A repository identifier, e.g. fedora-development-debuginfo
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>parameter</code></em>:</span></p></td>
<td>
The backend specific value, e.g. set-download-url.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em>:</span></p></td>
<td>
The backend specific value, e.g. http://foo.bar.org/baz.
</td>
</tr>
</tbody>
</table></div>
<p class="permission">Callers need the org.freedesktop.packagekit.repo-change</p>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.105"></a><h3>
<a name="Transaction.Resolve"></a>Resolve ()</h3>
<pre class="programlisting">Resolve (in't'filter,
in'as'packages)</pre>
</div>
<p>
This method turns a single package name into a package_id suitable for the
other methods.
</p>
<p>
If the package is a fully formed package_id, then this should be treated
as an exact package match. This is useful to find the summary or installed
status of a package_id returned from other methods.
</p>
<p>
This method typically emits
Error and
Package.
</p>
<p>
Package enumerated types should be
available or installed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>packages</code></em>:</span></p></td>
<td>
An array of package names, e.g. scribus-clipart.
The package names are case sensitive, so for instance:
Resolve('Packagekit') would not match PackageKit.
As a special case, if Resolve()doc:tt> is called
with a name prefixed with @ then
this should be treated as a category, for example:
@web-development.
In this instance, a meta-package should be emitted, for example:
web-development;;;meta with the correct
installed status and summary for the category.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.111"></a><h3>
<a name="Transaction.SearchDetails"></a>SearchDetails ()</h3>
<pre class="programlisting">SearchDetails (in't'filter,
in'as'values)</pre>
</div>
<p>
This method allows deeper searching than SearchName().
</p>
<p>
Do not refresh the package cache. This should be fast.
This is very similar to search-name.
This should search as much data as possible, including, if possible
repo names, package summaries, descriptions, licenses and URLs.
</p>
<p>
Try to emit installed before
available packages first, as it allows the client
program to perform the GUI filtering and matching whilst the daemon is
running the transaction.
</p>
<p>
If the backend includes installed and
available versions of the same package when searching
then the available version will have to be filtered
in the backend.
</p>
<p>
This method typically emits
Progress,
Error and
Package.
</p>
<p>
Package enumerated types should be
available or installed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em>:</span></p></td>
<td>
A single word search term with no wildcard chars. The search can
contain many words separated by spaces. In this case, the
search operator is AND and the words can be found
in any details section/field. For example, search of
GPL games should returns every games with a GPL
license.
The search should not be treated as case sensitive.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.119"></a><h3>
<a name="Transaction.SearchFiles"></a>SearchFiles ()</h3>
<pre class="programlisting">SearchFiles (in't'filter,
in'as'values)</pre>
</div>
<p>
This method searches for files on the local system and files in available packages.
</p>
<p>
This should search for files.
This should allow an application to find out what package owns
a file on the system.
</p>
<p>
This method typically emits
Progress,
Error and
Package.
</p>
<p>
Package enumerated types should be
available or installed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em>:</span></p></td>
<td>
A filename or fully qualified path and filename on the system.
If the search term begins with a / it will be assumed the entire path has been given and only packages that contain this exact path and filename will be returned.
If the search term does not start with / then it should be treated as a single filename, which can be in any directory.
The search is case sensitive, and should not be escaped or surrounded in quotes.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.125"></a><h3>
<a name="Transaction.SearchGroups"></a>SearchGroups ()</h3>
<pre class="programlisting">SearchGroups (in't'filter,
in'as'values)</pre>
</div>
<p>
This method returns packages from a given group enumerated type.
</p>
<p>
Do not refresh the package cache. This should be fast.
</p>
<p>
Try to emit installed before
available packages first, as it allows the client
program to perform the GUI filtering and matching whilst the daemon is
running the transaction.
</p>
<p>
If the backend includes installed and
available versions of the same package when searching
then the available version will have to be filtered
in the backend.
</p>
<p>
This method typically emits
Progress,
Error and
Package.
</p>
<p>
Package enumerated types should be
available or installed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em>:</span></p></td>
<td>
An enumerated group type, or unknown. The search
cannot contain spaces.
The following recommendations are made below:
If the values strings are prefixed with category: then
the request is treated as a 'category search', for example:
category:web-development.
If the values strings are prefixed with repo: then
the request is treated as a 'repository search', for example:
repo:fedora-debuginfo.
In this instance all packages that were either installed
from, or can be installed from the fedora-debuginfo
source would be returned.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.133"></a><h3>
<a name="Transaction.SearchNames"></a>SearchNames ()</h3>
<pre class="programlisting">SearchNames (in't'filter,
in'as'values)</pre>
</div>
<p>
This method searches the package database by package name.
</p>
<p>
Do not refresh the package cache. This should be fast.
</p>
<p>
Try to emit installed before
available packages first, as it allows the client
program to perform the GUI filtering and matching whilst the daemon is
running the transaction.
</p>
<p>
If the backend includes installed and
available versions of the same package when searching
then the available version will have to be filtered
in the backend.
</p>
<p>
The search methods should return all results in all repositories.
This may mean that multiple versions of package are returned.
If this is not what is wanted by the client program, then the
newest filter should be used.
</p>
<p>
This method typically emits
Progress,
Error and
Package.
</p>
<p>
Package enumerated types should be
available or installed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em>:</span></p></td>
<td>
A single word search term with no wildcard chars. The search term
can contain many words separated by spaces. In this case, the
search operator is AND. For example, search of
gnome power should returns
gnome-power-manager but not
gnomesword or powertop.
The search should not be treated as case sensitive.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.142"></a><h3>
<a name="Transaction.UpdatePackages"></a>UpdatePackages ()</h3>
<pre class="programlisting">UpdatePackages (in't'transaction_flags,
in'as'package_ids)</pre>
</div>
<p>
This method updates existing packages on the local system.
</p>
<p>
The installer should always update extra packages automatically to fulfil dependencies.
</p>
<p>
This should allow an application to find out what package owns a file on the system.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Package.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>transaction_flags</code></em>:</span></p></td>
<td>
If the transaction is only allowed to update to trusted packages.
Unsigned packages should not be installed if this transaction_flags has ONLY_TRUSTED.
If this method is can only update trusted packages, and the packages are unsigned, then
the backend will send a ErrorCode(missing-gpg-signature).
On recieving this error, the client may choose to retry with only_trusted FALSE
after gaining further authentication.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_ids</code></em>:</span></p></td>
<td>
An array of package IDs.
</td>
</tr>
</tbody>
</table></div>
<p class="permission">Callers need the org.freedesktop.packagekit.update-package</p>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.149"></a><h3>
<a name="Transaction.WhatProvides"></a>WhatProvides ()</h3>
<pre class="programlisting">WhatProvides (in't'filter,
in'u'type,
in'as'values)</pre>
</div>
<p>
This method returns packages that provide the supplied attributes.
This method is useful for finding out what package(s) provide a modalias
or GStreamer codec string.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Package.
</p>
<p>
Package enumerated types should be
available or installed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>filter</code></em>:</span></p></td>
<td>
A correct filter bitfield, e.g. none or installed;~devel
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em>:</span></p></td>
<td>
A PkProvideType, e.g. PK_PROVIDES_ENUM_CODEC.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>values</code></em>:</span></p></td>
<td>
The data to send to the backend to get the packages.
Note: This is backend specific.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.154"></a><h3>
<a name="Transaction.UpgradeSystem"></a>UpgradeSystem ()</h3>
<pre class="programlisting">UpgradeSystem (in's'distro_id,
in'u'upgrade_kind)</pre>
</div>
<p>
This method perfoms a distribution upgrade to the specified
version.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Package.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>distro_id</code></em>:</span></p></td>
<td>
The distribution ID to upgrade to, e.g. fedora-14.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>upgrade_kind</code></em>:</span></p></td>
<td>
The type of upgrade, e.g. minimal, default or complete.
Minimal upgrades will download the smallest amount of data
before launching a installer.
The default is to download enough data to launch a full
graphical installer, but a complete upgrade will be
required if there is no internet access during install time.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.8.158"></a><h3>
<a name="Transaction.RepairSystem"></a>RepairSystem ()</h3>
<pre class="programlisting">RepairSystem (in't'transaction_flags)</pre>
</div>
<p>
This method recovers the package management system from e.g.
unsatisfied dependencies of installed packages.
</p>
<p>
This method typically emits
Progress,
Status and
Error and
Package.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>transaction_flags</code></em>:</span></p></td>
<td>
If the transaction is only allowed to install trusted packages.
Unsigned packages should not be installed if this transaction_flags has ONLY_TRUSTED.
If this method is can only install trusted packages, and the packages are unsigned, then
the backend will send a ErrorCode(missing-gpg-signature).
On recieving this error, the client may choose to retry with only_trusted FALSE
after gaining further authentication.
</td>
</tr></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="id-1.3.4.9"></a><h2>Signal Details</h2>
<div class="refsect2">
<a name="id-1.3.4.9.2"></a><h3>
<a name="Transaction::Category"></a>The Category signal</h3>
<pre class="programlisting">Category ('s'parent_id,
's'cat_id,
's'name,
's'summary,
's'icon)</pre>
</div>
<p>
This signal send information about a collection category
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent_id</code></em>:</span></p></td>
<td>
The parent identifier, e.g. applications.
If the category is a root entry, use a blank parent.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cat_id</code></em>:</span></p></td>
<td>
The category identifier, e.g. applications;system-tools.
The identifier does not have to be related to the parent_id
in any way.
A menu tree is made from multiple Category signals.
The tree does not have any depth or bredth limits, although it should be kept
to less than about 100 entries as this will be shown to the user in a menu.
The cat_id will be sent as a parameter to SearchGroup
so you may have to prefix or otherwise identify the ID to not confuse the search method.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>:</span></p></td>
<td>
The localised name of the category, e.g. System Tools.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>summary</code></em>:</span></p></td>
<td>
The localised category summary, e.g. Tools for mangaing system state.
This is not normally shown in the menus, but may be shown in helper popups.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon</code></em>:</span></p></td>
<td>
The icon name for the category, e.g. server-cfg.
If the icon is not known, then it should be set to image-missing.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.5"></a><h3>
<a name="Transaction::Details"></a>The Details signal</h3>
<pre class="programlisting">Details ('s'package_id,
's'license,
'u'group,
's'detail,
's'url,
't'size)</pre>
</div>
<p>
This signal allows the backend to convey more details about the package.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_id</code></em>:</span></p></td>
<td>
The package ID
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>license</code></em>:</span></p></td>
<td>
The license string, e.g. GPLv2+ or BSD and (MPLv1.1 or GPLv2+).
More details about the correct way to format licensing strings can be found on the
Fedora packaging wiki.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>group</code></em>:</span></p></td>
<td>
The enumerated package group description
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>detail</code></em>:</span></p></td>
<td>
The multi-line package description.
If formatting is required, then markdown syntax should be used,
e.g. This is **critically** important
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>url</code></em>:</span></p></td>
<td>
The upstream project homepage
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>size</code></em>:</span></p></td>
<td>
The size of the package in bytes. This should be the size of the entire package file,
not the size of the files installed on the system.
If the package is not installed, and already downloaded and
present in the package manager cache, then this value should be set to zero.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.8"></a><h3>
<a name="Transaction::ErrorCode"></a>The ErrorCode signal</h3>
<pre class="programlisting">ErrorCode ('u'code,
's'details)</pre>
</div>
<p>
This signal is used to report errors back to the session program.
</p>
<p>
Errors should only be send on fatal abort.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>code</code></em>:</span></p></td>
<td>
Enumerated type, e.g. no-network.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>details</code></em>:</span></p></td>
<td>
Long description or error, e.g. failed to connect to mytry.xml
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.12"></a><h3>
<a name="Transaction::Files"></a>The Files signal</h3>
<pre class="programlisting">Files ('s'package_id,
'as'file_list)</pre>
</div>
<p>
This signal is used to push file lists from the backend to the session.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_id</code></em>:</span></p></td>
<td>
The Package ID that called the method.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>file_list</code></em>:</span></p></td>
<td>
The file list as an array.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.15"></a><h3>
<a name="Transaction::Finished"></a>The Finished signal</h3>
<pre class="programlisting">Finished ('u'exit,
'u'runtime)</pre>
</div>
<p>
This signal is used to signal that the transaction has finished.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>exit</code></em>:</span></p></td>
<td>
The PkExitEnum describing the exit status of the transaction.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>runtime</code></em>:</span></p></td>
<td>
The amount of time in milliseconds that the transaction ran for.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.18"></a><h3>
<a name="Transaction::Message"></a>The Message signal</h3>
<pre class="programlisting">Message ('u'type,
's'details)</pre>
</div>
<p>
This signal is sent when the backend wants to send a message to the session.
</p>
<p>
This allows the backend to queue up a message to be shown after the transaction has
completed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em>:</span></p></td>
<td>
One of warning, notice, or
daemon.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>details</code></em>:</span></p></td>
<td>
Required details about the message, non-localised.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.22"></a><h3>
<a name="Transaction::Package"></a>The Package signal</h3>
<pre class="programlisting">Package ('u'info,
's'package_id,
's'summary)</pre>
</div>
<p>
This signal allows the backend to communicate packages to the session.
</p>
<p>
If updating, as packages are updated then emit them to the screen.
This allows a summary to be presented after the transaction.
</p>
<p>
When returning results from a search always return
installed before available for
the same package name.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>info</code></em>:</span></p></td>
<td>
A valid info enumerated type
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_id</code></em>:</span></p></td>
<td>
This identifier is of the form name;version;arch;data
in a single string and is meant to represent a single package
unique across all local and remote data stores.
For a remote, not-installed package the data field should
be set as the repository identifier or repository name.
The data field for an installed package must be prefixed
with installed as this is used to identify
which packages are installable or installed in the client
tools.
As a special extension, if the package manager is able to
track which repository a package was originally installed
from, then the data field can be set to
installed:REPO-NAME which allows the
frontend client to advise the user of the package origin.
The data field for a non-installed local package must be
local as this signifies a repository name is
not available and that package resides locally on the
client system rather than in any specific repository.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>summary</code></em>:</span></p></td>
<td>
The one line package summary, e.g. Clipart for OpenOffice
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.27"></a><h3>
<a name="Transaction::RepoDetail"></a>The RepoDetail signal</h3>
<pre class="programlisting">RepoDetail ('s'repo_id,
's'description,
'b'enabled)</pre>
</div>
<p>
This signal describes a repository on the system.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>repo_id</code></em>:</span></p></td>
<td>
The repository ID.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>description</code></em>:</span></p></td>
<td>
A description of the repository.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>enabled</code></em>:</span></p></td>
<td>
If the repository is enabled and in use.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.30"></a><h3>
<a name="Transaction::RepoSignatureRequired"></a>The RepoSignatureRequired signal</h3>
<pre class="programlisting">RepoSignatureRequired ('s'package_id,
's'repository_name,
's'key_url,
's'key_userid,
's'key_id,
's'key_fingerprint,
's'key_timestamp,
'u'type)</pre>
</div>
<p>
This signal is emitted when a transaction is not possible due to a missing security
certificate.
</p>
<p>
Some backends support repositories which use a cryptographic
signature, such as GPG. If a package cannot be installed
because it is signed with a key that has not been verified,
this signal is generated so the user can choose to accept or
decline the key.
</p>
<p>
This signal includes information that can be used to verify
that the key should be trusted, such as a URL for the company
or person who owns the key, the key's ID, the userid of
the key creator, and the date the key was generated.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_id</code></em>:</span></p></td>
<td>
A package ID for the package that is trying to be installed
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>repository_name</code></em>:</span></p></td>
<td>
The name of the repository associated with the provided key.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key_url</code></em>:</span></p></td>
<td>
The URL provided with the key.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key_userid</code></em>:</span></p></td>
<td>
The user id associated with the key.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key_id</code></em>:</span></p></td>
<td>
A unique identifier for the key.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key_fingerprint</code></em>:</span></p></td>
<td>
The hashed fingerprint of the key.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key_timestamp</code></em>:</span></p></td>
<td>
The date the key was created.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em>:</span></p></td>
<td>
The type of signature used. gpg, for example.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.35"></a><h3>
<a name="Transaction::EulaRequired"></a>The EulaRequired signal</h3>
<pre class="programlisting">EulaRequired ('s'eula_id,
's'package_id,
's'vendor_name,
's'license_agreement)</pre>
</div>
<p>
This signal is emitted when a transaction is not possible due to a EULA that needs to
be agreed to at install time.
</p>
<p>
Some backends support EULAs, which have to be agreed to before the install can proceed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>eula_id</code></em>:</span></p></td>
<td>
The eula_id which identifies the EULA - this is provided
so that if a specific EULA has previously agreed to a EULA from Acme Corp it is
not asked again.
An example eula_id's is vmware5_single_user.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_id</code></em>:</span></p></td>
<td>
A package ID for the package that is trying to be installed.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>vendor_name</code></em>:</span></p></td>
<td>
The vendor that is providing the EULA.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>license_agreement</code></em>:</span></p></td>
<td>
The full text EULA.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.39"></a><h3>
<a name="Transaction::MediaChangeRequired"></a>The MediaChangeRequired signal</h3>
<pre class="programlisting">MediaChangeRequired ('u'media_type,
's'media_id,
's'media_text)</pre>
</div>
<p>
This signal is emitted when a transaction needsneeds a different media
to grab the packages.
</p>
<p>
Some backends support Media changing, which will fail the transaction each time it needs
a new media.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>media_type</code></em>:</span></p></td>
<td>
Enumerated type, e.g. dvd.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>media_id</code></em>:</span></p></td>
<td>
The media_id which identifies the Media - this is provided
so that if DeviceKit or another program is able to identify the right media
before continuing, note however that it's not the DeviceKit oblication to
check the media when the transaction is re-scheduled this is the backend task.
An example media_id's is Debian testing amd64 Bin-1.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>media_text</code></em>:</span></p></td>
<td>
Might be used for the disk label too, something like Fedora Disk 1
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.43"></a><h3>
<a name="Transaction::RequireRestart"></a>The RequireRestart signal</h3>
<pre class="programlisting">RequireRestart ('u'type,
's'package_id)</pre>
</div>
<p>
This signal is sent when the session program should notify the user that a restart is
required.
</p>
<p>
This is optional, but highly recommended.
</p>
<p>
This can be sent as many times as needed by the backend script.
PackageKit will always choose the 'worst' method in the UI notification.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em>:</span></p></td>
<td>
One of system, application or
session.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_id</code></em>:</span></p></td>
<td>
The package ID that caused the restart notifier.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.48"></a><h3>
<a name="Transaction::Transaction"></a>The Transaction signal</h3>
<pre class="programlisting">Transaction ('o'object_path,
's'timespec,
'b'succeeded,
'u'role,
'u'duration,
's'data,
'u'uid,
's'cmdline)</pre>
</div>
<p>
This signal is sent when more details are required about a specific transaction.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>object_path</code></em>:</span></p></td>
<td>
The transaction ID of the old transaction.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>timespec</code></em>:</span></p></td>
<td>
The timespec of the old transaction in ISO8601 format.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>succeeded</code></em>:</span></p></td>
<td>
If the transaction succeeded.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>role</code></em>:</span></p></td>
<td>
The role enumerated type.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>duration</code></em>:</span></p></td>
<td>
The duration of the transaction in milliseconds.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em>:</span></p></td>
<td>
Any data associated with the transaction.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>uid</code></em>:</span></p></td>
<td>
The user ID of the user that scheduled the action.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cmdline</code></em>:</span></p></td>
<td>
The command line of the tool that scheduled the action, e.g.
/usr/bin/gpk-application.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.51"></a><h3>
<a name="Transaction::UpdateDetail"></a>The UpdateDetail signal</h3>
<pre class="programlisting">UpdateDetail ('s'package_id,
'as'updates,
'as'obsoletes,
'as'vendor_urls,
'as'bugzilla_urls,
'as'cve_urls,
'u'restart,
's'update_text,
's'changelog,
'u'state,
's'issued,
's'updated)</pre>
</div>
<p>
This signal is sent when more details are required about a specific update.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>package_id</code></em>:</span></p></td>
<td>
The package ID
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>updates</code></em>:</span></p></td>
<td>
A list of package_id's that are to be updated.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>obsoletes</code></em>:</span></p></td>
<td>
A list of package_id's that are to be obsoleted.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>vendor_urls</code></em>:</span></p></td>
<td>
A list of URLs with more details on the update, e.g. a page with more
information on the update.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>bugzilla_urls</code></em>:</span></p></td>
<td>
A list of bugzilla URL with more details on the update.
If no URLs are available then this field should be left empty.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>cve_urls</code></em>:</span></p></td>
<td>
A list of CVE URLs with more details on the security advisory.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>restart</code></em>:</span></p></td>
<td>
A valid restart type, e.g. system.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>update_text</code></em>:</span></p></td>
<td>
The update text describing the update.
If formatting is required, then markdown syntax should be used,
e.g. This is **critically** important
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>changelog</code></em>:</span></p></td>
<td>
The ChangeLog text describing the changes since the last version.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>state</code></em>:</span></p></td>
<td>
The state of the update, e.g. stable or
testing.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>issued</code></em>:</span></p></td>
<td>
The ISO8601 encoded date that the update was issued.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>updated</code></em>:</span></p></td>
<td>
The ISO8601 encoded date that the update was updated.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.54"></a><h3>
<a name="Transaction::DistroUpgrade"></a>The DistroUpgrade signal</h3>
<pre class="programlisting">DistroUpgrade ('u'type,
's'name,
's'summary)</pre>
</div>
<p>
This signal allows the backend to communicate distribution
upgrades to the session.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>type</code></em>:</span></p></td>
<td>
A valid upgrade enumerated type, e.g. stable
or unstable
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em>:</span></p></td>
<td>
The short name of the distribution, e.g. Fedora Core 10 RC1
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>summary</code></em>:</span></p></td>
<td>
The multi-line description of the release.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.57"></a><h3>
<a name="Transaction::ItemProgress"></a>The ItemProgress signal</h3>
<pre class="programlisting">ItemProgress ('s'id,
'u'status,
'u'percentage)</pre>
</div>
<p>
This signal allows the backend to send infomation about
package or repository progress when using Simultanous mode.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>id</code></em>:</span></p></td>
<td>
A valid package_id, e.g. hal;0.1.0;i386;fedora
or a repo_id.
A repo_id may only be used when running RefreshCache.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>status</code></em>:</span></p></td>
<td>
The status enumerated value that is being completed.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>percentage</code></em>:</span></p></td>
<td>
The percentage of this package action is completed.
</td>
</tr>
</tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.60"></a><h3>
<a name="Transaction::Changed"></a>The Changed signal</h3>
<pre class="programlisting">Changed ()</pre>
</div>
<p>
This signal is emitted when a property on the interface changes.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.9.63"></a><h3>
<a name="Transaction::Destroy"></a>The Destroy signal</h3>
<pre class="programlisting">Destroy ()</pre>
</div>
<p>
This signal is sent when the transaction has been destroyed and is
no longer available for use.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
</div>
<div class="refsect1">
<a name="id-1.3.4.10"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="id-1.3.4.10.2"></a><h3>
<a name="Transaction:Role"></a>The "Role" property</h3>
<pre class="programlisting">'Role'read'u'
</pre>
</div>
<p>
The transaction role enum, e.g. update-system.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.5"></a><h3>
<a name="Transaction:Status"></a>The "Status" property</h3>
<pre class="programlisting">'Status'read'u'
</pre>
</div>
<p>
The transaction status enum, e.g. downloading.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.8"></a><h3>
<a name="Transaction:LastPackage"></a>The "LastPackage" property</h3>
<pre class="programlisting">'LastPackage'read's'
</pre>
</div>
<p>
The last package_id that was processed, e.g. hal;0.1.2;i386;fedora.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.11"></a><h3>
<a name="Transaction:Uid"></a>The "Uid" property</h3>
<pre class="programlisting">'Uid'read'u'
</pre>
</div>
<p>
The uid of the user that started the transaction.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.14"></a><h3>
<a name="Transaction:Percentage"></a>The "Percentage" property</h3>
<pre class="programlisting">'Percentage'read'u'
</pre>
</div>
<p>
The percentage complete of the transaction.
</p>
<p>
Backends should set this value to 101 if the amount complete cannot be calculated.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.18"></a><h3>
<a name="Transaction:AllowCancel"></a>The "AllowCancel" property</h3>
<pre class="programlisting">'AllowCancel'read'b'
</pre>
</div>
<p>
If the transaction can be cancelled.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.21"></a><h3>
<a name="Transaction:CallerActive"></a>The "CallerActive" property</h3>
<pre class="programlisting">'CallerActive'read'b'
</pre>
</div>
<p>
If the original caller of the method is still connected to the system bus.
This is usually an indication that the client can handle it's own error handling and
EULA callbacks rather than another program taking over.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.24"></a><h3>
<a name="Transaction:ElapsedTime"></a>The "ElapsedTime" property</h3>
<pre class="programlisting">'ElapsedTime'read'u'
</pre>
</div>
<p>
The amount of time elapsed during the transaction in seconds.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.27"></a><h3>
<a name="Transaction:RemainingTime"></a>The "RemainingTime" property</h3>
<pre class="programlisting">'RemainingTime'read'u'
</pre>
</div>
<p>
The estimated time remaining of the transaction in seconds, or 0 if not known.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.30"></a><h3>
<a name="Transaction:Speed"></a>The "Speed" property</h3>
<pre class="programlisting">'Speed'read'u'
</pre>
</div>
<p>
The estimated speed of the transaction (copying, downloading, etc.) in bits per second, or 0 if not known.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.33"></a><h3>
<a name="Transaction:DownloadSizeRemaining"></a>The "DownloadSizeRemaining" property</h3>
<pre class="programlisting">'DownloadSizeRemaining'read't'
</pre>
</div>
<p>
The number of bytes remaining to download, 0 if nothing is left to download.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
<hr>
<div class="refsect2">
<a name="id-1.3.4.10.36"></a><h3>
<a name="Transaction:TransactionFlags"></a>The "TransactionFlags" property</h3>
<pre class="programlisting">'TransactionFlags'read't'
</pre>
</div>
<p>
The flags set for this transaction, e.g. SIMULATE or ONLY_DOWNLOAD.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody></tbody>
</table></div>
</div>
</div>
<div class="footer">
<hr>
Generated by GTK-Doc V1.20</div>
</body>
</html>
|