Product SiteDocumentation Site

5.10. Enable a repository on the go

It is common to have disabled repositories, for example, rpm sources or repositories with packages under testing, and given the circumstances it is necessary to enable them and run some yum command, for example, for searching for information on a package in rawhide, use --enablerepo on the go:
# su -c "yum info --enablerepo=rawhide bro"
...
rawhide                                              | 4.3 kB     00:00     
rawhide/primary_db                                   |  13 MB     01:55     
...
Available Packages
Name        : bro
Arch        : i686
Version     : 1.5.1
Release     : 2.fc15
Size        : 1.9 M
Repo        : rawhide
Summary     : Open-source, Unix-based Network Intrusion Detection System
URL         : http://bro-ids.org
License     : BSD
Description : Bro is an open-source, Unix-based Network Intrusion Detection
            : System (NIDS) that passively monitors network traffic and looks
            : for suspicious activity. Bro detects intrusions by first parsing
            : network traffic to extract is application-level semantics and then
            : executing event-oriented analyzers that compare the activity with
            : patterns deemed troublesome. Its analysis includes detection of
            : specific attacks (including those defined by signatures, but also
            : those defined in terms of events) and unusual activities (e.g.,
            : certain hosts connecting to certain services, or patterns of
            : failed connection attempts).