I was looking through documentation yesterday and came across something that seemed to imply that this was possible:
apt-get remove foo +bar Which I think was going to remove foo and install bar. Untested, Justin On Wed, Dec 15, 2004 at 03:43:52PM +0100, Frank K�ster wrote: > Hello, > > Is it possible to combine removing one package with purging an other one > in the same apt (aptitude, whatever) run, by any means? > > I am asking this because of the following problem: Some conffiles of > packages depending on tetex-base (font packages) cause trouble if the > data files, the fonts, are not installed. Therefore the conffile > (possibly changed by the maintainer, or even deleted) must be saved away > outside /etc/texmf when the package is removed, and be restored when it > is installed again. > > I am trying to provide a common directory for all such packages in the > tetex-base package. This directory, /var/lib/tetex, would be generated > in tetex-base's postinst script, with a README file in it, and removed > upon tetex-base's purge *if* it doesn't contain saved conffiles of other > packages. > > If it was possible to combine removal of such a font package with > purging of tetex-base, it would be important to know whether the calls > to "postrm remove" of all packages are guaranteed to be finished before > "postrm purge" is called for the first package (because then I would be > in trouble, and would have to move the "saving away" to the prerm > scripts of the font packages). If such a combination is impossible, > however, I need not bother. > > TIA, Frank > -- > Frank K�ster > Inst. f. Biochemie der Univ. Z�rich > Debian Developer > -- Justin aptitude install task-iraf saods9 eclipse sextractor x11iraf wcstools http://www.justinpryzby.com/debian/ References [1] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

