Denemek ALTIN - Özgür

Trimming Down

Linux Magazine

|

#297/August 2025: Cleaning Up

File bloat can happen to anyone. These simple tips will help you keep your systems lean and responsive.

- By Ali Imran Nagori

Trimming Down

Linux is stable, fast, and versatile. But let’s be honest: After a while, things get messy with temporary files, old packages, piled-up old kernels, and unused applications. Worse than the unused applications are the applications you install just to try and then remove without knowing what they'll leave behind.

Recently, I started noticing that my sleek Ubuntu system was feeling heavy, which made me realize it was time to liberate some disk space. As a longtime Linux user, I’ve faced these issues many times. The good news is that cleaning up your Linux system isn’t hard. In this article, I'll show you some ways to declutter your system and reclaim disk space while keeping Linux running smoothly.

Remove Unnecessary Packages

Over time, as you install and remove software, your system can pile up unused packages, specifically, orphaned packages. Orphaned packages are software components that were originally installed as dependencies for other programs, but you no longer need them because the parent software has been removed.

So, it’s good to get rid of them and reclaim the space. For Ubuntu and other Debian derivatives:

$ sudo apt autoremove

Sometimes cleaning starts with just updating the system:

$ sudo apt update && sudo apt upgrade

30 upgraded, 0 newly installed, 0 to remove, and 1 not upgraded.

This command fetches the latest patches and also clears out some older files in the process. So, you’re basically sweeping the floor before you start reorganizing.

Additionally, the following command:

apt autoclean

clears out all the package files that were downloaded in the local repository. It wipes out everything in /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. The only exceptions it leaves behind are the lock file and the partial folder.

Look for Big Files

Linux Magazine

Bu hikaye Linux Magazine dergisinin #297/August 2025: Cleaning Up baskısından alınmıştır.

Binlerce özenle seçilmiş premium hikayeye ve 9.000'den fazla dergi ve gazeteye erişmek için Magzter GOLD'a abone olun.

Zaten abone misiniz?

Linux Magazine'den DAHA FAZLA HİKAYE

Linux Magazine

Exercise Place

The GRUB 2 boot manager might seem intimidating at first glance. All the more reason to spin up a virtual playground so you can practice.

time to read

10 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Terminal Mosaic

What's better than one command line? Many command lines that never die. Take the terminal to new places with Zellij.

time to read

9 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

MakerSpace

Build a Long-Range Sensor Network with ChirpStack Sensor Symphony

time to read

14 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

How Flatpak, AppImage, and Snap are changing software distribution Ship It!

Modern-day package systems solve some problems posed by classic formats like DEB and RPM. We look at Flatpak, AppImage, and Snap and describe how they differ.

time to read

12 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

Dashboard Delight

Simplify the chaos of self-hosted services with Homepage, a customizable dashboard with widgets that put service statistics at your fingertips.

time to read

9 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

MADDOG'S DOGHOUSE

Free software, and the FOSS community, can help technology students get the education they desire in Brazil and elsewhere.

time to read

3 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

Rethinking the Terminal

The Warp AI agent takes the guesswork out of working at the command line. We show you how to build a simple website with one prompt.

time to read

4 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Just in Time

Just is a command runner that lets you define project-specific tasks in a declarative justfile.

time to read

7 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

The Watcher

This versatile security app checks for vulnerabilities, watches logs, and acts as a single interface for other tools.

time to read

7 mins

#298/September 2025: Indie Game Studio

Linux Magazine

Linux Magazine

NO INTERNETREQUIRED

This new utility lets you update a system that is notconnected to the Internet.

time to read

4 mins

#298/September 2025: Indie Game Studio

Listen

Translate

Share

-
+

Change font size