On 2024-05-27 18:42:48 +0300, mindaugascelies...@gmail.com wrote:
> On Monday, May 27, 2024 5:59:55 PM EEST Nicolas George wrote:
> > Eben King (12024-05-27):
> > > Is there an easier way to uninstall a package and everything it brought in
> > > at one swell foop?  Thanks.
> > 
> > The packages you did not choose to install but were installed as a
> > consequence are shown by apt-get when you do almost anything:
> > 
> > The following packages were automatically installed and are no longer
> > required: <snip>
> > 
> > Regards,
> Hello.
> 
> You can use one simple command: sudo apt autoremove --purge

For various reasons, this may leave automatically installed packages
behind.

First, for symmetry with "apt install", you would need

APT::AutoRemove::SuggestsImportant "false";

Still, a package could have been automatically installed due to a
dependency, but it may be in another OR dependency, in which case
apt will not propose its removal, even though the OR dependency
would still be satisfied.

So, you should either look at the logs or keep trace of the packages
that are installed before installation of new packages.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to