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

  • Inilah Kenapa Paket JNE Muncul Status Nobody At Home dan Cara Mengatasinya Biar Nggak Panik!
  • Gagal Aktivasi BSI Mobile? Inilah Arti Pesan Error 53 Saving Account Not Registered dan Solusinya
  • Cara Cuan dari Hobi Baca Novel/Komik Online
  • Hp Vivo Kalian Muncul Notif Data Spasial Sistem Rusak? Begini Trik Mengatasinya Sampai Tuntas!
  • Cara Buat Link Ujian Mencintai Diam-Diam Google Form, Tes Seberapa Besar Perasaan Kalian ke Crush!
  • Ini Penjelasan Mengenai Cara Mengubah Dosa Menjadi Diamond Game FF ML dan Saldo Shopeepay yang Sedang Viral
  • Trik Supaya Bisa Dapat Potongan Harga Rp100 di TikTok Tanpa Harus Reset HP!
  • Cara Input Bantuan IFP dan Laptop di Dapodik 2026.B, Aset Sekolah Aman
  • Cara Cairkan Rp170.000 dari Clear Blast, Terbukti Membayar ke DANA Tanpa Ribet!
  • Inilah Fakta Video Viral Arohi Mim 3 Menit 24 Detik yang Bikin Geger Netizen!
  • Inilah Sebenarnya Video Botol Aqua Viral yang Bikin Netizen TikTok Heboh dan Penasaran!
  • Takut Chat Hilang? Ini Cara Mudah Backup WA GB ke Google Drive yang Wajib Kalian Tahu!
  • Tutorial Ambil Barang Gratis di Akulaku, Modal Undang Teman Doang!
  • Ini Arti Kode Error FP26EV dan FP27EV di Aplikasi BriMO Serta Cara Mengatasinya!
  • Cara Jadi Clipper Modal Ngedit Video di TryBuzzer, Cocok Banget Buat Pemula!
  • Cara Pakai Beb6 Wifi Password Untuk Cek Jaringan di Sekitar Kalian
  • Inilah Review Lengkap Apakah Turbo VPN Extension Aman
  • Apa itu Toko Biru? Ini Istilah Olshop yang Perlu Kamu Tahu
  • Adswerve Inc Penipu? Ini Fakta di Balik Konsultan Digital Terkemuka Dunia!
  • Sering Ditelepon 08111? Simak Apakah Ini Penipuan atau Marketing Resmi Telkomsel
  • Inilah Cara Daftar dan Login Subsidi Tepat LPG 3 kg di Merchant Apps MyPertamina!
  • Akademi Crypto Penipu?
  • Belum Tahu Arti Paket Sedang Transit di TikTok Shop? Ternyata Ini Maksudnya Biar Kalian Nggak Panik!
  • Akun Paylater Tiba-tiba Diblokir? Jangan Panik, Gini Cara Mengatasinya Biar Lancar Jaya!
  • HP Vivo Sering Mati Sendiri Padahal Baterai Masih Banyak? Ini Penyebab dan Solusinya!
  • Inilah Cara Mengatasi BNI Mobile Banking Transaksi Tidak Dapat Dilanjutkan dan Penjelasan Kode Errornya!
  • Inilah Daftar Lengkap Tempat OVO PayLater Bisa Digunakan
  • Gini Caranya Biar Nggak Mati Topik Pas Lagi Main RP Role Play
  • Gini Caranya Atasi Kontak yang Sudah Dihapus Tapi Masih Ada di WA, Dijamin Ampuh!
  • Cara Mengatasi DJP Online Error 403 atau 405 dengan Mudah
  • 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
  • Tutorial Langfuse: Pantau & Optimasi Aplikasi LLM
  • 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
  • Apa itu Zoom Stealer? Ini Definisi dan Bahaya Tersembunyi di Balik Ekstensi Browser Kalian
  • Apa itu Skandal BlackCat Ransomware?
  • 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
Beli Morning Star Kursi Gaming/Kantor disini: https://s.shopee.co.id/805iTUOPRV
Beli Pemotong Rumput dengan Baterai IRONHOOF 588V Mesin Potong Rumput 88V disini https://s.shopee.co.id/70DBGTHtuJ

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