Saturday, November 11, 2017

Install packages from centos cd

1- to list all repo install, using below command
$ yum repolist
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * c6-media:
repo id                                                                                 repo name                                                                                       status
c6-media                                                                                CentOS-6 - Media                                                                                6,346
repolist: 6,346

$ yum repolist all
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
 * c6-media:
repo id                                                                             repo name                                                                                   status
C6.0-base                                                                           CentOS-6.0 - Base                                                                           disabled
C6.0-centosplus                                                                     CentOS-6.0 - CentOSPlus                                                                     disabled
C6.0-contrib                                                                        CentOS-6.0 - Contrib                                                                        disabled
C6.0-extras                                                                         CentOS-6.0 - Extras                                                                         disabled
C6.0-updates                                                                        CentOS-6.0 - Updates                                                                        disabled
C6.1-base                                                                           CentOS-6.1 - Base                                                                           disabled
C6.1-centosplus                                                                     CentOS-6.1 - CentOSPlus                                                                     disabled
C6.1-contrib                                                                        CentOS-6.1 - Contrib                                                                        disabled
C6.1-extras                                                                         CentOS-6.1 - Extras                                                                         disabled
C6.1-updates                                                                        CentOS-6.1 - Updates                                                                        disabled
C6.2-base                                                                           CentOS-6.2 - Base                                                                           disabled
C6.2-centosplus                                                                     CentOS-6.2 - CentOSPlus                                                                     disabled
C6.2-contrib                                                                        CentOS-6.2 - Contrib                                                                        disabled
C6.2-extras                                                                         CentOS-6.2 - Extras                                                                         disabled
C6.2-updates                                                                        CentOS-6.2 - Updates                                                                        disabled
c6-media                                                                            CentOS-6 - Media                                                                            enabled: 6,346
debug                                                                               CentOS-6 - Debuginfo                                                                        disabled
repolist: 6,346

2- update content of /etc/yum.repos.d/CentOS-Media.repo like below

name=CentOS-$releasever - Media

3- after that run command below
$ yum update

4-- now we can see all the packages from cd with command below
$  yum list

or  for all avaiable
$ yum list available 

or for installed packages
$ yum list installed

No comments:

Post a Comment