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

Re: apt-get question



Jorge Santos <jsf@dep3.fciencias.unam.mx> writes:

> Hello, I want apt-get to get some packages from unstable (using
> something like apt-get install postgresql/unstable), but for all the
> other packages I want the versions in testing (so that doing an
> 'apt-get install postgresql install the version from testing), but I
> think if I just edit sources.list and add the unstable sources then
> the following 'apt-get install foo' will install the version from
> unstable (when I whould like it to install the version from testing),
> I hope I stated my problem clearly :)  Does anyone knows how I can
> achieve this?
> 

I also found this on the apt-get man page, I haven't tried, because
the option suggested by Colin Watson worked just fine, but it might
also do the trick:

 --default-release
              This  option controls the default input to the pol­
              icy engine, it creates a default  pin  at  priority
              990 using the specified release string. The prefer­
              ences file may further override  this  setting.  In
              short,  this  option  lets  you have simple control
              over which distribution packages will be  retrieved
              from. Some common examples might me -t '2.1*' or -t
              unstable.  Configuration Item: APT::Default-Release
 
Just in case you wanted to know.

Jorge Santos



Reply to: