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

Re: Bug#100668: apt should allow to select from more 'sources.list' files




On Wed, 13 Jun 2001, Kamil Toman wrote:

> I think the (quite easy) fix would be a new option for arbitrary 
> 'sources.list' files. Then this could be easily done with
> 
> apt-get --sources-list=/etc/mycompany_sources.list update  
> apt-get install ...
> #which would update and fetch fixes only for packages from a certain site
> apt-get update
> #which would update the default (/etc/apt/sources.list)
> apt-get instal ...
> #as usually

On 2.4 it's trivial without any changes to apt-get.
 
mount --bind /etc/mycompany_sources.list /etc/apt/sources.list
apt-get update  
apt-get install ...
#which would update and fetch fixes only for packages from a certain site
umount /etc/apt/sources.list
apt-get update
#which would update the default (/etc/apt/sources.list)
apt-get install ...
#as usually

Hell knows how to do that on Hurd, though.



Reply to: