Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 05-08-2008, 11:44 AM   #1
Registered: Jun 2005
Posts: 374

Rep: Reputation: 30
yum check-update as normal user misses lots of updates

I've noticed that
yum check-update
when run as a normal user misses lots of updates even though there is no error, it just silently returns either no or few updates.

It seems that when run as a normal user it does detect updates available from the atrpms repository but not from the official RHEL repository for Red Hat Enterprise Linux 5.

I'd like to know if there is a way of making yum check-update run as a normal user without missing anything and without using sudo to make it run as root?
Old 05-08-2008, 12:40 PM   #2
Senior Member
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
You could always run as su - (su space dash).

I suspect the reason is that normally you do not want a user changing "core" components of the system. Essentially if they can do this they can take over the system.
Old 05-09-2008, 03:16 AM   #3
Registered: Jun 2005
Posts: 374

Original Poster
Rep: Reputation: 30
No, no I understand that yum install or yum update should be root only actions but yum check-update only tells you what security updates are available and makes no modification to the system packages.

This is able to run as a normal user on both Gentoo and Debian but on Red Hat Yum doesn't seem to work properly like this, and worse it fails silently just telling you some or none of the updates so you could easily make the mistake of thinking that the system is up to date in security packages but really be vulnerable which is a terrible thing.

The reason I ask is that I have automated checks that are running for yum security updates and I'd be happier if those checks ran as a regular user rather than as root.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
yum update Transaction Check Error JonBL Linux - Software 21 08-10-2007 10:33 PM
yum update not getting updates glowe Linux - Software 7 02-24-2007 10:53 PM
yum check-update says no updates when there are updates? MarkEHansen Linux - General 7 12-29-2006 05:16 PM
yum update hung, now cant find updates Mehuge Fedora 2 06-28-2006 08:14 AM
Wanted - YUM Update strategy for home user JacekZ Linux - Newbie 3 06-22-2006 01:04 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:58 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration