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

Bug#906677: apt remove php7.0-fpm wants to install apache2 but doesn't tell why



On Sun, Aug 19, 2018 at 08:49:17PM +0200, Olaf van der Spek wrote:
> 2018-08-19 20:01 GMT+02:00 Julian Andres Klode <jak@debian.org>:
> > Well then, tell apt (apt remove php7.0-fpm apache2
> 
> Like this?
> 
> # apt remove php7.0-fpm apache2
> 
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> Package 'apache2' is not installed, so not removed
> The following additional packages will be installed:
>   apache2-bin libapache2-mod-php7.0 libaprutil1-dbd-sqlite3
> libaprutil1-ldap libbrotli1 liblua5.2-0
> Suggested packages:
>   apache2-doc apache2-suexec-pristine | apache2-suexec-custom www-browser
> Recommended packages:
>   apache2
> The following packages will be REMOVED:
>   php7.0-fpm
> The following NEW packages will be installed:
>   apache2-bin libapache2-mod-php7.0 libaprutil1-dbd-sqlite3
> libaprutil1-ldap libbrotli1 liblua5.2-0
> 0 upgraded, 6 newly installed, 1 to remove and 0 not upgraded.
> Need to get 3,003 kB of archives.
> After this operation, 6,132 kB of additional disk space will be used.
> Do you want to continue? [Y/n]

Well add more of the stuff you don't want. Come on.

> 
> > apt install foo apache2-).
> 
> What's foo in this case?

A package you want to install that should not pull in apache2.


> 
> > APT can't
> > possibly know that.
> 
> Know what?

That you don't want apache2.

> 
> >> I think apt should tell where the dependency on apache2 comes from.
> >
> > Nah, that would be too verbose.
> 
> Why's that?

If you install a lot of packages, showing which package(s) cause the package to
be installed is very verbose. I mean, set Debug::pkgDepCache::Marker to 1 and
see for yourself.

> 
> > You could use debugging logs to figure that out, or just
> > tell apt not to install apache2.
> >
> >> I fell like the apt output could be cleaner as well, lots of packages are mentioned twice and suggested pkgs really doesn't help here.
> >
> > They're mentioned as often as needed.
> 
> How does that help the user?

They know which packages are newly installed (NEW),
and which packages are installed to satisfy dependencies
(additional packages).


-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en


Reply to: