• Re: how do you find installed bloatware to apt purge?

    From Hanno 'Rince' Wagner@21:1/5 to Runamile Czyborra on Wed Mar 5 15:40:01 2025
    Hello,

    On Wed, 05 Mar 2025, Runamile Czyborra wrote:

    my df -hl / is at 8.7G/11G=89% after sudo apt update && sudo apt install python3 pip && sudu pip3 install vosk in my crouton and what do you use to ergonomically present installed candidates to apt purge a few gigabytes?

    why do you believe you installed bloatware? what makes you think that
    Debian would install bloatware?

    best regards, Hanno Wagner
    --
    | Hanno Wagner | Member of the HTML Writers Guild | Rince@IRC |
    | Eine gewerbliche Nutzung meiner Email-Adressen ist nicht gestattet! |
    | 74 a3 53 cc 0b 19 - we did it! | Generation @ |

    #"ICH HABE EINE WELTANSCHAUUNG. SIE IST GUT UND RICHTIG. SIE BERUHT
    # AUF DEN MODERNSTEN ERGEBNISSEN DER QUANTENPHYSIK UND AUF EINEM
    # LAECHELN IM GESICHT." ruft Peter Berlich, Physiker, in de.talk.bizarre

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Yassine Chaouche@21:1/5 to All on Wed Mar 5 15:50:01 2025
    Le 3/5/25 Γ  15:22, Runamile Czyborra a Γ©critΒ :
    my df -hl / is at 8.7G/11G=89% after sudo apt update && sudo apt install python3 pip && sudu pip3 install vosk in my crouton and what do you use to ergonomically present installed candidates to apt purge a few gigabytes?

    Clearing apt's cache might save you a fews megs,
    or gigs on a big installation.


    15:46:56 ~/DOWNLOADS -1- $ du -sh /var/cache/apt/archives/
    1.1G /var/cache/apt/archives/
    15:47:01 ~/DOWNLOADS -1- $


    To empty the cache:


    apt-get clean


    Best,
    --
    yassine -- sysadm
    http://about.me/ychaouche
    Looking for side gigs.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From [email protected]@21:1/5 to Runamile Czyborra on Wed Mar 5 15:50:01 2025
    On Wed, Mar 05, 2025 at 03:22:15PM +0100, Runamile Czyborra wrote:
    my df -hl / is at 8.7G/11G=89% after sudo apt update && sudo apt install python3 pip && sudu pip3 install vosk in my crouton and what do you use to ergonomically present installed candidates to apt purge a few gigabytes?

    Note that pip does install stuff which is not known to apt. So if the "bloatware" (whatever you mean by this) came via pip, apt purge won't
    be able to do anything about it.

    Cheers
    --
    t

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

    iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZ8hiJgAKCRAFyCz1etHa RjtRAJ9e6A+Djts3m/E7p28qrmlBdzhcDACfYXVtEZHAFCLI+bJvrSr0pIYPSQo=
    =DFSv
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Antonio Russo@21:1/5 to All on Wed Mar 5 16:20:02 2025
    T24gMjAyNS0wMy0wNSAwNzoyMiwgUnVuYW1pbGUgQ3p5Ym9ycmEgd3JvdGU6DQo+IG15IGRm IC1obCAvIGlzIGF0IDguN0cvMTFHPTg5JSBhZnRlciBzdWRvIGFwdCB1cGRhdGUgJiYgc3Vk byBhcHQgaW5zdGFsbCBweXRob24zIHBpcCAmJiBzdWR1IHBpcDMgaW5zdGFsbCB2b3NrIGlu IG15IGNyb3V0b24gYW5kIHdoYXQgZG8geW91IHVzZSB0byBlcmdvbm9taWNhbGx5IHByZXNl bnQgaW5zdGFsbGVkIGNhbmRpZGF0ZXMgdG8gYXB0IHB1cmdlIGEgZmV3IGdpZ2FieXRlcz8N Cg0KU3RhcnQgYnkgcnVubmluZyBuY2R1IGluIHlvdXIgcm9vdCBkaXJlY3RvcnkgdG8gZ2V0 IGFuIGlkZWEgd2hhdCBpcw0KdXNpbmcgdXAgc3BhY2UuDQoNClRoaW5ncyB1bmRlciAvdmFy L2NhY2hlL2FwdCBhcmUgdGhlIGFwdCBjYWNoZSwgYW5kIGNhbiBpbmRlZWQgZ2V0IHZlcnkg bGFyZ2UuDQpZb3UgY2FuIHJlbW92ZSB0aGF0IHdpdGggd2l0aA0KDQogIGFwdC1nZXQgY2xl YW4NCg0KVGhpbmdzIHVuZGVyIC92YXIvbGliL2FwdCBpbmNsdWRlIHBhY2thZ2UgbGlzdHMu IFRoZXNlIGFyZSBzbWFsbCAofjEwMCBtYiksDQphbmQgc2hvdWxkbid0IGJlIHJlbW92ZWQg KGJ1dCB5b3UgY2FuIHdpdGggYGFwdC1nZXQgZGlzdGNsZWFuYCBpZiB5b3UgcmVhbGx5DQp3 YW50IHRvIHRyaW0gdGhpbmdzIGRvd24pLg0KDQpZb3UgdXNlZCBgcGlwIGluc3RhbGxgLCBz byB5b3UgcHJvYmFibHkgaGF2ZSBhIHBpcCBjYWNoZSB0aGF0IG1heSBhbHNvIG5lZWQNCnRv IGJlIGNsZWFyZWQgb3V0LiAgVW5jbGVhciB3aGF0IHlvdSBkaWQsIHNpbmNlIHlvdSBkaWQg bm90IGdpdmUgdXMgdGhlDQpleGFjdCBjb21tYW5kcyB5b3UgdHlwZWQsIGJ1dCB5b3UgbWF5 IGhhdmUgcHVsbGVkIGluIGEgY29tcGxldGUgYWx0ZXJuYXRpdmUNCnB5dGhvbiBwYWNrYWdl IGhpZXJhcmNoeS4gIFRoYXQgbWlnaHQgYmUgYmlnLg0KDQpJIHJ1biB2b3NrIG9mZiBvZiBh IGNvbnRhaW5lciwgYW5kIGl0J3MgfjEyRyB0b3RhbCwgc28gOC43IGFjdHVhbGx5IGxvb2tz DQpsZWFuIHRvIG1lLCBpZiBpdCdzIGFjdHVhbGx5IHJ1bm5pbmcuICBZb3VyICJibG9hdCIg bWlnaHQgYmUgdGhlIHNvZnR3YXJlDQp5b3UgcmVxdWVzdGVkLg0KDQpCZXN0LA0KQW50b25p
    bw0K

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eben King@21:1/5 to Runamile Czyborra on Wed Mar 5 23:10:01 2025
    On 3/5/25 09:22, Runamile Czyborra wrote:
    my df -hl / is at 8.7G/11G=89% after sudo apt update && sudo apt install python3 pip && sudu pip3 install vosk in my crouton and what do you use
    to ergonomically present installed candidates to apt purge a few gigabytes?

    deborphan --show-section --show-size --all-packages | sort -n

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Geoff@21:1/5 to All on Wed Mar 5 23:10:01 2025
    πŸ¦“ wrote:
    sudo aptitude purge libqt5webengine5 blackmailed me to purge qutebrowser now. sudo aptitude purge libllvm7 demands i pure ffmpeg links2 xorg.
    sudo aptitude search l10n local | grep ^i finds no localedef.
    sudo aptitude purge liblocale-gettext-perl also purges console-setup debconf-i18n tasksel xorg.
    sudo aptitude clean && df -hl / now has me at 8.3G/11G=85%.


    You can use dpigs from debian-goodies package:

    # dpigs -H
    3.3GiB 0ad-data
    1.1GiB flightgear-data-base
    723MiB libwine
    647MiB libwine-development
    606MiB libwine
    555MiB libwine-development
    513MiB flightgear-data-ai
    393MiB megaglest-data
    339MiB llvm-19-dev
    327MiB fonts-noto-extra

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Eben King on Thu Mar 6 06:30:02 2025
    On Wed 05 Mar 2025 at 17:04:12 (-0500), Eben King wrote:
    On 3/5/25 09:22, Runamile Czyborra wrote:
    my df -hl / is at 8.7G/11G=89% after sudo apt update && sudo apt install python3 pip && sudu pip3 install vosk in my crouton and what do you use
    to ergonomically present installed candidates to apt purge a few gigabytes?

    deborphan --show-section --show-size --all-packages | sort -n

    Bear in mind when you use --all-packages that, while removing packages
    listed will make the Debian system happy about being smaller, the
    list will likely contain many of the packages that make the system
    worth operating at all (unless you're getting all your functionality
    from flatpaks and suchlike, rather than Debian).

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to All on Thu Mar 6 15:40:02 2025
    On Thu, Mar 06, 2025 at 15:21:32 +0100, πŸ¦“ wrote:
    what would i want to sudo aptitude purge here to free 1 gig?

    Why are you assuming that the space you want can be freed by removing
    packages?

    For the vast majority of people, if disk space is running low, it's
    because *data* files are piling up, and may be in need of some trimming.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Eben King on Thu Mar 6 16:10:01 2025
    On Thu, Mar 06, 2025 at 09:59:47 -0500, Eben King wrote:
    Yeah. Many of the packages in deborphan's output are things I actually
    want to keep, and I think that that if you remove something, all of its requirements are still installed. Unless there's a smart package
    manager that goes through all of said requirements and removes them if
    they now have no dependents.

    That's what "apt autoremove" is supposed to do. Use at your own risk.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Eben King@21:1/5 to David Wright on Thu Mar 6 16:10:01 2025
    On 3/6/25 00:21, David Wright wrote:
    On Wed 05 Mar 2025 at 17:04:12 (-0500), Eben King wrote:
    On 3/5/25 09:22, Runamile Czyborra wrote:
    my df -hl / is at 8.7G/11G=89% after sudo apt update && sudo apt install >>> python3 pip && sudu pip3 install vosk in my crouton and what do you use
    to ergonomically present installed candidates to apt purge a few gigabytes? >>
    deborphan --show-section --show-size --all-packages | sort -n

    Bear in mind when you use --all-packages that, while removing packages
    listed will make the Debian system happy about being smaller, the
    list will likely contain many of the packages that make the system
    worth operating at all (unless you're getting all your functionality
    from flatpaks and suchlike, rather than Debian).

    Yeah. Many of the packages in deborphan's output are things I actually
    want to keep, and I think that that if you remove something, all of its requirements are still installed. Unless there's a smart package
    manager that goes through all of said requirements and removes them if
    they now have no dependents.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Henrik Ahlgren@21:1/5 to Greg Wooledge on Thu Mar 6 16:50:01 2025
    Greg Wooledge <[email protected]> writes:

    Why are you assuming that the space you want can be freed by removing packages?

    For the vast majority of people, if disk space is running low, it's
    because *data* files are piling up, and may be in need of some trimming.

    Pro tip: running "sudo apt clean" often frees up significant disk space (relatively, in machines with tiny storage capacity) by removing all
    cached package files from /var/cache/apt/archives.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jonathan Dowland@21:1/5 to Runamile Czyborra on Fri Mar 7 11:30:01 2025
    On Wed Mar 5, 2025 at 2:22 PM GMT, Runamile Czyborra wrote:
    my df -hl / is at 8.7G/11G=89% after sudo apt update && sudo apt install python3 pip && sudu pip3 install vosk in my crouton and what do you use
    to ergonomically present installed candidates to apt purge a few gigabytes?

    I favour "duc" (as opposed to, e.g. ncdu) for exploring the size of the filesystem. You run it in two passes: an indexing stage, and a browsing
    stage. The browsing stage is very fast since it doesn't need to index. I
    run the indexing stage periodically via cron or systemd timers.

    duc index /
    duc ui /

    There are several duc browsers: ui is an ncurses-style TUI; there's also
    CLI, GUI and web-based ones. The GUI and web-based ones use a nice pie
    chart presentation.


    For Debian packages specifically, you can use dpigs from the
    debian-goodies package. I wrote an alternative for situations where I
    don't want to install debian-goodies and its transitive dependencies:

    awk -v RS='' '/Status:.*installed\n/' /var/lib/dpkg/status \
    | grep -E '^(Installed-Size|Package)' \
    | cut -d: -f2- \
    | paste - - \
    | sort -rnk2 \
    | awk '{ print $2 "\t" $1 }' \
    | head -n 10

    --
    Please do not CC me for listmail.

    πŸ‘±πŸ» Jonathan Dowland
    ✎ [email protected]
    πŸ”— https://jmtd.net

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From songbird@21:1/5 to Runamile Czyborra on Fri Mar 7 13:20:01 2025
    Runamile Czyborra wrote:
    my df -hl / is at 8.7G/11G=89% after sudo apt update && sudo apt install python3 pip && sudu pip3 install vosk in my crouton and what do you use
    to ergonomically present installed candidates to apt purge a few gigabytes?

    i run apt-get autoclean once in a while after the system
    seems to be fairly stable. i don't want to run this often
    though because once in a while an older version can come in
    handy (i'm running Debian testing).

    my general maintenance routine is to list out all the
    packages installed and to go through and check if they
    are still being used and if not i purge them.

    for python environments, if i'm not using that application
    often i can usually delete the virtual environment because i
    have scripts set up to create and remove them as needed. if
    the application has any data stored someplace that data gets
    backed up regularly so it can be restored.

    things i have backed up are on two devices internal to the
    machine and also an external copy that is only powered up
    for the back up or when needed to find and restore something.

    i do need a better back up and restore system but that is
    a project for another winter and this one is almost over.


    songbird

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to Jonathan Dowland on Fri Mar 7 13:30:01 2025
    On Fri, Mar 07, 2025 at 10:20:30 +0000, Jonathan Dowland wrote:
    For Debian packages specifically, you can use dpigs from the debian-goodies package. I wrote an alternative for situations where I don't want to install debian-goodies and its transitive dependencies:

    awk -v RS='' '/Status:.*installed\n/' /var/lib/dpkg/status \
    | grep -E '^(Installed-Size|Package)' \
    | cut -d: -f2- \
    | paste - - \
    | sort -rnk2 \
    | awk '{ print $2 "\t" $1 }' \
    | head -n 10

    That's conceptually similar to the little program that I wrote,
    which you can get from <https://wooledge.org/~greg/ds>. It's in perl.

    Sample output:

    zoom 705531
    brave-browser 399770
    linux-image-6.1.0-30-amd64 399102
    linux-image-6.1.0-31-amd64 399069
    google-chrome-stable 365765
    firefox-esr 251227
    libllvm15 124941
    ibus-data 109113
    firmware-iwlwifi 82286
    [...]

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to - what do i need to on Sat Mar 8 01:20:01 2025
    On Fri, Mar 07, 2025 at 23:26:55 +0100, πŸ¦“ wrote:
    2025-03-07[Fri]23:14 πŸ¦“ read that
    2025-03-07[Fri]07:21 Greg Wooledge wrote
    That's conceptually similar to the little program that I wrote, which
    you can get from <https://wooledge.org/~greg/ds>. It's in perl.

    Wow! Looks backward compatible with perl4.036

    I wrote it a *really* long time ago. At least 20 years.

    hobbit:~$ ls -l bin/ds
    -rwxr-xr-x 1 greg greg 850 Sep 5 2004 bin/ds*

    - what do i need to write to
    make ds installable as sudo aptitude install ds?
    /usr/share/man/man1/ds.1 and /usr/share/src/ds/DEBIAN/control?

    I have no intention of turning it into a Debian package, but you may
    do whatever you like with it.

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