LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 12-25-2014, 03:00 AM   #1
rocky_b
LQ Newbie
 
Registered: Jun 2009
Posts: 15

Rep: Reputation: 11
RHEL6 and CentOS6


Hi All,

Does any one know the equivalent of 'yum' switch --disableexcludes=all for 'yum shell'.

I have a exclude list defined within /etc/yum.conf but when using yum-shell I want to ignore it.

I have tried the following but it has not worked yet.
============
> > config exclude
exclude: kernel* cman* clusterlib* rgmanager* ricci* luci* ccs* lvm* gfs2*
> config exclude none
> update
> ts
============

Does any one know any other tricks?
Thanks
RB
 
Old 12-25-2014, 03:24 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you put that BLOCK there for a reason
and it was not for the same reasons that "yum-priorites" is used
Code:
su -
--- root password ---
vi /etc/yum.conf
and comment out the exclude line

using a EXCLUDE is a DRASTIC measure and there for a NEEDED reason
for example :
i use a xorg block on a old computer that uses a nvidia gforce2 card
i have to KEEP xorg at 1.12

removing that block i would never be able to boot into the gui ever again ( once a update happens)

Last edited by John VV; 12-25-2014 at 03:32 PM.
 
Old 12-26-2014, 01:35 AM   #3
rocky_b
LQ Newbie
 
Registered: Jun 2009
Posts: 15

Original Poster
Rep: Reputation: 11
Yes of-course that BLOCK is there for a reason which is it should not be updated automatically (using a cron) but when manually patching a box I use --disableexcludes=all I am looking for a equivalent switch for 'yum shell'

I know we can comment out the exclude line and overcome this problem but I do not like this work around. Any other suggestions? man pages for 'yum shell' does show a 'exclude' switch but arguments like 'exclude=none' does not do anything.

Any other suggestions from someone with bit more experience with 'yum shell'.

Regards
RB
 
Old 12-26-2014, 05:06 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Inside 'yum shell' try
Code:
config exclude ''
?
 
Old 12-27-2014, 01:24 AM   #5
rocky_b
LQ Newbie
 
Registered: Jun 2009
Posts: 15

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by unSpawn View Post
Inside 'yum shell' try
Code:
config exclude ''
?
Thanks for the suggestion, but it did not work either
 
Old 12-27-2014, 05:04 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rocky_b View Post
it did not work
Note "didn't work" is not a technical description I can work with. Instead, as root, run and post output of:
Code:
yum shell
config exclude
config exclude ''
config exclude
^D
 
Old 12-27-2014, 05:35 AM   #7
rocky_b
LQ Newbie
 
Registered: Jun 2009
Posts: 15

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by unSpawn View Post
Note "didn't work" is not a technical description I can work with.
Fair enough, here is the required info.

Code:
> config exclude
exclude: nfs-util* kernel* cman* clusterlib* rgmanager* 
> config exclude ''
> config exclude
exclude:
> Leaving Shell
I did try 'update' and then 'ts' within 'yum shell' after the issuing the commands above (within same session) but it only showed non-excluded packages in the list.

Just to show that there is actually a kernel update available and 'yum shell' is not finding it because of the exclude list within /etc/yum.conf
Code:
# yum check-update --disableexcludes=all  | grep kernel.x86
kernel.x86_64             2.6.32-431.40.2.el6 rhel-x86_64-server-6.5
Thanks
RB
 
Old 12-27-2014, 06:00 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rocky_b View Post
it only showed non-excluded packages in the list.
I don't see any output. Could it be you missed it? Because when I use the commands I supplied to clear excludes and then run "check-update" from within 'yum shell' I do get everything I did exclude. Suggest checking relevant bug tracker / upstream user mailing list.
 
Old 12-27-2014, 06:30 AM   #9
rocky_b
LQ Newbie
 
Registered: Jun 2009
Posts: 15

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by unSpawn View Post
I don't see any output. Could it be you missed it?
No I did not miss it, it is how it is pasted above.

I tried it on another machine and it seems to be working as expected which suggests that the issue is with these specific servers.
Thanks for your time and efforts, I will continue to investigate.
RB
 
Old 12-27-2014, 06:42 AM   #10
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by rocky_b View Post
I tried it on another machine and it seems to be working as expected which suggests that the issue is with these specific servers.
Ah, OK. In that case try comparing debug level output?
 
  


Reply



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
[SOLVED] RHEL6/Centos6: How to reserve /dev/sd(letter) disk device names? cadet_concept Linux - Server 4 11-08-2012 04:48 PM
[SOLVED] Need Autofs fix for RHEL6.3|Centos6.3 urgent rahilmaknojia Linux - Newbie 10 09-26-2012 01:12 PM
unable to install rhel6/centos6 in GUI mode in KVM Gil@LQ Linux - Virtualization and Cloud 5 12-01-2011 05:22 AM
nvidia Noobs with fedora 12 13 14 15 rhel6 sl6 centos6 dfowensby Fedora 2 08-01-2011 12:44 AM
nvidia Noobs with fedora 12 13 14 15 rhel6 sl6 centos6 dfowensby Fedora 0 07-31-2011 08:06 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 09:01 PM.

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