Skip to content

emka.web.id

menulis pengetahuan – merekam peradaban

Menu
  • Home
  • Tutorial
  • Search
Menu

Linux News Today: Here's How to Remove Old Kernels from Ubuntu 16.04 LTS and Free Disk Space

Posted on June 17, 2016

Dustin Kirkland, Ubuntu Product and Strategy at Canonical, informed the community about a simple method to helps them remove old kernels from Ubuntu Linux, thus freeing up a lot of disk space.

Ubuntu is a great OS and all that, but it has this problem that it kinda stores many old kernel versions on the partition where it is installed, so after some time of updating your operating system to newer kernel versions, you’ll notice that your disk drive runs out of free space.

If you’re a beginner, you start wondering what’s going on, asking questions like “Where’s my disk space disappearing?,” and it matters when you’re running Ubuntu from an SSD, which usually come in smaller sizes than the traditional hard disk drives (HDD), those of 120GB being the most popular ones.

I am a long-time Ubuntu user, and if you’re like me, you know some tricks that you need to do from time to time, via the command-line, to remove those pesky old kernels that APT package manager’s “apt-get autoremove” command fails to remove after installing new ones.

Here’s how to remove old kernels and free disk space in Ubuntu

There’s a tool out there called purge-old-kernels, and it was created by Canonical’s Dustin Kirkland. It’s all you need to solve the problem where the /boot directory won’t get filled with vmlinuz kernels and prompt you with a super annoying message that you are running out of disk space on /boot.

“If you have long-running Ubuntu systems (server or desktop), and you keep those systems up to date, you will, over time, accumulate a lot of Linux kernels,” said Dustin Kirkland. “Over time, you might find your /boot directory filled with vmlinuz kernels, consuming a considerable amount of disk space.”

Not removing those old kernels also causes a lot of other problems, such as the inability of new kernel versions to be installed. So, installing the purge-old-kernels tool will save you a lot of time and energy. It is available in the Ubuntu 16.04 LTS (Xenial Xerus) repository as part of the byobu package.

To install and use purge-old-kernels to remove old kernel versions from Ubuntu 16.04 LTS, open the Terminal app and run the following commands. First, you’ll install the byobu package, and then you will execute purge-old-kernels with administrative privileges, which will remove the old kernels.

sudo apt install byobu
sudo purge-old-kernels

That’s it! Once you run purge-old-kernels, it will take some time to remove the old kernel verions, as well as various third-party kernel modules that were built against the respective Linux kernel versions for the software that required them. The purge-old-kernels is also available for other Ubuntu versions from this GitHub page.

The awesome part of using the purge-old-kernels utility is that by default it will keep the last two kernels, just in case you’re running into some boot issues with the latest version installed. Of course, you can overwrite that by using the “–keep” parameter.

Via Softpedia

Terbaru

  • Kelebihan dan Kekurangan Paypal Indonesia 2026
  • Inilah Fungsi Web Browser Terbaru yang Bikin Internetan Kalian Jauh Lebih Aman!
  • Ini Cara Pinjaman Online Bank Mandiri Langsung Cair via Livin Tanpa Ribet
  • Gagal Tukar Pengguna Dapodik? Jangan Panik, Ini Trik Ampuh Buat Jenjang PAUD dan SD!
  • Game Terasa Berat Padahal HP Bagus? Ini Trik Setting WebView yang Jarang Orang Tahu!
  • Cara Simpan Video FreeReels ke Galeri Tanpa Watermark, Dijamin Aman dan Resmi!
  • Capek Mancing Terus? Coba Trik AFK Fish It Roblox 2026 Ini, 100% Gratis Tanpa Langganan!
  • Profil Andy Dahananto, Pilot Pesawat ATR Indonesia Air Yang Jatuh di Maros, Sulawesi Selatan
  • Update Pencarian Pesawat IAT: Suara Ledakan di Maros Bikin Geger, Ini Fakta Terbarunya!
  • Sejarah Ganyang Malaysia: Saat Indonesia Hampir Perang Terbuka dengan Inggris
  • Kronologi Jatuhnya Pesawat ATR 400 Yogyakarta-Makassar di Maros
  • Bosen Nyupir Bus Terus? Ini 9 Mod Bussid Motor Honda Paling Keren Buat Kalian Coba!
  • Saldo DANA Gratis dari Kode Redeem Terbaru 2026, APK JadiDuit Penipu?
  • Ngefans Maxwell Clash of Champions? Begini Cara Masuk Saluran WA-nya Biar Update Terus!
  • Ini Cara Pakai greatonlinetools.com buat Nambah Likes dan Iseng ke Teman!
  • Cara Pakai Bug Token M7 Mobile Legends, Banjir Skin Prime Cuma Modal Browser!
  • Pusing Gagal Simpan Data Internet Dapodik 2026.b? Ini Trik Jitu Mengatasinya!
  • Mau Cuan Tambahan? Ini Cara Mudah Jadi Clipper di Ternak Klip Modal HP Doang!
  • Akun PTK Silang Merah di Dapodik 2026.b Bikin Panik? Jangan Dihapus, Coba Trik Ini Dulu!
  • Ini Trik Supaya Bisa Mancing Otomatis di Fish It Roblox Pakai GG Game Space
  • Sering Stuck Saat Registrasi Dapodik 2026.b? Coba Cara Offline Ini, Dijamin Lancar!
  • Belum Tahu? Ini Trik Isi Data Internet Dapodik 2026.B Biar Validasi Aman!
  • Belum Tahu? Inilah Cara Dapat Saldo E-Wallet Cuma Modal Tidur di Sleep Time Tracker
  • Padahal Negara Maju, Kenapa Selandia Baru Nggak Bangun Jembatan Antar Pulau? Ini Alasannya!
  • Nonton Drama Bisa Dapat 1 Juta? Cek Dulu Fakta dan Bukti Penarikan Aplikasi Gold Drama Ini!
  • Takut Saldo Habis? Gini Cara Stop Langganan CapCut Pro Sebelum Perpanjangan Otomatis
  • Gini Caranya Hilangkan Invalid Peserta Didik di Dapodik 2026 B Tanpa Ribet, Cuma Sekali Klik!
  • Rombel Hilang di Dapodik 2026 B? Tenang, Gini Cara Mudah Mengatasinya Tanpa Menu Aksi!
  • Pusing Lihat Ratusan Invalid Sarpras di Dapodik 2026 B? Tenang, Ini Cara Membereskan Datanya
  • Validasi Merah Terus? Ini Cara Tuntas Isi Data Listrik & Internet di Dapodik 2026 B
  • Grain DataLoader Python Library Explained for Beginners
  • Controlling Ansible with AI: The New MCP Server Explained for Beginners
  • Is Your Headset Safe? The Scary Truth Bluetooth Vulnerability WhisperPair
  • Dockhand Explained, Manage Docker Containers for Beginners
  • Claude Co-Work Explained: How AI Can Control Your Computer to Finish Tasks
  • Begini Teknik KV Caching dan Hemat Memori GPU saat Menjalankan LLM
  • Apa itu State Space Models (SSM) dalam AI?
  • Begini Cara Mencegah Output Agen AI Melenceng Menggunakan Task Guardrails di CrewAI
  • Tutorial AI Lengkap Strategi Indexing RAG
  • Cara Membuat AI Voice Agent Cerdas untuk Layanan Pelanggan Menggunakan Vapi
  • Apa itu ToneShell? Backdoor atau Malware Biasa?
  • Apa itu Parrot OS 7? Ini Review dan Update Terbesarnya
  • Clipper Malware? Ini Pengertian dan Bahaya yang Mengintai Kalian
  • Kronologi Serangan Gentlemen Ransomware di Oltenia Energy
  • Apa itu CVE-2020-12812? Ini Penjelasan Celah Keamanan Fortinet FortiOS 2FA yang Masih Bahaya
Beli Pemotong Rumput dengan Baterai IRONHOOF 588V Mesin Potong Rumput 88V disini https://s.shopee.co.id/70DBGTHtuJ
Beli Morning Star Kursi Gaming/Kantor disini: https://s.shopee.co.id/805iTUOPRV

©2026 emka.web.id | Design: Newspaperly WordPress Theme