Bug 250142

Summary: How to create package skip list with yum client?
Product: Red Hat Enterprise Linux 5 Reporter: Bob Bugzilla <bugzilla>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: low    
Version: 5.5CC: casmith, cperry, msuchy
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-10-06 16:26:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Bob Bugzilla 2007-07-30 17:27:29 UTC
Description of problem:

Now that up2date has been replaced with yum as a the client tool for manageing 
updates, how does one create a package slip list?

With up2date it is handled with the --configure option and specifying a list 
like this: "pkgSkipList ['kernel*', 'httpd*', 'mysql*', 'php*']".  How to do 
the same with yum?

Comment 2 Calvin Smith 2008-01-03 19:29:13 UTC
You can add exclude= into the yum.conf file which can do a similar thing. 

Comment 3 Bob Bugzilla 2008-01-03 20:00:51 UTC
And then how to override the skip list with yum? With up2date there was: 
up2date -fu

And, how to force download without install?  With up2deate there wass: up2date -
fud

Which could later be followed up with: up2date -fui

Useful functionality which was not replicated in yum?




Comment 4 Calvin Smith 2008-01-03 22:59:48 UTC
In order to force update, you can use. 

# echo -e "config exclude 0 \n update \n run" | yum -y shell 

Note that the former command will not ask for confirmation before installing. To
see what will be installed before running it, remove the -y option

To download without install, you have to install the yum-downloadonly plugin 

# yum install yum-downloadonly 

Which gives you the --downloadonly option, then 

# yum --downloadonly install myPackage 

which would down the myPackage package.

Finally if you want to see what's being skipped when doing a "yum update", use
the -d 3 option. e.g.

# yum -d 3 update

Hope that helps


Comment 5 Miroslav Suchý 2009-10-06 16:03:43 UTC
Bob, did Calvin answered your questions?
Additionaly, this is more yum problem, not related to yum-rhn-plugin directly. Changing component to yum.

Comment 6 James Antill 2009-10-06 16:26:08 UTC
yum --disablexcludes=all

I think it might be in the 5.2 version, but it's def. in the 5.3/5.4 versions.

Comment 7 Bob Bugzilla 2009-10-06 19:36:51 UTC
Miroslav, Calvin answered my questions.

However, the answers are more complicated than a simple command line flag as was available with up2date. So, this seems more like a kludge than a functionality equivalence.

I theorize a more elegant solution would be to write a series of bash scripts to wrap around the yum, to address the shortfalls when supporting RHEL/RHN.  Perhaps using a number of different yum.conf files, one for each functional area would also provide a more robust solution.  Just thinking out loud...

FYI - I view this as more of a RHN problem, as up2date is/was for supporting RHEL via RHN.

Thanks for all of the effort.