Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 760
  • Last Modified:

Centos: How to update only one repo via yum

Hi all,

I have a few repos installed, but need to update only one repository, because other return some dependency errors.

what is a syntax to run yum only for a selected repo?

Thanks
0
andy7789
Asked:
andy7789
1 Solution
 
dathhoCommented:
You can temp remove the .repo file from your yum.repos.d directory or edit the the repo file(s) in question and disable it.


Try yumex if you need GUI.
0
 
andy7789Author Commented:
i have never seen yumex for centos 5 64 bits- only for centos 4
0
 
matt_cCommented:
To enable a specific repo use:
 yum --disablerepo=* --enablerepo=$RepoNameHere install $Package

where $RepoNameHere is your repo name
and $Package is your package to install

0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now