Coder Social home page Coder Social logo

fedora-cleanup-script's Introduction

Fedora Cleanup Script

This script automates the process of cleaning up and maintaining a Fedora Linux system. It removes unnecessary packages, cleans caches, and performs other system maintenance tasks.

Features

  • Updates package list
  • Removes unused packages and dependencies
  • Cleans DNF cache
  • Removes old kernels (keeps current and one previous version)
  • Cleans user cache
  • Cleans system journal
  • Removes temporary files
  • Removes orphaned packages

Requirements

  • Fedora Linux (tested on Fedora 40 with GNOME 46)
  • Root or sudo access

Usage

  1. Save the script to a file (e.g., fedora_cleanup.sh)
  2. Make the script executable:
    chmod +x fedora_cleanup.sh
    
  3. Run the script with sudo:
    sudo ./fedora_cleanup.sh
    

Warning

This script removes files and packages from your system. While it's designed to be safe, it's recommended to review the script and understand its actions before running it. Consider backing up important data before executing system-wide cleanup operations.

Customization

You can modify the script to add or remove cleanup tasks according to your needs. Each task is clearly labeled with a descriptive message.

Contributing

Feel free to fork this script and submit pull requests for any improvements or additional features you think would be beneficial.

License

This script is released under the MIT License. See the LICENSE file for details.

fedora-cleanup-script's People

Contributors

v8v88v8v88 avatar

Stargazers

 avatar theophine savio theodore. avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.