Basic yum commands

Original post by imdeemvp
[http://forums.fedoraforum.org/showthread.php?t=25880]
[small modification by me :)]

To update system. Update of the system with all the dependencies that are necessary:
$ sudo yum update

To make a search:
$ yum search any-package

to get package information:
$ yum info any-package

Installation of packages with dependencies:
$ sudo yum install any-package

Uninstalling packages with dependencies:
$ sudo yum remove any-package

The following thing will list all the packages installed in the system:
$ yum list installed | less

To list using *patterns*
For installed packages in database:
$ yum list installed | grep *patterns*

For all packages in database:
$ yum list | grep *patterns*

The following thing will list all the packages installed in the system and that can (they must) be updated:
$ yum list updates | less

Clean yum catch and temp files to free disk space:
$ sudo yum clean all

Group install
Code:
$ sudo yum groupinstall "groupname"
{Don't forget the quotation marks for group install.}

Popular Posts