Contact Sales Sitemap Customer Login

Linux Command Reference: yum (CentOS, Fedora)

yum is the package manager for most RedHat-based Linux distributions, including RedHat Enterprise Linux, Fedora, OpenSuSE, and their derivatives.


Contents

[edit]

Using Yum

Yum is quite simple to use from the Command Line Interface (CLI). This guide will go over the most common uses for yum.


[edit]

Using Yum to install a package

To install a package with yum, invoke the following command:

 yum install <packagename>

Replace <packagename> with the name of the package, and do not enclose it in brackets. Yum will then connect up to the repositories it has set up, and look for the package in question.


[edit]

Removing an installed package with yum

To remove a package with yum, invoke the following command:

 yum remove <packagename>

Again, replace <packagename> with the name of the package.


[edit]

Search for a package within Yum

In addition to being able to install and remove packages, Yum is also capable of performing package searches.

To search the yum repos for a package, invoke the following command:

 yum search <packagename>


[edit]

Update with Yum

Yum can update one or all of your installed packages (and any required dependencies).

To update a single package with Yum, invoke the following command:

 yum update <packagename>

To update all installed packages, simply give no packagename.


[edit]

Other Uses

Those are just the most common uses for Yum - other uses include:

More in-depth information on these can be found in the yum man page by typing man yum at the command prompt, or at the die.net online docs

Retrieved from "http://wiki.vpslink.com/Linux_Command_Reference:_yum_%28CentOS%2C_Fedora%29"
Recent Changes | RSS RSS Feed