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

Re: /etc/apt/preferences Confusion



On Sun, Dec 09, 2001 at 09:24:43PM -0800, Dave Steinberg wrote:
| 
| I have been tracking testing for the longest time, but I would like to be
| able to get up-to-date mozilla and galeon packages from unstable.
| 
| As I understand it, /etc/apt/preferences can help me with this.  I can add
| entries for both releases in sources.list, and then set priorities to
| keep packages that I've installed from unstable up to date, while using
| testing as the source for other packages.

Mostly.  You can set it to keep testing packages up-to-date and allow
easy installing of unstable packages.

I have :


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

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


Stuff that is currently installed gets a priority of 100.  This setup
makes unstable not preferred at all, and testing preferred over
installed packages.  1000 is another threshold value, but I didn't
really understand the manpage when I read it (someone explained the
100 to me).

With these preferences, include sid in your sources.list, update, then 

apt-get install <certain package>/unstable

(BTW, the "-s" option is great, you can check what stuff will be
upgrade, installed, or removed if you actually did the operation, but
it doesn't actually do anything)

-D

-- 

Through love and faithfulness sin is atoned for;
through the fear of the Lord a man avoids evil.
        Proverbs 16:6



Reply to: