You can list all the repository IDs which are installed in your system by using the command,
sudo yum repolist
Note: The list of repositories depends on the installations you have done.
Now you can make yum to ignore all the repositories except the repository you have specified and list the available packages from this repository by typing the following command,
yum —disablerepo=”*” —enablerepo=”vmware-tools” list available
There are other options which you can use instead of ‘list available’.
For example, you can specify a repository to install a package
yum –y —enablerepo=epel install R
yum —disablerepo=”*” —enablerepo=”ius” install rsyslog4
For updating a repository (say epel), you can use the command,
yum —disablerepo=”*” —enablerepo=”epel” update
Note: You can add more than one repository by adding it in the “” separated by commas. eg: “epel,base,extras”