Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-11-2014, 03:13 PM
|
#1
|
Member
Registered: Jan 2011
Location: Jackson WI
Distribution: Fedora Core/Generic
Posts: 116
Rep:
|
CentOS release 6.5 (Final) yum not finding updates
Trying to update two identical production systems here and am having issues where yum is not locating nearly enough updates - its been 6+ months where the previous admin didn't update the systems so there should be more than the 3 I see below.
# yum update
Loaded plugins: downloadonly, fastestmirror
Determining fastest mirrors
* base: mirrors.centarra.com
* extras: mirror.itc.virginia.edu
* updates: reflector.westga.edu
base | 3.7 kB 00:00
base/primary_db | 4.4 MB 00:03
extras | 3.4 kB 00:00
extras/primary_db | 19 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 4.7 MB 00:04
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package ca-certificates.noarch 0:2013.1.95-65.1.el6_5 will be updated
---> Package ca-certificates.noarch 0:2014.1.98-65.0.el6_5 will be an update
---> Package kernel.x86_64 0:2.6.32-431.23.3.el6 will be installed
---> Package kernel-firmware.noarch 0:2.6.32-431.20.5.el6 will be updated
---> Package kernel-firmware.noarch 0:2.6.32-431.23.3.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================== =================================
Package Arch Version Repository Size
==================================================================================================== =================================
Installing:
kernel x86_64 2.6.32-431.23.3.el6 updates 28 M
Updating:
ca-certificates noarch 2014.1.98-65.0.el6_5 updates 1.1 M
kernel-firmware noarch 2.6.32-431.23.3.el6 updates 13 M
Transaction Summary
==================================================================================================== =================================
Install 1 Package(s)
Upgrade 2 Package(s)
Total download size: 42 M
Is this ok [y/N]: n
Exiting on user Command
Previously I had done a
yum upgrade --downloadonly
so I could apply them during a downtime without needing to burn time downloading which at the time was several hundred - however a
yum clean all
was done and that's all gone.
Now when I run
yum upgrade I see the previous few only.
Below is yum.conf and yum.repos.d
How do I fix this I've tried
rpm --rebuilddb
yum check
and no success.
# ll /etc/yum.repos.d/
total 20
-rw-r--r--. 1 root root 1926 Nov 30 2013 CentOS-Base.repo
-rw-r--r--. 1 root root 638 Nov 30 2013 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 630 Nov 30 2013 CentOS-Media.repo
-rw-r--r--. 1 root root 4528 Nov 30 2013 CentOS-Vault.repo
# more /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=16&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m
# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
In the various repo file they are enabled as follows with enabled=1 for each section:
atomic
base
updates
extras
Just FYI
yum upgrade has similar results
]# yum upgrade
Loaded plugins: downloadonly, fastestmirror
Loading mirror speeds from cached hostfile
* atomic: www6.atomicorp.com
* base: mirror.kentdigital.net
* extras: mirror.itc.virginia.edu
* updates: reflector.westga.edu
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package ca-certificates.noarch 0:2013.1.95-65.1.el6_5 will be updated
---> Package ca-certificates.noarch 0:2014.1.98-65.0.el6_5 will be an update
---> Package kernel.x86_64 0:2.6.32-431.23.3.el6 will be installed
---> Package kernel-firmware.noarch 0:2.6.32-431.20.5.el6 will be updated
---> Package kernel-firmware.noarch 0:2.6.32-431.23.3.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
==================================================================================================== =================================
Package Arch Version Repository Size
==================================================================================================== =================================
Installing:
kernel x86_64 2.6.32-431.23.3.el6 updates 28 M
Updating:
ca-certificates noarch 2014.1.98-65.0.el6_5 updates 1.1 M
kernel-firmware noarch 2.6.32-431.23.3.el6 updates 13 M
Transaction Summary
==================================================================================================== =================================
Install 1 Package(s)
Upgrade 2 Package(s)
Total download size: 42 M
Is this ok [y/N]: n
Exiting on user Command
Last edited by gkasica; 08-11-2014 at 03:34 PM.
Reason: added info
|
|
|
08-11-2014, 03:29 PM
|
#2
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,676
|
once the kernel is updates
reboot and rerun the yum update command
you should see more updates
PS
Quote:
-rw-r--r--. 1 root root 630 Nov 30 2013 CentOS-Media.repo
-rw-r--r--. 1 root root 4528 Nov 30 2013 CentOS-Vault.repo
|
the install dvd and the OLD and dead and unsupported "vault" should NOT!!!!!!!! be in the yum.repos.d folder !!!!!!
the vault is for centos 6.4 ,6.3,6.2... and so on
it is for UNSUPPORTED software
Last edited by John VV; 08-11-2014 at 03:32 PM.
|
|
|
08-11-2014, 03:53 PM
|
#3
|
Member
Registered: Jan 2011
Location: Jackson WI
Distribution: Fedora Core/Generic
Posts: 116
Original Poster
Rep:
|
OK.
Will give that a go here as soon as I can get the OK to take the system (it's prod, just rebooting it would probably not go over really well -  )
Also, have removed those 2 repos you mention as well. Again, I'm the new Admin inheriting this stuff so there's a TON of cleanup.
Thanks and will update this once I update kernel, reboot, and recheck.
|
|
|
08-11-2014, 03:59 PM
|
#4
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
I would hope that before you upgrade/update a production system, you have an ironclad backup. Most go without problem, but the occasional issue still pops up.
|
|
|
08-11-2014, 04:04 PM
|
#5
|
Member
Registered: Jan 2011
Location: Jackson WI
Distribution: Fedora Core/Generic
Posts: 116
Original Poster
Rep:
|
VMware Boxes so clones of the machines prior to updates
|
|
|
08-13-2014, 12:02 AM
|
#6
|
Member
Registered: Jan 2011
Location: Jackson WI
Distribution: Fedora Core/Generic
Posts: 116
Original Poster
Rep:
|
Ran the few updates that showed for each and rebooted the boxes.
Rerunning the
yum upgrade
and found no new items. a
yum clean all
didn't result in anything new either.
Seems like there should be more here since when it was done as download only (and not applied) there were well over 100 nearly 200 items.
Any ideas on how to test or fix?
At least I have a current kernel, but I don't think I've patched the majority of the items.
|
|
|
08-13-2014, 12:16 AM
|
#7
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
To find out if you are set up to use any external repo's, you can do:
|
|
|
All times are GMT -5. The time now is 03:03 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|