Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to update specific repo in yum?

Tags:

rpm

yum

I have multiple repos like RepoA.repo, RepoB.repo, RepoC.repo. I want to update only RepoA.repo as new RPMs will get add into it daily.
How can I update only RepoA.repo rather than using "yum update" which updates all the repos and takes long time.

Thanks, MadEngineer

like image 349
Balasekhar Nelli Avatar asked Jan 06 '23 01:01

Balasekhar Nelli


1 Answers

There is no problem; because if no new rpms will be added to repoB and repoC; then the update will only take new rpms from repoA. If you really want to make sure that all your updates come from repoA; and none from another repository; you can just update while disabling all repositories execpt repoA:

yum --disablerepo="*" --enablerepo="repoA" update

Reference: here

like image 102
Chris Maes Avatar answered Jan 31 '23 07:01

Chris Maes