PKCON(1)

๐Ÿ“ฆ
version 1.4.0 ยท 2 versions
, in centos-stream 10, debian bookworm, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu noble, ubuntu questing

๐Ÿ’– NAME ๐Ÿ’–

okay so bestie, the command is pkcon, and it's the PackageKit console client ๐Ÿ’… basically your command line buddy for PackageKit ๐Ÿฆ‹


โœจ SYNOPSIS โœจ

pkcon [OPTION...] [COMMAND]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

ngl this manual page is just a quick intro to the pkcon command ๐ŸŽ€

pkcon is the command line client for PackageKit, so if you want to install, remove, update, or search for packages from your terminal, this is literally your girl ๐Ÿ‘‘


๐Ÿงš COMMANDS ๐Ÿงš

okay so pkcon knows a bunch of commands โœจ heads up though, not all of them may show up depending on the backend you're using ๐Ÿ™ˆ

  • backend-details โ€” peek at info about the PackageKit backend that's currently in use ๐Ÿ”
  • get-roles โ€” see the list of roles a transaction can have ๐ŸŽญ
  • get-groups โ€” list the available package groups ๐Ÿ“
  • get-filters โ€” list the available filters ๐Ÿซง
  • get-transactions โ€” list the transactions it knows about ๐Ÿ“œ
  • get-time ROLE โ€” see how much time has passed since the last transaction with the given role โฐ
  • search [name|details|group|file] DATA โ€” search for a package matching your data ๐Ÿ”Ž the search happens in whatever package info is picked by the first argument: name, details, group or files ๐Ÿ’œ
  • install PACKAGES โ€” install the given packages from repositories ๐Ÿ“ฆ
  • install-local FILES โ€” install the given packages from the local filesystem ๐Ÿ’พ
  • download DIRECTORY PACKAGES โ€” download the given packages from repositories and stash them in the directory you give ๐Ÿ“ฅ
  • install-sig TYPE KEY_ID PACKAGE โ€” install a package signature ๐Ÿ” only GPG signatures are supported right now, so that's the vibe ๐Ÿ™
  • remove PACKAGE โ€” remove the given package ๐Ÿ—‘๏ธ
  • update [PACKAGES] โ€” update your system by installing the available updates ๐Ÿ†™ if you give it a list of packages, it'll only install updates for those ones ๐ŸŽฏ
  • refresh [force] โ€” refresh the cached info about available updates ๐Ÿ”„
  • resolve PACKAGE โ€” resolve the given package name and print info about installed or available packages and updates ๐Ÿงฉ
  • upgrade-system DISTRIBUTION [minimal|default|complete] โ€” upgrade your system to the given distribution ๐Ÿš€
  • get-updates โ€” list the available updates โญ
  • get-distro-upgrades โ€” list the available distribution upgrades ๐ŸŒˆ
  • depends-on PACKAGE โ€” list the dependencies for the given package ๐Ÿ•ธ๏ธ
  • required-by PACKAGE โ€” list the packages that need the given package ๐Ÿค
  • get-details PACKAGE โ€” print details about the available or installed package with the given name ๐Ÿ“‹
  • get-details-local FILE โ€” print details about the local package ๐Ÿ“„
  • get-files PACKAGE โ€” list the files inside the given package ๐Ÿ—‚๏ธ
  • get-files-local FILE โ€” list the files inside the local package ๐Ÿ—ƒ๏ธ
  • get-update-detail PACKAGE โ€” print the package changelog for the given package ๐Ÿ“
  • get-packages โ€” list every available and installed package ๐Ÿ’…
  • repo-list โ€” list all the configured package repositories ๐Ÿ“š
  • repo-enable REPOSITORY โ€” enable the given repository โœ…
  • repo-disable REPOSITORY โ€” disable the given repository โŒ
  • repo-set-data REPOSITORY PARAMETER DATA โ€” set the given parameter to the given value for the repository ๐Ÿ› ๏ธ
  • repo-remove REPOSITORY PARAMETER โ€” removes the repository and, optionally, any packages installed from it ๐Ÿงน
  • what-provides STRING โ€” list the packages that provide the given string ๐Ÿ”ฎ
  • accept-eula EULA_ID โ€” accept the EULA with the given id ๐Ÿ“œโœ๏ธ
  • get-categories โ€” list the available categories ๐Ÿท๏ธ
  • repair โ€” attempt to repair the system package database ๐Ÿฉน
  • offline-get-prepared โ€” print info about the prepared offline update ๐ŸŒ™ if no offline update is prepared, it exits with an exit code of 1 ๐Ÿ’€
  • offline-trigger โ€” trigger an offline update โšก
  • offline-status โ€” print info about the result of the last offline update ๐Ÿ“Š

๐ŸŽ€ OPTIONS ๐ŸŽ€

okay so these options can be used to tweak how pkcon behaves ๐Ÿ’–

  • --version โ€” print the program version and exit ๐Ÿท๏ธ
  • -h, --help โ€” show the help options ๐Ÿ†˜
  • --help-all โ€” show all the help options ๐Ÿ“–
  • --filter FILTER โ€” set the filter you want to use ๐Ÿซง
  • -y, --noninteractive โ€” install packages without asking you for confirmation ๐Ÿ˜คโœจ
  • --only-download โ€” prepare the transaction by only downloading packages ๐Ÿ“ฅ
  • -n, --background โ€” run the command using idle network bandwidth, and also using less power ๐Ÿ”‹๐ŸŒฟ
  • -p, --plain โ€” print a machine-readable output to the screen instead of animated widgets ๐Ÿค–
  • -v, --verbose โ€” show debugging info ๐Ÿ•ต๏ธโ€โ™€๏ธ
  • -c, --cache-age AGE โ€” set the maximum acceptable age for cached metadata, in seconds โณ use -1 for 'never' ๐Ÿ™ˆ
  • --allow-untrusted โ€” allow untrusted packages to be installed โš ๏ธ
  • --allow-downgrade โ€” allow packages to be downgraded during a transaction โฌ‡๏ธ
  • --allow-reinstall โ€” allow packages to be reinstalled during a transaction ๐Ÿ”

๐Ÿšฆ RETURN VALUES ๐Ÿšฆ

here's what the exit codes mean, bestie ๐Ÿ’…

  • 0 โ€” Success ๐ŸŽ‰
  • 1 โ€” failed with a miscellaneous internal error ๐Ÿ’ฅ
  • 3 โ€” failed with a syntax error, or failed to parse the command ๐Ÿ™ƒ
  • 4 โ€” failed because a file or directory wasn't found ๐Ÿ“‚
  • 5 โ€” nothing useful was done ๐Ÿซ 
  • 6 โ€” the initial setup failed, e.g. setting the network proxy ๐ŸŒ
  • 7 โ€” the transaction failed, check the detailed error for more info ๐Ÿงพ

๐Ÿ”— SEE ALSO ๐Ÿ”—

check out pkmon (1) too ๐Ÿ’œ

the programs are fully documented on https://www.freedesktop.org/software/PackageKit ๐Ÿ“š


๐Ÿซถ AUTHOR ๐Ÿซถ

this manual page was written by Richard Hughes <richard@hughsie.com> ๐Ÿ’–

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Richard Hughes, the author ๐ŸŒŸ


Copyright ยฉ 2007 - 2013 Richard Hughes ๐Ÿ’œ


bestie, this page is from PKCON(1) (User Commands) for PackageKit, dated July 29, 2013 ๐ŸŽ€ stay iconic and keep those packages updated ๐Ÿฆ‹โœจ

๐Ÿ“ฆ where this page comes from