LinuxQuestions.org
Register a domain and help support LQ
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 09-19-2007, 09:28 AM   #1
abd_bela
Member
 
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 599

Rep: Reputation: 31
priority in apt-get for repository


hi,
I am looking for possibility to make priority for repository.
In fact I have a local repository, when I want to install a package I
want apt to check first in the local to install it from there if it
exists.
for example
here is my sources.list:
deb file:/opt/ R4.1_2/
deb file:/opt/R4.1_1 etch main contrib
deb http://ftp.fr.debian.org/debian lenny main contrib non-free

If a software (say lyx-1.5.1), exists in /opt/R4.1_2/ I want to
install it from here and not from ftp.fr.debian.org/debian. where the
version is the same of course.

I haven't found info about priority in the apt doc????

thanks for help
bela
 
Old 09-19-2007, 10:24 AM   #2
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
look at apt pinning and the /etc/apt/preferences file

http://www.debian.org/doc/manuals/ap...pt-get.en.html

apt-pinning for beginners

Last edited by farslayer; 09-19-2007 at 10:25 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Need apt repository for gtk 2.8 bambam43410 Debian 1 08-04-2006 09:50 AM
Apt-get Repository problems jaygee02 Ubuntu 22 02-16-2006 12:39 PM
Need Mplayer repository for apt jared78 Linux - Software 9 07-06-2005 05:18 AM
building an apt-get repository?? edfinegan Fedora 1 01-13-2005 01:50 PM
Debian Apt Repository ghight Linux - Software 1 02-14-2003 03:53 PM


All times are GMT -5. The time now is 06:12 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration