Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 09-19-2007, 08:28 AM   #1
Registered: Dec 2002
Location: algeria
Distribution: redhat 7.3, debian lenny
Posts: 603

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

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
for example
here is my sources.list:
deb file:/opt/ R4.1_2/
deb file:/opt/R4.1_1 etch main contrib
deb 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 where the
version is the same of course.

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

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

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

apt-pinning for beginners

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


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

All times are GMT -5. The time now is 07:52 AM.

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