{"id":5739,"date":"2020-06-23T14:16:20","date_gmt":"2020-06-23T12:16:20","guid":{"rendered":"https:\/\/speefak.spdns.de\/oss_lifestyle\/?p=5739"},"modified":"2024-05-07T11:28:19","modified_gmt":"2024-05-07T09:28:19","slug":"paketmanagement-packagekit-befehle","status":"publish","type":"post","link":"https:\/\/speefak.spdns.de\/oss_lifestyle\/paketmanagement-packagekit-befehle\/","title":{"rendered":"Paketmanagement &#8211; PackageKit Befehle"},"content":{"rendered":"<p><a href=\"https:\/\/www.freedesktop.org\/software\/PackageKit\/\" target=\"_blank\" rel=\"noopener noreferrer\">PackageKit<\/a> ist ein allgemeines Frontend mit dem Ziel Installation und Aktualisierung von Software auf Linux basierenden Systeme zu erleichtern &#8211; unabh\u00e4ngig von der verwendeten Linux-Distribution. Prim\u00e4res Ziel ist es, die zur Installation von Software verwendeten Werkzeuge ( z.B. <a href=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/paketmanagement-befehle-zypper-vs-apt\/\">Zypper und APT<\/a> ), der verschiedenen Distributionen zu vereinheitlichen. PackageKit setzt dabei auf die neuesten Technologien wie beispielsweise PolicyKit.<\/p>\n<p>Die tats\u00e4chlichen Distributions Werkzeuge zur Installation von Paketen (also Beispielsweise zypper, yum, apt, Conary, etc) werden von PackageKit eingesetzt und k\u00f6nnen parallel weiterhin benutzt werden. PackageKit ist nicht dazu gedacht, diese Tools zu ersetzen.<\/p>\n<h2>Synopsis<\/h2>\n<p><code><strong>pkcon<\/strong> [<strong>OPTION<\/strong>...] [<strong>COMMAND<\/strong>]<\/code><\/p>\n<section id=\"Description\">\n<h2>Description<\/h2>\n<p>This manual page documents briefly the <strong>pkcon<\/strong> command.<\/p>\n<p><strong>pkcon<\/strong> is the command line client for PackageKit.<\/p>\n<\/section>\n<section id=\"Commands\">\n<h2>Commands<\/h2>\n<p>pkcon knows about the following commands. Depending on the backend in use, not all of them may be available.<\/p>\n<dl>\n<dt>backend-details<\/dt>\n<dd>Print information about the PackageKit backend in use.<\/dd>\n<dt>get-roles<\/dt>\n<dd>List the roles that a transaction can have.<\/dd>\n<dt>get-groups<\/dt>\n<dd>List the available package groups.<\/dd>\n<dt>get-filters<\/dt>\n<dd>List the available filters.<\/dd>\n<dt>get-transactions<\/dt>\n<dd>List known transactions.<\/dd>\n<dt>get-time <em>ROLE<\/em><\/dt>\n<dd>Print the time that has passed since the last transaction with the given role.<\/dd>\n<dt>search [name|details|group|file] <em>DATA<\/em><\/dt>\n<dd>Search for a package matching the given data. The search is performed in the package information that is indicated by the first argument: name, details, group or files.<\/dd>\n<dt>install <em>PACKAGES<\/em><\/dt>\n<dd>Install the given packages from repositories.<\/dd>\n<dt>install-local <em>FILES<\/em><\/dt>\n<dd>Install the given packages from the local filesystem.<\/dd>\n<dt>download <em>DIRECTORY PACKAGES<\/em><\/dt>\n<dd>Download the given packages from repositories, and store them in the given directory.<\/dd>\n<dt>install-sig <em>TYPE KEY_ID PACKAGE<\/em><\/dt>\n<dd>Install a package signature. Only GPG signatures are supported at this time.<\/dd>\n<dt>remove <em>PACKAGE<\/em><\/dt>\n<dd>Remove the given package.<\/dd>\n<dt>update [<em>PACKAGES<\/em>]<\/dt>\n<dd>Update the system by installing available updates. If a list of packages is specified, only install updates for these packages.<\/dd>\n<dt>refresh [force]<\/dt>\n<dd>Refresh the cached information about available updates.<\/dd>\n<dt>resolve <em>PACKAGE<\/em><\/dt>\n<dd>Resolve the given package name and print information about installed or available packages and updates.<\/dd>\n<dt>upgrade-system <em>DISTRIBUTION<\/em> [minimal|default|complete]<\/dt>\n<dd>Upgrade the system to the given distribution.<\/dd>\n<dt>get-updates<\/dt>\n<dd>List available updates.<\/dd>\n<dt>get-distro-upgrades<\/dt>\n<dd>List available distribution upgrades.<\/dd>\n<dt>depends-on <em>PACKAGE<\/em><\/dt>\n<dd>List dependencies fo the given package.<\/dd>\n<dt>required-by <em>PACKAGE<\/em><\/dt>\n<dd>List packages that require the given package.<\/dd>\n<dt>get-details <em>PACKAGE<\/em><\/dt>\n<dd>Print details about the available or installed package with the given name.<\/dd>\n<dt>get-details-local <em>FILE<\/em><\/dt>\n<dd>Print details about the local package.<\/dd>\n<dt>get-files <em>PACKAGE<\/em><\/dt>\n<dd>List the files contained in the given package.<\/dd>\n<dt>get-files-local <em>FILE<\/em><\/dt>\n<dd>List the files contained in the local package.<\/dd>\n<dt>get-update-detail <em>PACKAGE<\/em><\/dt>\n<dd>Print the package changelog for the given package.<\/dd>\n<dt>get-packages<\/dt>\n<dd>List all available and installed packages.<\/dd>\n<dt>repo-list<\/dt>\n<dd>List all configured package repositories.<\/dd>\n<dt>repo-enable <em>REPOSITORY<\/em><\/dt>\n<dd>Enable the given repository.<\/dd>\n<dt>repo-disable <em>REPOSITORY<\/em><\/dt>\n<dd>Disable the given repository.<\/dd>\n<dt>repo-set-data <em>REPOSITORY PARAMETER DATA<\/em><\/dt>\n<dd>Set the given parameter to the given value for the repository.<\/dd>\n<dt>repo-remove <em>REPOSITORY PARAMETER<\/em><\/dt>\n<dd>Removes the repository and optionally any packages installed from it.<\/dd>\n<dt>what-provides <em>STRING<\/em><\/dt>\n<dd>List packages that provide the given string.<\/dd>\n<dt>accept-eula <em>EULA_ID<\/em><\/dt>\n<dd>Accept the EULA with the given id.<\/dd>\n<dt>get-categories<\/dt>\n<dd>List available categories.<\/dd>\n<dt>repair<\/dt>\n<dd>Attempt to repair the system package database.<\/dd>\n<dt>offline-get-prepared<\/dt>\n<dd>Print information about the prepared offline update. If no offline update is prepared, exit with an exit code of 1.<\/dd>\n<dt>offline-trigger<\/dt>\n<dd>Trigger an offline update.<\/dd>\n<dt>offline-status<\/dt>\n<dd>Print information about the result of the last offline update.<\/dd>\n<\/dl>\n<\/section>\n<section id=\"Options\">\n<h2>Options<\/h2>\n<p>The following options can be used to influence the behavior of <strong>pkcon<\/strong>.<\/p>\n<dl>\n<dt><a id=\"--version\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--version\">&#8211;version<\/a><\/dt>\n<dd>Print the program version and exit.<\/dd>\n<dt><a id=\"-h\" href=\"https:\/\/www.mankier.com\/1\/pkcon#-h\">-h<\/a>, <a id=\"--help\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--help\">&#8211;help<\/a><\/dt>\n<dd>Show help options.<\/dd>\n<dt><a id=\"--help-all\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--help-all\">&#8211;help-all<\/a><\/dt>\n<dd>Show all help options.<\/dd>\n<dt><a id=\"--filter\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--filter\">&#8211;filter<\/a> <em>FILTER<\/em><\/dt>\n<dd>Set the filter to use.<\/dd>\n<dt><a id=\"-y\" href=\"https:\/\/www.mankier.com\/1\/pkcon#-y\">-y<\/a>, <a id=\"--noninteractive\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--noninteractive\">&#8211;noninteractive<\/a><\/dt>\n<dd>Install packages without asking for confirmation.<\/dd>\n<dt><a id=\"--only-download\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--only-download\">&#8211;only-download<\/a><\/dt>\n<dd>Prepare the transaction by downloading packages only.<\/dd>\n<dt><a id=\"-n\" href=\"https:\/\/www.mankier.com\/1\/pkcon#-n\">-n<\/a>, <a id=\"--background\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--background\">&#8211;background<\/a><\/dt>\n<dd>Run the command using idle network bandwidth and also using less power.<\/dd>\n<dt><a id=\"-p\" href=\"https:\/\/www.mankier.com\/1\/pkcon#-p\">-p<\/a>, <a id=\"--plain\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--plain\">&#8211;plain<\/a><\/dt>\n<dd>Print to screen a machine-readable output, rather than using animated widgets.<\/dd>\n<dt><a id=\"-v\" href=\"https:\/\/www.mankier.com\/1\/pkcon#-v\">-v<\/a>, <a id=\"--verbose\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--verbose\">&#8211;verbose<\/a><\/dt>\n<dd>Show debugging information.<\/dd>\n<dt><a id=\"-c\" href=\"https:\/\/www.mankier.com\/1\/pkcon#-c\">-c<\/a>, <a id=\"--cache-age\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--cache-age\">&#8211;cache-age<\/a> <em>AGE<\/em><\/dt>\n<dd>Set the maximum acceptable age for cached metadata, in seconds. Use -1 for &#8216;never&#8217;.<\/dd>\n<dt><a id=\"--allow-untrusted\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--allow-untrusted\">&#8211;allow-untrusted<\/a><\/dt>\n<dd>Allow untrusted packages to be installed.<\/dd>\n<dt><a id=\"--allow-downgrade\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--allow-downgrade\">&#8211;allow-downgrade<\/a><\/dt>\n<dd>Allow packages to be downgraded during transaction.<\/dd>\n<dt><a id=\"--allow-reinstall\" href=\"https:\/\/www.mankier.com\/1\/pkcon#--allow-reinstall\">&#8211;allow-reinstall<\/a><\/dt>\n<dd>Allow packages to be reinstalled during transaction.<\/dd>\n<\/dl>\n<\/section>\n<hr \/>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2821 alignleft\" src=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-content\/uploads\/2014\/08\/CC_BY_NC_SA.png\" alt=\"CC_BY_NC_SA\" width=\"65\" height=\"23\" \/><span style=\"font-size: 8pt;\"><span style=\"font-size: 10pt;\">by Speefak<\/span><br \/>\n<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PackageKit ist ein allgemeines Frontend mit dem Ziel Installation und Aktualisierung von Software auf Linux basierenden Systeme zu erleichtern &#8211; unabh\u00e4ngig von der verwendeten Linux-Distribution. Prim\u00e4res Ziel ist es, die zur Installation von Software verwendeten Werkzeuge ( z.B. Zypper und APT ), der verschiedenen Distributionen zu vereinheitlichen. PackageKit setzt dabei auf die neuesten Technologien wie [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,37,54],"tags":[],"class_list":["post-5739","post","type-post","status-publish","format-standard","hentry","category-debian","category-sailfish-os","category-shell-programme"],"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"speefak","author_link":"https:\/\/speefak.spdns.de\/oss_lifestyle\/author\/speefak_oss\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/category\/debian\/\" rel=\"category tag\">Debian<\/a> <a href=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/category\/sailfish-os\/\" rel=\"category tag\">Sailfish OS<\/a> <a href=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/category\/shell-programme\/\" rel=\"category tag\">Shell<\/a>","rttpg_excerpt":"PackageKit ist ein allgemeines Frontend mit dem Ziel Installation und Aktualisierung von Software auf Linux basierenden Systeme zu erleichtern &#8211; unabh\u00e4ngig von der verwendeten Linux-Distribution. Prim\u00e4res Ziel ist es, die zur Installation von Software verwendeten Werkzeuge ( z.B. Zypper und APT ), der verschiedenen Distributionen zu vereinheitlichen. PackageKit setzt dabei auf die neuesten Technologien wie&hellip;","_links":{"self":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/posts\/5739","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/comments?post=5739"}],"version-history":[{"count":0,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/posts\/5739\/revisions"}],"wp:attachment":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/media?parent=5739"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/categories?post=5739"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/tags?post=5739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}