How to Drop Oracle Enterprise Manager 12c repository

[oracle@db11gr2 config]$ $ORACLE_HOME/bin/emca -deconfig dbcontrol db -repos drop

STARTED EMCA at Feb 10, 2013 4:59:04 PM

EM Configuration Assistant, Version 11.2.0.0.2 Production

Copyright (c) 2003, 2005, Oracle. All rights reserved.

Enter the following information:

Database SID: DB11G

Listener port number: 1521

Password for SYS user:

Password for SYSMAN user:

Do you wish to continue? [yes(Y)/no(N)]: y

Feb 10, 2013 4:59:24 PM oracle.sysman.emcp.EMConfig perform

INFO: This operation is being logged at /u01/app/oracle/cfgtoollogs/emca/DB11G/emca_2013_02_10_16_59_04.log.

Feb 10, 2013 4:59:24 PM oracle.sysman.emcp.util.DBControlUtil stopOMS

INFO: Stopping Database Control (this may take a while) …

Feb 10, 2013 4:59:54 PM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl

WARNING: Error initializing SQL connection. SQL operations cannot be performed

Feb 10, 2013 4:59:54 PM oracle.sysman.emcp.EMReposConfig invoke

INFO: Dropping the EM repository (this may take a while) …

Feb 10, 2013 5:15:12 PM oracle.sysman.emcp.EMReposConfig invoke

INFO: Repository successfully dropped

Enterprise Manager configuration completed successfully

FINISHED EMCA at Feb 10, 2013 5:15:18 PM

[oracle@db11gr2 config]$

How to setup local yum repository

Create a directory to mount the .iso file

[root@homelinux sunil]# mkdir /mnt/rhl6

Copy rhel-server-6.1-x86_64-dvd.iso to the /tmp directory

Mount the linux .iso to rhl6 directory

[root@homelinux sunil]# mount -o loop /tmp/rhel-server-6.1-x86_64-dvd.iso /mnt/rhl6

Create a repository configuration file

[root@homelinux sunil]# vi /etc/yum.repos.d/local.repo

Add the following entry
[local repository]
name=RHEL6
Baseurl=file:///mnt/rhl6
enabled=1

Save & close the file

list the packages using yum list and yum install packagename to install the package.