Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      June 3, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 3, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 3, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 3, 2025

      SteelSeries reveals new Arctis Nova 3 Wireless headset series for Xbox, PlayStation, Nintendo Switch, and PC

      June 3, 2025

      The Witcher 4 looks absolutely amazing in UE5 technical presentation at State of Unreal 2025

      June 3, 2025

      Razer’s having another go at making it so you never have to charge your wireless gaming mouse, and this time it might have nailed it

      June 3, 2025

      Alienware’s rumored laptop could be the first to feature NVIDIA’s revolutionary Arm-based APU

      June 3, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      easy-live2d – About Make your Live2D as easy to control as a pixi sprite! Live2D Web SDK based on Pixi.js.

      June 3, 2025
      Recent

      easy-live2d – About Make your Live2D as easy to control as a pixi sprite! Live2D Web SDK based on Pixi.js.

      June 3, 2025

      From Kitchen To Conversion

      June 3, 2025

      Perficient Included in Forrester’s AI Technical Services Landscape, Q2 2025

      June 3, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      SteelSeries reveals new Arctis Nova 3 Wireless headset series for Xbox, PlayStation, Nintendo Switch, and PC

      June 3, 2025
      Recent

      SteelSeries reveals new Arctis Nova 3 Wireless headset series for Xbox, PlayStation, Nintendo Switch, and PC

      June 3, 2025

      The Witcher 4 looks absolutely amazing in UE5 technical presentation at State of Unreal 2025

      June 3, 2025

      Razer’s having another go at making it so you never have to charge your wireless gaming mouse, and this time it might have nailed it

      June 3, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Operating Systems»Linux»How to Clear APT Cache and Free Up Disk Space

    How to Clear APT Cache and Free Up Disk Space

    January 27, 2025

    The APT cache stores downloaded package files on your system. Over time, this cache can take up significant disk space. How do you clear the apt cache? You simply use this apt clean command option:

    
    apt clean
    
    

    Clearing the APT cache is a simple way to free up space while keeping your system running smoothly.

    Clear Apache Cache: Step by Step Guide

    Step 1: Check Disk Space Usage

    Before clearing the APT cache, check how much disk space is currently used by the cache.

    Open a terminal and execute the following command:

    sudo du -sh /var/cache/apt
    

    This will show the size of the APT cache folder.

    Step 2: Clear the APT Cache

    Now, use the following command to clear the APT cache from your Debian system

    • Clear all cached files: Run this command to remove all files in the cache:
      sudo apt clean
      

      This will delete all downloaded package files, freeing up disk space.

    • Remove unused package files: To remove unnecessary files left by incomplete or failed installations, use:
      sudo apt autoclean
      

      This only removes files that are no longer needed.

    Step 3: Remove Unused Packages

    Sometimes, old or unused packages take up space. To remove them, use:

    sudo apt autoremove
    

    This will uninstall packages that were automatically installed as dependencies but are no longer needed.

    Step 4: Verify Disk Space

    After clearing the cache and removing unused packages, check your disk space again to confirm:

    sudo du -sh /var/cache/apt
    

    You should see that the size of the cache folder is much smaller.

    Conclusion

    It is safe to clear the APT cache and free up disk space on your Linux system. Use the apt clean and apt autoclean commands regularly to keep your system efficient. If you no longer need unused packages, apt autoremove can help to remove them from your system. These steps ensure your system has more available space and runs smoothly.

    The post How to Clear APT Cache and Free Up Disk Space appeared first on TecAdmin.

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleRandom Forest Algorithm in Machine Learning
    Next Article CodeSOD: Contains Bad Choices

    Related Posts

    News & Updates

    SteelSeries reveals new Arctis Nova 3 Wireless headset series for Xbox, PlayStation, Nintendo Switch, and PC

    June 3, 2025
    News & Updates

    The Witcher 4 looks absolutely amazing in UE5 technical presentation at State of Unreal 2025

    June 3, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    How to program your iPhone’s Action Button to summon ChatGPT’s voice assistant

    Development

    Build public-facing generative AI applications using Amazon Q Business for anonymous users

    Machine Learning

    Gemini AI responds with nonsense answers? Here’s maybe why

    Development

    Warner Bros. Games shuts down Wonder Woman developer Monolith Productions in latest gaming purge

    News & Updates

    Highlights

    Development

    Mirai Botnet Exploits Ivanti Connect Secure Flaws for Malicious Payload Delivery

    May 9, 2024

    Two recently disclosed security flaws in Ivanti Connect Secure (ICS) devices are being exploited to…

    New Data Management Experience in the Atlas UI

    May 28, 2025

    CVE-2024-56156 – Halo File Type Validation Bypass Vulnerability

    April 25, 2025

    Speech-to-Text security: Top foundational security questions to consider for your next project using speech

    July 27, 2024
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.