I’ve installed debian on an old laptop and am wondering if the 10 gig base system size can be slimmed down by deleting unneeded files.

I ran the commands to look for any runaway logs or other obviously large files and nothing popped out.

Is there a group of folders full of stuff I don’t need or is this just the size of modern distros?

EDIT: I ended up doing a netinstall and got a 6ish gig system so I’m pretty happy with that. The netinstall image was able to detect my wifi card even though the debian live installer was not.

  • schizo@forum.uncomfortable.business
    link
    fedilink
    English
    arrow-up
    31
    arrow-down
    1
    ·
    1 month ago

    Why not save time and do it the other way?

    Install the minimal/netinstall image, and then add what you need.

    You’ll probably spend less time adding than trying to figure out what’s installed that you do or don’t need and trying to remove random packages without breaking anything.

    • WhiteOakBayou@lemmy.worldOP
      link
      fedilink
      arrow-up
      4
      arrow-down
      3
      ·
      1 month ago

      i have broken the install a few times just deleting stuff. The live disk won’t find my wifi card so i can’t net install unless I buy an ethernet adapter.

      • MajorHavoc@programming.dev
        link
        fedilink
        arrow-up
        6
        arrow-down
        1
        ·
        edit-2
        1 month ago

        the live disk won’t find my Wifi

        Oof.

        In case it helps: I have solved that problem for myself using a $9.00 USB Wifi dongle.

        For whatever reason (other contributors facing the same issue?), I have found that every cheapo USB Wifi dongle I have tried has worked perfectly with the minimal Linux images.

        I realize I might have just gotten really lucky a bunch of times, but it could be worth a try.

      • Shertson@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        1 month ago

        If you have another USB drive, I think you should be able to load the wifi drivers from that when using the netinstall. I am pretty sure I remember doing that 15 years ago.

  • nanook@friendica.eskimo.com
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    To be sure, the base install of debian is a everything and the kitchen sink install. There are MANY package the average person is not going to need.

  • eldavi@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    1 month ago

    a quick place to start would be the systemd services that get automatically started when you boot your system. when i did this in the past, i would google each service that was running to determine if i needed it and remove the associated software if i decided that i didn’t.

    (since you’re using debian): if it’s a fresh install, it would make more sense to start with a minimal install first like the netinstall image and then pick and chose what you want to put on top of it.

    if your issue is that the distro is too bloated: there are other minimalist distro’s out there (some are based on debian) and they’ve already gone through the hassle of figuring out what the bare bones minimum is for fully functional distribution that can serve a viable daily driver.

    • gi1242@lemmy.world
      link
      fedilink
      arrow-up
      4
      ·
      1 month ago

      for instance alpine has a small footprint. its designed for containers … but I think it has a DE as well

  • Eugenia@lemmy.ml
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 month ago

    I’ve tried several distros to fit on my repurposed Chromebooks that came with 16 GB emmc storage. Debian was the smallest one, using by default about 5.5 GB of data, plus 1 GB for swap, plus the boot partition. I had about 9 GB left after installing, with XFCE. After I installed a few apps and games, I ended up with 6 GB free space. It works fine and it updates fine.

    • WhiteOakBayou@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      i’m also using a chromebook with 16 gb emmc storage. my installs keep being about 10 gigs with xfce. i was thinking i would end up with just about your numbers but there is almost 5 gigs of other stuff i ended up with from the live disk installer.

  • MajorHavoc@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    1 month ago

    The first thing I do to, if I need to get the size down, is swap out Gnome for one of the X11 Windows managers, usually XFCE.

    I usually do this by starting from the minimal install and building up, as schizo already suggested.

    That said, I guess I would be remiss if I didn’t point out that Linux Mint is an easy way to get Debian’s core with the XFCE window manager.

    Looks like Mint starts at 3GB - 8GB, depending on options chosen?

    Disclaimer: It’s honestly been awhile since I really paid attention to my own Linux install size, as long as it’s below 40GB.

      • adarza@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 month ago

        if xfce is what you want, try a custom install (using dvd1) and just pick xfce instead of the gnome default during tasksel. you will get a few desktop applications like libreoffice and firefox esr, but those are easily removed if you don’t want or want to replace them. using dvd1 as my install source, wired and wireless drivers were set up during install, were available during install, and were ready to go on first boot to xfce (on an am3 pavilion desktop test system).

  • ouch@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    1 month ago

    You can start with dpigs. Then start marking packages automatically installed with apt-mark. aptitude may be a good frontend when removing a lot of packages, you can mark entire categories, like libraries, as automatically installed.

    Pay attention to the package headers when removing packages. You don’t want to remove essential packages.

  • 0x0@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    1 month ago

    Install the headless version, no GUI:

    ${EDITOR} /etc/apt/apt.conf.d/99noRecommends
    APT::Install-Recommends "0";
    APT::Install-Suggests "0";
    

    and then run apt update.

    Then install fluxbox session manager, oughta be enough.

      • mfigueiredo@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        1 month ago

        deborphan was removed from development, but if you are using current stable you still can use it. It’s awesome. It identifies packages installed but probably not needed.

        apt install deborphan

    • nanook@friendica.eskimo.com
      link
      fedilink
      arrow-up
      2
      ·
      1 month ago

      @Magister @WhiteOakBayou There are a lot of things to like about MX, nice interface, I really like that you can boot up using either systemd or sys-V, since systemd tends to be a lot faster but also tends to break it makes it really nice to have a sys-v fallback when things do break. Support has been excellent, I’ve yet to have it take them more than three days to fix anything broken I’ve reported, contrast that with Ubuntu where if it happens within the next three major releases you’re doing good.