• Uninstalling a package and its entourage

    From Eben King@21:1/5 to All on Mon May 27 17:00:01 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Nicolas George@21:1/5 to All on Mon May 27 17:10:02 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From tomas@tuxteam.de@21:1/5 to Nicolas George on Mon May 27 18:00:01 2024
    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

    -----BEGIN PGP SIGNATURE-----

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZlSr4gAKCRAFyCz1etHa RkINAJ49PDJPZ1DwFZufERWAK6exp7j/zACeOO1DIzmhrnDMcnLcnWyt8csOsBQ=
    =Ddth
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Hans@21:1/5 to All on Mon May 27 18:10:02 2024
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Vincent Lefevre@21:1/5 to mindaugasceliesius@gmail.com on Wed May 29 03:10:01 2024
    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)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)