πŸ’Ύ Free Up Space On πŸ’» Arch / Debian Bas ...

πŸ’Ύ Free Up Space On πŸ’» Arch / Debian Based 🐧 Linux

Nov 25, 2022

Happy Thanksgiving to my friends in the US! πŸ¦ƒ πŸ™‚

I was running out of space on my Pinephone DanctNIX Arch install, and thought I would share a solution, to help you free up space on your own Arch based installation.

Below this, a couple commands for Debian based systems (Mobian, Debian, Kali, Ubuntu, Parrot, Pop!_OS...).

Whether you run Linux on a laptop, tablet, Librem5 Fx1 or Pinephone, these commands should help make room for new applications / storage.


πŸ’» πŸ“² ARCH / ENDEAVOUROS / MANJARO / BLACKARCH

While I perform this on a Pinephone, you can follow along using the exact same commands.

As a Linux phone = Linux computer (in your pocket)

Check Free Disk Space

df -h

Bild

Yikes. Only 5% space left (1.6GB). Common problem on smaller disks (such as our emmc).

Let's make some room!


Clear Cache

pacman -Sc

Bild


Remove Orphan Packages

pacman -sR $(pacman -Qtdq)

Bild

Started out with only 1.6GB left (5% free space on /).

A couple commands later opened free space up to 8.2GB (28% free space on /)


πŸ’» πŸ“² DEBIAN (POP!_OS / Ubuntu / Kali / Parrot)

Older kernels take up space in /boot, leaving little room for upgrades.

You may be wondering: "how can I free up additional /boot space?"

Below are Debian commands to become familiar with:

Free Up /boot

remove packages downloaded per requirement:

sudo apt autoremove

Debian: Free Up Additional Space Package Files

clean files downloaded for pkg install:

sudo apt clean

clean / remove files not needed anymore

sudo apt autoclean

Run above commands anytime you are running short on space, to find more!

Thanks for following πŸ’» β˜• 😎

GefΓ€llt dir dieser Beitrag?

Kaufe πŸ₯· (RTP) Privacy Tech Tips πŸ“‘ einen Kaffee

Mehr von πŸ₯· (RTP) Privacy Tech Tips πŸ“‘