Like yum, pkcon accepts a subcommand and arguments. Here are some of the more common uses and the closest corresponding yum command:
pkcon command | yum command | description |
pkcon search name pattern | yum list pattern | lists packages with names containing pattern (note: with yum it's necessary to specify wildcard astrisks if required.). |
pkcon search details pattern | yum search pattern | lists packages with details (including description) containing pattern |
pkcon install packageId | yum install packagename | installs the designated package |
pkcon install-file filename | yum localinstall filename | installs the designated RPM file, resolving dependencies through yum repositories as required |
pkcon update-system | yum update | update all packages on the system for which updates are available |
pkcon update packageId | yum update packagename | update only the specified package |
pkcon get description packageId | yum info packagename | get detailed information on the specified package |
pkcon get depends packageId | yum deplist packagename | display dependency information for a package |
Since pkcon queues requests with the PackageManager service, it does not ask for confirmation before proceeding with an installation or removal (which is the default behavior for yum). However, you do have the option of adding the -n option to the command line to enqueue a request without waiting for it to complete.
0 comments:
Post a Comment