LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-22-2004, 06:37 AM   #1
frochet
LQ Newbie
 
Registered: Apr 2004
Location: France
Distribution: Debian
Posts: 16

Rep: Reputation: 0
Multiple apt repositories ?


Hello,

I would like to know how you solve the problem of multiple repositories providing the same package.

For example, some packages available in Marillat unofficial repository are also available in official Debian repository.
When installing (using Synaptic for example), it is possible to "hide" temporarily some "sources", and then keep only Marillat packages.
Then it is easy to install the required packages.

Another example, if a developper is maintaining its own Debian repository, that I add in my apt source list.
If the package is also available in official Debian repository (And then, often older than the version in the Develpper's site):
How do you solve this problem ?

I would like to have multiple packages repositories in the same sources.list, and get rid of issues about packages provided by 2 or more repositories.
Do you know how to give, for example, priority to mplayer from Marillat, gnomemeeting from developper's home site, AND keep all sources declared in sources.list ?

thanks for your help

Fred
 
Old 12-22-2004, 03:45 PM   #2
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
I'll try to give some pointers. Read the docs as well:

http://wiki.debian.net/index.cgi?AptPinning
http://www.debian.org/doc/manuals/apt-howto/ch-apt-get (!)
http://jaqque.sbih.org/kplug/apt-pinning.html
http://www.argon.org/~roderick/apt-pinning.html

Create an 'apt.conf' file in /etc/apt :

APT:efault-Release "[name preferred distro]";
(like sarge, sid or generic names like testing or unstable)

Create a 'preferences' file defining the priorities of packages by name and version:

Package: *
Pin: release a=testing
Pin-Priority: 700

Package: *
Pin: release a=unstable
Pin-Priority: 30

Package: mplayer
Pin: version x.xx.xx
Pin-Priority: 800

Which would keep the Marillat version x.xx.xx of Mplayer, untill an official and newer Debian Sarge package would come along. Mplayer has a greater priority than testing here.

In this example any unstable packages will not be upgraded automatically since the priority is less then 100.

Experiment a bit and it should work. Apt pinning is a really nice system.
 
Old 12-22-2004, 03:46 PM   #3
Moloko
Member
 
Registered: Mar 2004
Location: Netherlands
Distribution: Debian
Posts: 729

Rep: Reputation: 30
...replace the smiley with it's corresponding characters...sigh()
 
Old 12-23-2004, 03:29 AM   #4
frochet
LQ Newbie
 
Registered: Apr 2004
Location: France
Distribution: Debian
Posts: 16

Original Poster
Rep: Reputation: 0
Thank you

Hello,

thanks for your quick reply.
It is exactly what I was expecting !
What I am expecting is possible, you gave me enough to go further
It is perfect !

Many thanks
Fred
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apt repositories????? BuffloTrace Mandriva 1 05-06-2004 12:09 AM
good apt repositories for RH 7.2? Sephiroth Linux - Software 4 02-13-2004 12:46 PM
the best apt repositories bosewicht Linux - Newbie 1 10-07-2003 01:23 PM
CL apt-get repositories? alsosa Conectiva 4 09-15-2003 09:47 AM
APT-Get Repositories For Mandrake Igman Linux - Software 1 08-18-2003 12:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration