Creating own apt repo from cream de la cream?
Erik Karu
erik_karu at yahoo.com
Sat Apr 3 18:17:03 UTC 2004
Hi,
> > list A, B, and C in sources.list, but use A as
> > "primary" repo, meaning that if a package is found
> > from A, don't install/update it from B or C even
it's
> > newer there. If a package is not present in A,
then
> > and only then use B or C.
>
> The simplest way, which probably does just what you
> want, is just to put
> the repositories in sources.list into your preferred
> order - in this
> case:
> A
> B
> C
Hmm, tried this and didn't work. Maybe I wasn't clear
enough. I want to use, e.g., Dag Wieers' RPM repo to
get kernel-module-ntfs and lyx with apt. But I want to
stick with, e.g., official Fedora mozilla RPM, not to
use one from Dag's repo.
> Much more powerful (and more complex as well)
> priorizing is possible by
> using "pinning" - see "man apt_preferences" for the
> gory details.
Well, the man page was a bit cryptic, but with your
hint, experimenting and google I got what I wanted!
Thanks a lot, Panu.
For the record, I now have in /etc/apt/sources.list
(nothing under sources.list.d):
# Fedora Core (Technical University Chemnitz, Germany)
rpm http://wftp.tu-chemnitz.de/pub/linux/fedora
fedora/1/i386 os updates
#rpm-src http://wftp.tu-chemnitz.de/pub/linux/fedora
fedora/1/i386 os updates
# Fedora Extras (Technical University Chemnitz,
Germany)
rpm http://wftp.tu-chemnitz.de/pub/linux/fedora
fedora/1/i386 stable
#rpm-src http://wftp.tu-chemnitz.de/pub/linux/fedora
fedora/1/i386 stable
# Macromedia (Europe, Centro de Comunicaciones
CSIC/RedIRIS, Madrid Spain)
rpm http://macromedia.rediris.es/apt fedora/1
macromedia
#rpm-src http://macromedia.rediris.es/apt fedora/1
macromedia
# Livna Free World Packages for Fedora Core
rpm http://rpm.livna.org/ fedora/1/i386 stable
#rpm-src http://rpm.livna.org/ fedora/1/i386 stable
# Dag's Apt Repository for Fedora Core
rpm http://apt.sw.be redhat/fc1/en/i386 dag
#rpm-src http://apt.sw.be redhat/fc1/en/i386 dag
And in /etc/apt/preferences:
Package: *
Pin: release a=stable
Pin-Priority: 900
Package: *
Pin: origin macromedia.rediris.es
Pin-Priority: 800
Package: *
Pin: origin rpm.livna.org
Pin-Priority: 700
Package: *
Pin: origin apt.sw.be
Pin-Priority: 600
And everything seems to be working ok, so I presume
the config is sane. MP3 support etc are from
livna.org, only packages which aren't nowhere else,
are from apt.sw.be. Woohoo! :-)
Thanks, Erik.
__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway
http://promotions.yahoo.com/design_giveaway/
More information about the fedora-list
mailing list