With yum update I'm not able to update packages. I have tried every possible solution which is provided like yum clean, yum repolist, etc but none of this seems to solve this problem.

sudo yum update
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: centos.mirror.net.in
 * elrepo: elrepo.reloumirrors.net
 * epel: mirror.nes.co.id
 * extras: mirrors.fibergrid.in
 * nux-dextop: mirror.li.nux.ro
 * rpmfusion-nonfree-updates: www.mirrorservice.org
 * updates: mirrors.fibergrid.in

No packages marked for update 

# CentOS-Base.repo
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.

name=CentOS-$releasever - Base

#released updates 
name=CentOS-$releasever - Updates

#additional packages that may be useful
name=CentOS-$releasever - Extras

#additional packages that extend functionality of existing packages
name=CentOS-$releasever - Plus

#packages used/produced in the build but not released
#name=CentOS-$releasever - Addons

NOTE - With #baseurl as well no luck.

  • 1
    You have an answer already that asks you to run “yum clean all”; what exactly did you run and what were the outputs? – Jeff Schaller Jul 29 '18 at 16:42
  • 1
    Why do you think that you have updates available? – Ignacio Vazquez-Abrams Jul 29 '18 at 18:00

Issue at Hand

You are unable to update via yum.


I will be referencing this stack exchange post as well as this CentOS Wiki page in this answer.

You are first going to need to verify that all of your repositories are correct. The Wiki I linked should have additional links to various 3rd party repositories as well as the configurations of the base repositories. I will also note, that the 3rd party repositories could potentially come into conflict with other aspects of your system. Unlike, with Debian though, I have found rpm based distros to have better support of 3rd party repos.

After you have verified that all of your repositories are configured properly, (each 3rd party/vendor should provide details as to what a working configuration file is for your respective version of CentOS) you will need to run the following command with root(sudo) permissions:

yum clean all  

According to both the Wiki and user1403360, this will clear your cache and redownload your mirrors the next time your run yum update.

The issue is your repositories may not be correct. Remember, unlike with Debian based Distros, rpm based Distros typically require that each repository is its own file in the /etc/yum.repos.d/ directory.

Here is a good guide on how to manage repositories for a Redhat based system. Please verify that you have managed your repositories in the manner outlined in the link. If necessary purge all of your repositories and add them back using the outlined steps in the link.


You need to make sure your repositories are managed and configured correctly, then you need to clear your cache and redownload your mirrors. This should solve your issue.

Please comment if you have any questions or issues with this answer. I highly suggest you read through each link I have provided thoroughly before attempting the commands. I appreciate feedback to correct any misconceptions and to improve my posts. I can update my answer as needed.

Best of Luck!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.