On Wed, Sep 19, 2001 at 02:01:35PM -0400, Joey Hess wrote: > Ola Lundqvist wrote: > > I have a simple question. Is it possible to run dpkg -r foo > > from within a postinst-script when using dselect or apt? > > Yes. > > > What is the result? > > dpkg: Status database locked, aborting > > Or something to that effect. Dpkg is not re-entrant when doing anything > that can modify the system.
Ok. Well what I wanted was a better way (more informative and flexible) way to remove packages that are insecure. It is in the harden-servers (and some other harden) packages I wanted this. How it it done when the base system is istalled? It removes (it the user tells so) the pcmcia and ppp packages. Regards, // Ola > -- > see shy jo > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Björnkärrsgatan 5 A.11 \ | [EMAIL PROTECTED] 584 36 LINKÖPING | | +46 (0)13-17 69 83 +46 (0)70-332 1551 | | http://www.opal.dhs.org UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / ---------------------------------------------------------------