Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Yum upgrade centos question

Posted on 2013-01-22
Medium Priority
Last Modified: 2013-01-22
I'm going to upgrade cent06.2 to 6.3, but I have a question. IF I do yum upgrade, would it go on update everything from repository or can I just use one repository to update  rather than   yum  update,  can I use yum update and provide the repository name?
Question by:mokkan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 31

Assisted Solution

farzanj earned 2000 total points
ID: 38806686
To specify repository you can mention
--disablerepo=\* and --enablerepo=name_of_repo


You can go to /etc/yum.repos.d folder and for each repo file, you can mention enable=0 except the one you want.
LVL 31

Accepted Solution

farzanj earned 2000 total points
ID: 38806715
If for any reason --disablerepo=\* doesn't work, you can try "*" instead of \*

Author Closing Comment

ID: 38806763
Thank you very much guys.
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 31

Expert Comment

ID: 38806778
Glad to help :)

Author Comment

ID: 38806862
I created the profile and put it in /etc/yum.repos.d  , but when I do yum repolist all, it is not showing. Do I need to do anything?

Author Comment

ID: 38806865
got it, my mistake

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

604 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