Re: yum.conf for FC3?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2004-11-30 at 08:25 +0100, eric tanguy wrote:
> > Eric Tanguy kirjoitti viestissään (lähetysaika sunnuntai, 28.
> > marraskuuta 2004 23:58):
> >
> >> all is fine except with atrpms because i would like to update
> >> only some packages from this repo so i this
> >> /etc/yum.repos.d/at.repo :
> >> [main]
> >> includepkgs=mplayer,w32codec
> >
> > You should not have a [main] section in any .repo file, just one
> > [main] in /etc/yum.conf (AFAIK). The includepkgs option should
> > be in the section for the appropriate server.
> >
> >> [at-stable]
> >> name=Fedora Core $releasever at-stable
> >>baseurl=ftp://mirrors.ftp.sciences.univ-nantes.fr/mirrors/atrpms.physik.fu-berlin.de/fedora/$releasever/en/$basearch/at-stable/
> >>
> >> [at-good]
> >> name=Fedora Core $releasever at-good
> >>baseurl=ftp://mirrors.ftp.sciences.univ-nantes.fr/mirrors/atrpms.physik.fu-berlin.de/fedora/$releasever/en/$basearch/at-good/
> >> enabled=0
> >> gpgcheck=1
> >>
> >> But it seems i have to problem or misunderstood :
> >> enabled is 0
> >
> > Just for at-good, it doesn't apply to at-stable.
> >
> >> and includepkgs=mplayer,w32codec
> >
> > I guess this gets ignored because it's in the wrong section.
> >
> Ok thank you it works fine now for update. But i have another question :
> how it is possible to bypass these includepkgs lists to install something.
> I explain : to update only the packages from at i put these lines to
> restrict the packages list : includepkgs=pkg1,pkg2,... but when i want to
> install a new package yum need to access the entire package list to
> satisfy dependencies so i need to disable this feature. How it is possible
> to do that ?

Create another copy of the repo with a different name (the repo name is
in square brackets), without the includepkgs= line and with enabled=0.
Let's say you call this repo [at-good-all].

When you need to access the entire package list, use:

# yum --enablerepo=at-good-all ...

Paul.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux