Linux

Different linux flavors have different package managers. For CentOS and Redhat, yum is the default package manager. Here is a list of useful yum commands

1. yum update

You usually should be working with the latest version of your software. This is used for making a full system update.

yum update

2. yum list

This is used to make a list of available packages.

yum list

3. yum list installed

To list all packages that have already been installed

[root@2228-4203-3793 ~]# yum list installed
Loaded plugins: fastestmirror
Determining fastest mirrors
epel/metalink                                                                                                                          |  28 kB     00:00     
 * base: mirrors.pidginhost.com
 * epel: epel.check-update.co.uk
 * extras: mirrors.pidginhost.com
 * updates: mirrors.pidginhost.com
base                                                                                                                                   | 3.7 kB     00:00     
epel                                                                                                                                   | 4.4 kB     00:00     
epel/primary_db                                                                                                                        | 6.3 MB     00:00     
extras                                                                                                                                 | 3.4 kB     00:00     
mod-pagespeed                                                                                                                          |  951 B     00:00     
mod-pagespeed/primary                                                                                                                  | 5.5 kB     00:00     
mod-pagespeed                                                                                                                                           36/36
updates                                                                                                                                | 3.4 kB     00:00     
updates/primary_db                                                                                                                     | 4.7 MB     00:09     
vz-base                                                                                                                                |  951 B     00:00     
vz-updates                                                                                                                             |  951 B     00:00     
vz-updates/primary                                                                                                                     | 2.2 kB     00:00     
vz-updates                                                                                                                                                8/8
Installed Packages
MAKEDEV.x86_64                                                        3.24-6.el6                                                                installed     
acl.x86_64                                                            2.2.49-6.el6                                                              installed     
apr.x86_64                                                            1.3.9-5.el6_2                                                             installed     
apr-devel.x86_64                                                      1.3.9-5.el6_2                                                             @base         
apr-util.x86_64                                                       1.3.9-3.el6_0.1                                                           installed     
apr-util-devel.x86_64                                                 1.3.9-3.el6_0.1                                                           @base         
apr-util-ldap.x86_64                                                  1.3.9-3.el6_0.1                                                           installed 

4. yum install

This is used to install packages for your system

yum install

5. yum search [packagename]

This is used to search packages available

yum search vsftpd
[root@2228-4203-3793 ~]# yum search vsftpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.pidginhost.com
 * epel: epel.check-update.co.uk
 * extras: mirrors.pidginhost.com
 * updates: mirrors.pidginhost.com
epel/pkgtags                                                                                                                           | 887 kB     00:00     
==================================================================== N/S Matched: vsftpd =====================================================================
vsftpd.x86_64 : Very Secure Ftp Daemon