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

Re: Prevent aptitude from starting services



Urs Thuermann wrote:

> Looking through the man page of aptitude I haven't found an option to
> do this.

Because I don't believe it's aptitude that is doing it, it is
the postinstall script being run by dpkg.

I suspect what you want to do is not possible, as there are often
other things in the postinstall script that need to be run, so
even if you could tell aptitude/apt-get/dpkg to not run the postinstall
script you'd likely run into other problems that would otherwise
be solved by executing the postinstall script.

I suppose you could rebuild all of the packages you plan to
install and strip out the portion of the postinstall script
that (re)starts the service.

Take postfix for example, it's postinstall script is over 500
lines long.

The scripts for installed packages are in /var/lib/dpkg/info


nate


Reply to: