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 have configured several repositories on my CentOS 5 box. As an effect, command:

yum search nagios

outputs just mess - thousands of duplicated packages.

To make my life easier I would like for example to search for package nagios only in specific repo, like rpmforge and with minimum version '3', for example.

How can I achieve this?

share|improve this question
up vote 3 down vote accepted
# yum --disablerepo=* --enablerepo=rpmforge list avaiable 'nagios-3*'

UPDATE Tue Jul 10 18:04:26 ICT 2012:

# yum --disablerepo=* --enablerepo=rpmforge list avaiable nagios | awk '$2 >= 3 { print $0 }'

share|improve this answer
It does not work as expected. It will show me packages only in version '3' but not in version 4 and 5. – bluszcz Jul 10 '12 at 10:48
Try the updated command that I've appended to my answer. – quanta Jul 10 '12 at 11:09
yum --disablerepo=* --enablerepo=rpmforge list avaiable nagios | awk '$2 >= 3 { print $0 }' – bluszcz Jul 10 '12 at 12:03
This one works as expected. Thanks! – bluszcz Jul 10 '12 at 12:03

Your Answer


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.