Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install winswitch on CentOs 6. It requires 'nxagent'. But in centos, the package name is 'nx'. Is there a way to tell yum to skip checking the 'nxagent' dependency (i installed 'nx' already)? Specifying --skip-broken skips the whole thing

share|improve this question
up vote 7 down vote accepted

Generally yum dont have option to ignore single package from dep. Option --skip-broken ignore all unresolved dependences. You can try "yum --exclude=packagename" but it exclude a specific package by name or glob from updates on all repositories not from deps.

share|improve this answer
    
yum --exclude doesn't work on dependencies – DrStrangepork Feb 18 '15 at 0:14
    
@DrStrangepork yes I know I wrote that in my answer – B14D3 Feb 18 '15 at 6:38
    
Sorry, I can't undo my downvote. :( – DrStrangepork Feb 18 '15 at 17:20
    
You can always upvote ;) @DrStrangepork – B14D3 Feb 19 '15 at 10:01
2  
Neither --exclude nor --skip-broken helps bypass one or more dependencies in the way that rpm --nodeps does. – A-B-B Apr 1 '15 at 20:58

The rpm command has the --nodeps option that you can use. The following command will install or update the package ignoring dependencies but automatically looking up the download URL from your repositories.

rpm -Uvh --nodeps $(repoquery --location winswitch)

After that, a regular "yum update" will likely succeed without dependency errors.

share|improve this answer

Fire this command line then go to ZzZz

yum install -y *python* --exclude=samba --exclude=python-functest --exclude=python-libturpial --exclude=python-rest-client --exclude=python-twitter --skip-broken

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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