Skip to content

Latest commit

 

History

History
54 lines (32 loc) · 1.27 KB

README.md

File metadata and controls

54 lines (32 loc) · 1.27 KB

apt_cleanup cookbook

This cookbook vacuum-cleans your apt system.

Service incudes

  • Cleaning up apt-cache
  • Purging leftovers from removed packages
  • Removing old unused kernels (for a cleaner /boot)
  • Removes dependencies dragged in by already deleted packages
  • Dispenses fresh perfume all over your system

See this blogpost for more information.

Supported Platforms

  • Ubuntu
  • Debian

Usage

apt_cleanup::default

Includes all other cleanup recipes

apt_cleanup::remove_old_kernels

Removes all old kernels, but the most recent as well as the currenlty used one.

apt_cleanup::remove_unneeded_packages

Runs apt-get autoremove to remove packages not required anymore.

apt_cleanup::purge_removed_packages

Purges already removed packages, to get rid of e.g. old config files.

apt_cleanup::clean_apt_cache

Runs apt-get clean to remove .dpkg files from /var/cache/apt/archives.

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (i.e. add-new-recipe)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request

License and Authors

Author:: Chris Aumann (me@chr4.org)