Re: yum.conf for FC3?

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

 



Le mardi 16 novembre 2004 Ã 13:10 -0600, Satish Balay a Ãcrit :
> 
> On Tue, 16 Nov 2004, Eric Tanguy wrote:
> 
> > Ok but i have a problem with yum (i'm in fc2) : i have some packages
> > from at and newrpms (about 20) and all others are from fedora, dag and
> > freshrpms. In standard, i comment the part concerning at and newrpms
> > repo in /etc/yum.conf and do night updates with yum. But when i want to
> > update the packages from at and newrpms, i have to uncomment the part
> > concerning these repos and i have to launch yum update followed by the
> > names of the 20 packages. i can't just launch yum update because in this
> > case a lot of fedora, dag and freshrpms packages would be updated too.
> > Is there a mean to do this simplier in fc2 and will it be possible in
> > fc3.
> 
> You can avoid the 'edit' step before doing the updates by doing the
> following: (on FC2)
> 
> cp /etc/yum.conf /etc/yum.conf.at-newrpms
> uncomment 'at, newrpms in /etc/yum.conf.at-newrpms
> Now to do the updates for these packages - you do (perhaps with an alias)
> yum -c /etc/yum.conf.at-newrpms update pkg1 pkg2 etc...
> 
> With yum-2.1 (FC3) - this is possible with
> yum --enablerepo=atrpms --enablerepo=newrpms update
> 
> And in the repository listing for these - you'll specify the
> specific packages you want with:
> 
> includepkgs=pkg1,pkg2,...
> 
> Satish
> 
> 
Ok i'm trying to understand how the new yum works. If i follow what is
said in this mail, i made a /etc/yum.conf : 
[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

and some /etc/yum.repos.d/name.repo
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
[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 and includepkgs=mplayer,w32codec but when i launch yum
update, yum want to update all packages from atrpms. 
enabled=0 seems to do nothing and includepkgs also ??
Eric

Attachment: signature.asc
Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=


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

  Powered by Linux