|
Full Root Access for a Fraction of a Dedicated Server's Cost CentOS Virtual Private Server Hosting at VPSLink will save you money over a dedicated server without sacrificing any administrative control. Whether you are scaling up from a shared hosting environment or looking to cut dedicated server costs, consider a CentOS VPS. |
Categories: Commands | CentOS | Fedora
yum is the package manager for most RedHat-based Linux distributions, including RedHat Enterprise Linux, Fedora, OpenSuSE, and their derivatives.
Contents |
Yum is quite simple to use from the Command Line Interface (CLI). This guide will go over the most common uses for yum.
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.
To remove a package with yum, invoke the following command:
yum remove <packagename>
Again, replace <packagename> with the name of the package.
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>
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.
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