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.
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.
apt install localepurge
to delete translation files not needed
Things in this vein were exactly what i was looking for wwhen i made the post. thanks. Freed up almost a gig.
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
You can start with
dpigs
. Then start marking packages automatically installed withapt-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.
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.
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.
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.
for instance alpine has a small footprint. its designed for containers … but I think it has a DE as well
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.
I am using xfce atm. I might just have to fix my driver problems and do a netinstall
Install MX Linux (not the AHS version) it is Debian based and pretty nice