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

Re: reseting dpkg ?



On Tue, Oct 08, 2002 at 05:35:11PM -0700, David Dayan-Rosenman wrote:
> Hello all,
> can anyone tell how to reset the state of the packages to reset what
> the system to what it currently is ?
> After selecting way to many packages (through deps)  in dselect and
> Ctr-C-ing, I don;t know how to make dselect (in fact dpkg I think)

You were right the first time: dselect.

> forget about the choices I made and reflect the state of my system.
> Instead of that, it insists on installing 500+ packages and
> desinstalling 200 of them. 

The patch in bug #151540 provides a single-keystroke mechanism for this.
Without that, the best way I know, short of the risky procedure of
hand-editing /var/lib/dpkg/status, is to use the ':' (unhold) command
with the cursor on each of the "Updated packages (newer version is
available)", "Up to date installed packages", and "Available packages
(not currently installed)" headers. You may have to go round a few times
to calm dselect down.

> I tried to remove all my apt-sources and select all the available pkgs
> (which in my mind would have been the installed packeages) but it only
> made matters worse.

Available packages are definitely not the same as installed packages, so
don't do that.

Cheers,

-- 
Colin Watson                                  [cjwatson@flatline.org.uk]



Reply to: