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

Re: starting dselect with predefined package list



On 21-Nov-2001 Jeff wrote:
> Brian Nelson, 2001-Nov-20 10:32 -0800:
>> Jeff <jcoppock1@home.com> writes:
>> 
>> > Is there some way to do this?  It would be cool to take a capture
>> > of 'dpkg -l' and start dselect with an option to load that
>> > package list so all I'd have to do is quickly verify the list
>> > loaded properly and then let it start installing.  That way, I
>> > could pre-build the package list(s) for systems to help
>> > stream-line the installation.
>> 
>> dpkg --set-selections
> 
> Okay, after looking this up  in man, lemme ask:
> 
> If I use 'dpkg --get-selections >> packages'
> 
> and then 'dpkg --set-selections packages' on another system,
> 
> and finally run dselect, my selects will be set to those listed
> in 'packages'?
> 

basically.  You should only set selections on a fresh install.  Otherwise you
have packages from set A the other machine is set B and thus machine A gets the
union of the set (i.e. more packages than B and a chance at conflicting
packages).

The package list lists packages that have been removed but not purged, on hold,
set for purge but not purged, attempted to install and stuck, as well as simply
installed.  You should probably change all holds to installs, purge the
packages marked deinstalled, fix any half installed packages and then save the
output.



Reply to: