linux poison RSS
linux poison Email

Package management in Fedora 9

To manage packages from the command line in Fedora 9, there are two options available: first, you could continue to use the yum command which is still present. The second option is to use the PackageKit command-line tool, pkcon, which works a lot like the yum command but which interfaces with the PackageKit service.

Like yum, pkcon accepts a subcommand and arguments. Here are some of the more common uses and the closest corresponding yum command:

pkcon commandyum commanddescription
pkcon search name patternyum list patternlists packages with names containing pattern (note: with yum it's necessary to specify wildcard astrisks if required.).
pkcon search details patternyum search patternlists packages with details (including description) containing pattern
pkcon install packageIdyum install packagenameinstalls the designated package
pkcon install-file filenameyum localinstall filenameinstalls the designated RPM file, resolving dependencies through yum repositories as required
pkcon update-systemyum updateupdate all packages on the system for which updates are available
pkcon update packageIdyum update packagenameupdate only the specified package
pkcon get description packageIdyum info packagenameget detailed information on the specified package
pkcon get depends packageIdyum deplist packagenamedisplay 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.


Post a Comment

Related Posts with Thumbnails