Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #269583 > unrolled thread

Uninstalling a package and its entourage

Started byEben King <eben@gmx.us>
First post2024-05-27 17:00 +0200
Last post2024-05-27 18:10 +0200
Articles 7 — 7 participants

Back to article view | Back to linux.debian.user


Contents

  Uninstalling a package and its entourage Eben King <eben@gmx.us> - 2024-05-27 17:00 +0200
    Re: Uninstalling a package and its entourage Nicolas George <george@nsup.org> - 2024-05-27 17:10 +0200
      Re: Uninstalling a package and its entourage mindaugasceliesius@gmail.com - 2024-05-27 17:50 +0200
        Re: Uninstalling a package and its entourage Mike Castle <dalgoda+debian@gmail.com> - 2024-05-27 18:50 +0200
        Re: Uninstalling a package and its entourage Vincent Lefevre <vincent@vinc17.net> - 2024-05-29 03:10 +0200
      Re: Uninstalling a package and its entourage <tomas@tuxteam.de> - 2024-05-27 18:00 +0200
        Re: *****SPAM***** Re: Uninstalling a package and its entourage Hans <hans.ullrich@loop.de> - 2024-05-27 18:10 +0200

#269583 — Uninstalling a package and its entourage

FromEben King <eben@gmx.us>
Date2024-05-27 17:00 +0200
SubjectUninstalling a package and its entourage
Message-ID<IIJZn-gcU9-5@gated-at.bofh.it>
Hey.  Occasionally I'll install a package and it brings some other
dependencies with it.  Fine.  Then if I decide it doesn't work for me and
want to uninstall it, I have to go to the installation history, see what was
installed with it, and for each one find it and flag it for removal.  You
can see how for packages with lots of dependencies this is kind of a pain.

Is there an easier way to uninstall a package and everything it brought in
at one swell foop?  Thanks.

--
"The Web brings people together because no matter what kind of a
  twisted sexual mutant you happen to be, you've got millions of pals
  out there.  Type in 'Find people that have sex with goats that are on
  fire' and the computer will say, 'Specify type of goat.'" -- Rich Jeni

[toc] | [next] | [standalone]


#269584

FromNicolas George <george@nsup.org>
Date2024-05-27 17:10 +0200
Message-ID<IIK94-gdcW-13@gated-at.bofh.it>
In reply to#269583
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,

-- 
  Nicolas George

[toc] | [prev] | [next] | [standalone]


#269588

Frommindaugasceliesius@gmail.com
Date2024-05-27 17:50 +0200
Message-ID<IIKLL-gdpK-11@gated-at.bofh.it>
In reply to#269584
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

[toc] | [prev] | [next] | [standalone]


#269593

FromMike Castle <dalgoda+debian@gmail.com>
Date2024-05-27 18:50 +0200
Message-ID<IILHP-gdZj-3@gated-at.bofh.it>
In reply to#269588
Even shorter:

apt autopurge


Apropos to my recent message regarding system configuration, I keep a
personal metapackage around that lists the packages I really want.
About once a quarter I do the following (as root):

# apt-mark showmanual | grep -v mrc-mars | xargs apt-mark auto
# apt autopurge

(Where mrc-mars is my top level metapackage.  For *me*, that is the
only manual package I ever want on a machine.)

If I see something that it wants to purge but I do actually want, I
add it to my personal metapackage (build and push) and then do the
above again.

mrc

[toc] | [prev] | [next] | [standalone]


#269681

FromVincent Lefevre <vincent@vinc17.net>
Date2024-05-29 03:10 +0200
Message-ID<IJfZf-gwBL-1@gated-at.bofh.it>
In reply to#269588
On 2024-05-27 18:42:48 +0300, mindaugasceliesius@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 <vincent@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)

[toc] | [prev] | [next] | [standalone]


#269589

From<tomas@tuxteam.de>
Date2024-05-27 18:00 +0200
Message-ID<IIKVr-gdt2-1@gated-at.bofh.it>
In reply to#269584

[Multipart message — attachments visible in raw view] — view raw

On Mon, May 27, 2024 at 04:59:55PM +0200, 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>

...and there is `apt-get autoremove' for that.

cheers
-- 
t

[toc] | [prev] | [next] | [standalone]


#269590 — Re: *****SPAM***** Re: Uninstalling a package and its entourage

FromHans <hans.ullrich@loop.de>
Date2024-05-27 18:10 +0200
SubjectRe: *****SPAM***** Re: Uninstalling a package and its entourage
Message-ID<IIL58-gdLQ-17@gated-at.bofh.it>
In reply to#269589
Am Montag, 27. Mai 2024, 17:51:23 CEST schrieb tomas@tuxteam.de:
> On Mon, May 27, 2024 at 04:59:55PM +0200, 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>
> 
> ...and there is `apt-get autoremove' for that.
> 
> cheers

You can also try:

aptitude purge package_name 

and, maybe it is alrady deinstalle, you can purge any configurations:

aptitude purge ~c

Have fun!

Hans

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web