Solved

Centos: How to update only one repo via yum

Posted on 2008-10-16
3
709 Views
Last Modified: 2008-10-17
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
Comment
Question by:andy7789
3 Comments
 
LVL 6

Expert Comment

by:dathho
ID: 22735852
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
 

Author Comment

by:andy7789
ID: 22736069
i have never seen yumex for centos 5 64 bits- only for centos 4
0
 
LVL 1

Accepted Solution

by:
matt_c earned 500 total points
ID: 22738541
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question