HOW TO RUN A YUM UPDATE FROM A SPECIFIC REPOSITORY

You can list all the repository IDs which are installed in your system by using the command,

sudo yum repolist

repo1

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

repo2

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

repo3

(or)

yum disablerepo=”*” enablerepo=”ius” install rsyslog4

For updating a repository (say epel), you can use the command,

yumdisablerepo=”*” enablerepo=”epel” update

Note: You can add more than one repository by adding it in the “” separated by commas. eg: “epel,base,extras”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s