vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, I'm trying to create a /etc/yum.conf file that will update my clamav package from the DAG RPM Repository. I only want to get the clamav package from this site. I tried to use the exclude keyword to exclude everything that doesn't start with clamav but I'm having a hard time getting the syntax right. This is what I have so far: [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el3/en/$basearch/dag gpgcheck=1 enabled=1 exclude=!clamav* On the last line I'm trying to exclude everything that doesn't start with clamav. But this yum.conf file will still include all packages from DAG. I appreciate any help I can get with this. Thanks for your help, Kjell |
| |||
| kjell@cablescan.com wrote: > Hi, > > I'm trying to create a /etc/yum.conf file that will update my clamav > package from the DAG RPM Repository. I only want to get the clamav > package from this site. I tried to use the exclude keyword to exclude > everything that doesn't start with clamav but I'm having a hard time > getting the syntax right. This is what I have so far: > > [dag] > name=Dag RPM Repository for Red Hat Enterprise Linux > baseurl=http://apt.sw.be/redhat/el3/en/$basearch/dag > gpgcheck=1 > enabled=1 > exclude=!clamav* > > On the last line I'm trying to exclude everything that doesn't start > with clamav. But this yum.conf file will still include all packages > from DAG. > > I appreciate any help I can get with this. > > Thanks for your help, > Kjell > You say you want to "exclude" clamav but then you want to update it ? At the # yum --enablerepo=dag update clamav should acheive want you want, as the repo is already enabled remove '--enablerepo=dag'and use # yum update clamav. david |
| ||||
| david walcroft wrote: > kjell@cablescan.com wrote: >> Hi, >> >> I'm trying to create a /etc/yum.conf file that will update my clamav >> package from the DAG RPM Repository. I only want to get the clamav >> package from this site. I tried to use the exclude keyword to >> exclude everything that doesn't start with clamav but I'm having a >> hard time getting the syntax right. This is what I have so far: >> >> [dag] >> name=Dag RPM Repository for Red Hat Enterprise Linux >> baseurl=http://apt.sw.be/redhat/el3/en/$basearch/dag >> gpgcheck=1 >> enabled=1 >> exclude=!clamav* >> >> On the last line I'm trying to exclude everything that doesn't start >> with clamav. But this yum.conf file will still include all packages >> from DAG. >> >> I appreciate any help I can get with this. >> >> Thanks for your help, >> Kjell >> > You say you want to "exclude" clamav but then you want to update it ? > At the # yum --enablerepo=dag update clamav should acheive want you > want, as the repo is already enabled remove '--enablerepo=dag'and use > # yum update clamav. I don't think the yum "exclude" syntax can tolerate the "!", inverted syntax. I don't have yum capable system in front of me, but can it work with an "include" statment? |